Skip to content

Commit 86bc873

Browse files
committed
api(materialize/v0): add affected relations to breaking schema change message
1 parent 5a1f578 commit 86bc873

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

authzed/api/materialize/v0/watchpermissionsets.proto

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
syntax = "proto3";
22
package authzed.api.materialize.v0;
33

4+
import "authzed/api/materialize/v0/watchpermissions.proto";
45
import "authzed/api/v1/core.proto";
56
import "google/protobuf/timestamp.proto";
67

@@ -192,6 +193,12 @@ message LookupPermissionSetsRequired {
192193
message BreakingSchemaChange {
193194
// change_at is the revision at which a breaking schema event has happened.
194195
authzed.api.v1.ZedToken change_at = 1;
196+
197+
// affected_permissions lists all the watched permissions that were directly affected by the breaking schema change.
198+
repeated WatchedPermission affected_permissions = 2;
199+
200+
// reason provides an optional human-readable description of what caused the breaking schema change.
201+
string reason = 3;
195202
}
196203

197204
message DownloadPermissionSetsRequest {

0 commit comments

Comments
 (0)