john.conti
07/19/2022, 6:36 PMJoey
07/19/2022, 6:46 PMjohn.conti
07/19/2022, 7:06 PM{:optional-preconditions [{:filter {:optional-relation "accesses",
:optional-resource-id "site1",
:optional-subject-filter {:optional-relation nil,
:optional-subject-id "site_user",
:subject-type "user"},
:resource-type "site"},
:operation :OPERATION_MUST_MATCH}],
:relationship-filter {:optional-relation "accesses",
:optional-resource-id "site1",
:optional-subject-filter {:optional-relation nil,
:optional-subject-id "site_user",
:subject-type "user"},
:resource-type "site"}}
Joey
07/19/2022, 7:10 PMjohn.conti
07/19/2022, 7:58 PMjohn.conti
07/19/2022, 7:59 PMoptional-relation
key of the optional-subject-filter
as nil
is an issue.Joey
07/19/2022, 8:02 PMJoey
07/19/2022, 8:02 PMJoey
07/19/2022, 8:02 PMjohn.conti
07/19/2022, 8:14 PMjohn.conti
07/19/2022, 8:16 PMoptional_relation
in the optional_subject_filter
Joey
07/19/2022, 8:21 PMJoey
07/19/2022, 8:21 PMjohn.conti
07/19/2022, 8:44 PMJoey
07/19/2022, 9:45 PMJoey
07/19/2022, 9:45 PMJoey
07/19/2022, 9:45 PMjohn.conti
07/19/2022, 10:24 PMjohn.conti
07/19/2022, 11:04 PMjohn.conti
07/19/2022, 11:05 PMResolved method descriptor:
rpc DeleteRelationships ( .authzed.api.v1.DeleteRelationshipsRequest ) returns ( .authzed.api.v1.DeleteRelationshipsResponse ) {
option (.google.api.http) = { post:"/v1/relationships/delete" body:"*" };
}
Request metadata to send:
authorization: Bearer J3HjJD0ZICO3CgZ0Do9aA802
Response headers received:
content-type: application/grpc
io.spicedb.respmeta.requestid: f96a0da419bcef1a2b814672bd6f1f07
Estimated response size: 12 bytes
Response contents:
{
"deletedAt": {
"token": "GgQKAjcw"
}
}
Response trailers received:
io.spicedb.respmeta.cachedoperationscount: 0
io.spicedb.respmeta.dispatchedoperationscount: 2
Sent 1 request and received 1 response
Joey
07/19/2022, 11:06 PMJoey
07/19/2022, 11:09 PMjohn.conti
07/19/2022, 11:09 PMJoey
07/19/2022, 11:09 PMJoey
07/19/2022, 11:09 PMJoey
07/19/2022, 11:09 PMjohn.conti
07/19/2022, 11:10 PMjohn.conti
07/19/2022, 11:13 PMJoey
07/19/2022, 11:13 PMJoey
07/19/2022, 11:14 PMjohn.conti
07/19/2022, 11:14 PMJoey
07/19/2022, 11:14 PMJoey
07/19/2022, 11:14 PMJoey
07/19/2022, 11:14 PMResponse trailers received:
io.spicedb.respmeta.cachedoperationscount: 0
io.spicedb.respmeta.dispatchedoperationscount: 2
Sent 1 request and received 0 responses
ERROR:
Code: FailedPrecondition
Message: failed precondition: unable to satisfy write precondition `operation:OPERATION_MUST_MATCH filter:{resource_type:"site" optional_resource_id:"site1" optional_relation:"accesses" optional_subject_filter:{subject_type:"user" optional_subject_id:"site_user"}}`
Joey
07/19/2022, 11:14 PMJoey
07/19/2022, 11:16 PMJoey
07/19/2022, 11:16 PMJoey
07/19/2022, 11:16 PMzed permission check site:site1 accesses user:site_user
and let me know what it says?john.conti
07/19/2022, 11:17 PMJoey
07/19/2022, 11:18 PMJoey
07/19/2022, 11:18 PMJoey
07/19/2022, 11:18 PMJoey
07/19/2022, 11:18 PMjohn.conti
07/19/2022, 11:18 PMfalse
john.conti
07/19/2022, 11:18 PMJoey
07/19/2022, 11:19 PMJoey
07/19/2022, 11:19 PMjohn.conti
07/19/2022, 11:20 PMJoey
07/19/2022, 11:20 PMJoey
07/19/2022, 11:20 PMJoey
07/19/2022, 11:20 PMjohn.conti
07/20/2022, 4:13 PMJoey
07/20/2022, 4:15 PMJoey
07/20/2022, 4:15 PMJoey
07/20/2022, 4:16 PMJoey
07/20/2022, 4:16 PMzed
also says so on API calls