jzelinskie
11/17/2022, 10:27 PMJake
11/17/2022, 10:28 PMjwmn
11/17/2022, 10:30 PMsyebaurgh
11/18/2022, 1:13 AMrpc error: code = InvalidArgument desc = found duplicate update operation for relationship
?
I was told you could use Precondition but I'm not sure how.
How could I let spicedb know, if the relationship exists, to either go ahead with the delete and recreate the relationship or to disregard both the delete and touch and leave the relationship as is?syebaurgh
11/18/2022, 1:14 AMJoey
11/18/2022, 1:15 AMsyebaurgh
11/18/2022, 1:18 AMJoey
11/18/2022, 1:19 AMTOUCH
Joey
11/18/2022, 1:19 AMJoey
11/18/2022, 1:19 AMJoey
11/18/2022, 1:19 AMJoey
11/18/2022, 1:20 AMDELETE
- otherwise, if you intend to create or leave as-is, use TOUCH
syebaurgh
11/18/2022, 1:22 AMif your code is generating both DELETE and TOUCH for the same transaction, you'll need to filter that out yourself before calling
ah, so a precondition or anything else wouldn't help heresyebaurgh
11/18/2022, 1:23 AMJoey
11/18/2022, 1:23 AMJoey
11/18/2022, 1:23 AMJoey
11/18/2022, 1:23 AMJoey
11/18/2022, 1:23 AMJoey
11/18/2022, 1:24 AMsyebaurgh
11/18/2022, 1:24 AMJoey
11/18/2022, 1:25 AMsyebaurgh
11/18/2022, 1:28 AMensonic
11/18/2022, 8:37 AMkubectl apply --server-side -k github.com/authzed/spicedb-operator/config
to update, but nothing happens According to zed version
I am still on 1.10. Any tips?hermanq
11/18/2022, 9:01 AMvroldanbet
11/18/2022, 11:36 AMSpiceDBCluster
CR applied? What does it look like?vroldanbet
11/18/2022, 11:36 AMvroldanbet
11/18/2022, 11:39 AMhermanq
11/18/2022, 12:08 PMzed
(using go install ...@latest
) it complains about the version not being up to date. Also, the check
seems to fail due to an error about port 50053 which isn't responding. I've created this issue (https://github.com/authzed/spicedb-operator/issues/109) and we already learned that probably dispatch isn't running. But being a newby I have no idea why...ensonic
11/18/2022, 12:51 PMemre.savci
11/18/2022, 1:32 PMyaml
definition tdesk/user {}
definition tdesk/group {
relation member: tdesk/user
}
definition tdesk/role {
relation assignee: tdesk/user | tdesk/group#member
}
definition tdesk/perm {
relation allow: tdesk/role#assignee
}
and my relation_tulple table is like below:
yaml
namespace object_id relation userset_namespace userset_object_id userset_relation
tdesk/role, admin, assignee, tdesk/user, emre, ...
tdesk/group, devx, member, tdesk/user, vural, ...
tdesk/perm, ticket_read, allow, tdesk/role, admin, assignee
tdesk/role, admin, assignee, tdesk/group, devx, member
tdesk/role, admin, assignee, tdesk/group, agent, member
I would like to get answer for the question "list a user's groups".
How can I get achieve this using Go SDK?