vroldanbet
10/12/2022, 12:40 PMalex87
10/12/2022, 1:30 PMdefinition user {
relation manager: manager
permission add_user_rights = manager->add_manager_rights
}
definition manager {
relation user: user
relation senior_manager: senior_manager
permission add_manager_rights = senior_manager->add_senior_manager_rights + user
}
definition senior_manager {
relation user: user
relation chief_manager: chief_manager
permission add_senior_manager_rights = chief_manager->user + user
}
definition chief_manager {
relation user: user
}
definition user_details {
relation user: user
permission edit_user_details = user + user->add_user_rights
}
relations:
manager:max#user@user:max
user:mike#manager@manager:max
senior_manager:marco#user@user:marco
user_details:details_mike#user@user:mike
manager:max#senior_manager@senior_manager:marco
chief_manager:matthias#user@user:matthias
senior_manager:marco#chief_manager@chief_manager:matthias
symion
10/12/2022, 1:34 PMsymion
10/12/2022, 1:34 PMdetails: max retries exceeded: ERROR: could not serialize access due to read/write dependencies among transactions (SQLSTATE 40001)
symion
10/12/2022, 1:36 PMJoey
10/12/2022, 3:15 PMJoey
10/12/2022, 3:17 PMsymion
10/12/2022, 5:07 PMsymion
10/12/2022, 5:08 PMsymion
10/12/2022, 5:08 PMJoey
10/12/2022, 5:14 PMsymion
10/12/2022, 5:23 PMsymion
10/12/2022, 5:24 PMJoey
10/12/2022, 5:24 PMJoey
10/12/2022, 5:25 PMJoey
10/12/2022, 5:25 PMJoey
10/12/2022, 5:25 PMsymion
10/12/2022, 6:31 PMJoey
10/12/2022, 7:08 PMJoey
10/12/2022, 7:08 PMmgagliardo
10/12/2022, 7:10 PMmgagliardo
10/12/2022, 7:37 PMmarina.galenko
10/13/2022, 10:28 AMrelationships
part do when I run zed validate file.yml
?
I see ‘X relationships loaded’ in the output but it looks like it neither adds those relationships nor checks that they are currently present.mgagliardo
10/13/2022, 1:15 PMLookupResources
endpoint and filter using a set of IDs in the API. Any opinions on this workflow?Jake
10/13/2022, 1:28 PMJake
10/13/2022, 1:30 PMmgagliardo
10/13/2022, 1:34 PMJake
10/13/2022, 1:35 PMLarsRan
10/13/2022, 2:05 PMio.grpc.StatusRuntimeException: CANCELLED: unable to read namespace config: context canceled
at io.grpc.Status.asRuntimeException(Status.java:535) ~[grpc-api-1.47.0.jar!/:1.47.0]
at io.grpc.stub.ClientCalls$BlockingResponseStream.hasNext(ClientCalls.java:660) ~[grpc-stub-1.47.0.jar!/:1.47.0]
We were wondering where this error is coming from. From the search history it seemed to come from some timeout mechanism, is this the case? Also between integrationtests we are clearing (part of) the relation_tuple table in postgres, is this problematic for the performance of spicedb?Jake
10/13/2022, 2:08 PM