Skip to content

Commit d873dd4

Browse files
committed
chore: update TODOs - ERROR_REASON_DATASTORE_NOT_MIGRATED merged in api, pending authzed-go release
1 parent 1ab3808 commit d873dd4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

internal/datastore/common/errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ type SchemaNotInitializedError struct {
184184
}
185185

186186
func (err SchemaNotInitializedError) GRPCStatus() *status.Status {
187-
// TODO: Update to use ERROR_REASON_DATASTORE_NOT_MIGRATED once authzed/api#159 is merged
187+
// TODO: Use ERROR_REASON_DATASTORE_NOT_MIGRATED once authzed-go is updated (authzed/api#159 merged)
188188
return spiceerrors.WithCodeAndDetails(
189189
err,
190190
codes.FailedPrecondition,

pkg/middleware/readiness/readiness.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,7 @@ func isMigrationIssue(msg string) bool {
140140
}
141141

142142
// formatNotReadyError creates a user-friendly error message for migration issues.
143-
// TODO(authzed/api#159): Once ERROR_REASON_DATASTORE_NOT_MIGRATED is available in the API,
144-
// use spiceerrors.WithCodeAndReason to include the structured error reason.
143+
// TODO: Use ERROR_REASON_DATASTORE_NOT_MIGRATED once authzed-go is updated (authzed/api#159 merged)
145144
func formatNotReadyError(msg string) error {
146145
return status.Errorf(codes.FailedPrecondition,
147146
"SpiceDB datastore is not migrated. Please run 'spicedb datastore migrate'. Details: %s", msg)

0 commit comments

Comments
 (0)