Skip to content

Commit

Permalink
Merge pull request #214 from authzed/update-wps-events
Browse files Browse the repository at this point in the history
regenerates materialize API - adds BreakingSchemaChange event
  • Loading branch information
vroldanbet authored Jul 10, 2024
2 parents 554dcad + 856290d commit f152101
Show file tree
Hide file tree
Showing 9 changed files with 749 additions and 144 deletions.
2 changes: 1 addition & 1 deletion magefiles/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (g Gen) All() error {
const (
ProtoPath = "proto/authzed/api"
BufRepository = "buf.build/authzed/api"
BufTag = "v1.34.0"
BufTag = "c273586fafc7cfd6c4438d78699b90b9df17c0f9"
)

// Proto runs proto codegen
Expand Down
16 changes: 15 additions & 1 deletion proto/apidocs.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1101,6 +1101,16 @@
},
"description": "The `Status` type defines a logical error model that is suitable for\ndifferent programming environments, including REST APIs and RPC APIs. It is\nused by [gRPC](https://github.com/grpc). Each `Status` message contains\nthree pieces of data: error code, error message, and error details.\n\nYou can find out more about this error model and how to work with it in the\n[API Design Guide](https://cloud.google.com/apis/design/errors)."
},
"v0BreakingSchemaChange": {
"type": "object",
"properties": {
"changeAt": {
"$ref": "#/definitions/v1ZedToken",
"description": "change_at is the revision at which a breaking schema event has happened."
}
},
"description": "BreakingSchemaChange is used to signal a breaking schema change has happened, and that the consumer should\nexpect delays in the ingestion of new changes, because the permission set snapshot needs to be rebuilt from scratch.\nOnce the snapshot is ready, the consumer will receive a LookupPermissionSetsRequired event."
},
"v0DeveloperError": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -1185,7 +1195,7 @@
"description": "required_lookup_at is the snapshot revision at which the permission set needs to be rebuilt to."
}
},
"description": "LookupPermissionSetsRequired is a signal that the consumer should perform a LookupPermissionSets call because\nthe permission set snapshot needs to be rebuilt from scratch. This typically happens when the origin SpiceDB\ncluster has seen its schema changed."
"description": "LookupPermissionSetsRequired is a signal that the consumer should perform a LookupPermissionSets call because\nthe permission set snapshot needs to be rebuilt from scratch. This typically happens when the origin SpiceDB\ncluster has seen its schema changed, see BreakingSchemaChange event."
},
"v0LookupPermissionSetsResponse": {
"type": "object",
Expand Down Expand Up @@ -1418,6 +1428,10 @@
"lookupPermissionSetsRequired": {
"$ref": "#/definitions/v0LookupPermissionSetsRequired",
"description": "lookup_permission_sets_required is a signal that the consumer should perform a LookupPermissionSets call because\nthe permission set snapshot needs to be rebuilt from scratch. This typically happens when the origin SpiceDB\ncluster has seen its schema changed."
},
"breakingSchemaChange": {
"$ref": "#/definitions/v0BreakingSchemaChange",
"description": "breaking_schema_change is a signal that a breaking schema change has been written to the origin SpiceDB cluster,\nand that the consumer should expect delays in the ingestion of new changes,\nbecause the permission set snapshot needs to be rebuilt from scratch. Once the snapshot is ready, the consumer\nwill receive a LookupPermissionSetsRequired event."
}
}
},
Expand Down
373 changes: 235 additions & 138 deletions proto/authzed/api/materialize/v0/watchpermissionsets.pb.go

Large diffs are not rendered by default.

172 changes: 172 additions & 0 deletions proto/authzed/api/materialize/v0/watchpermissionsets.pb.validate.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f152101

Please sign in to comment.