Skip to content

Commit

Permalink
Merge pull request #118 from josephschorr/bulk-change
Browse files Browse the repository at this point in the history
Remove transaction metadata from bulk imports
  • Loading branch information
josephschorr authored Oct 1, 2024
2 parents 53e6b10 + 7c77065 commit 8a6892e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
6 changes: 0 additions & 6 deletions authzed/api/v1/experimental_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -228,12 +228,6 @@ message BulkCheckPermissionResponseItem {
message BulkImportRelationshipsRequest {
repeated Relationship relationships = 1
[ (validate.rules).repeated .items.message.required = true ];


// optional_transaction_metadata is an optional field that can be used to store metadata about the transaction.
// If specified, this metadata will be supplied in the WatchResponse for the creations associated with
// this transaction.
google.protobuf.Struct optional_transaction_metadata = 2 [ (validate.rules).message.required = false ];
}

// BulkImportRelationshipsResponse is returned on successful completion of the
Expand Down
8 changes: 2 additions & 6 deletions authzed/api/v1/permission_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ service PermissionsService {
// performance, the caller should attempt to write relationships in as close
// to relationship sort order as possible: (resource.object_type,
// resource.object_id, relation, subject.object.object_type,
// subject.object.object_id, subject.optional_relation)
// subject.object.object_id, subject.optional_relation). All relationships
// written are done so under a single transaction.
rpc ImportBulkRelationships(stream ImportBulkRelationshipsRequest)
returns (ImportBulkRelationshipsResponse) {
option (google.api.http) = {
Expand Down Expand Up @@ -673,11 +674,6 @@ message ResolvedSubject {
message ImportBulkRelationshipsRequest {
repeated Relationship relationships = 1
[ (validate.rules).repeated .items.message.required = true ];

// optional_transaction_metadata is an optional field that can be used to store metadata about the transaction.
// If specified, this metadata will be supplied in the WatchResponse for the creations associated with
// this transaction.
google.protobuf.Struct optional_transaction_metadata = 2 [ (validate.rules).message.required = false ];
}

// ImportBulkRelationshipsResponse is returned on successful completion of the
Expand Down

0 comments on commit 8a6892e

Please sign in to comment.