Panakotta00
03/19/2022, 12:01 AMJoey
03/19/2022, 12:01 AMzed relationship create
will return a string when the create is finished called a zedtokenJoey
03/19/2022, 12:01 AM--revision "thatstring"
to the check commandJoey
03/19/2022, 12:02 AMPanakotta00
03/19/2022, 11:28 AMPanakotta00
03/19/2022, 11:32 AMJoey
03/19/2022, 11:36 AMJoey
03/19/2022, 11:36 AMJoey
03/19/2022, 11:37 AMJoey
03/19/2022, 11:37 AMPanakotta00
03/19/2022, 11:39 AMPanakotta00
03/19/2022, 1:28 PMdefinition user {}
definition package {
relation owner: user
permission write = owner
}
definition release {
relation package: package
permission write = package->write
}
and i have a relation package:123#owner@user:123
and release:123#package@package:123
that means i should have permission release:123#write@user:123
if i now remove the former relation...
then i should NOT have the permission relase:123#write@user:123
anymore...
so... when i did that change (removed the former relation), i should get a zedtoken...
if i now just store it the packages db entry...
and next time a request comes and wants to ask if user has permission to write onto release... it would not request the zedtoken of the package, yet...
so may use old state which is not good...
what is the best option to do that?
i could also store the zed token into the release db entry, but then i have to do, two DB updates, ones for package and one for the release... is there a better option to do this?Jake
03/19/2022, 1:48 PMJoey
03/19/2022, 1:48 PMrelease
, then the zedtoken should be stored for the release row, not the package rowJoey
03/19/2022, 1:49 PMJoey
03/19/2022, 1:50 PMPanakotta00
03/19/2022, 1:52 PMJoey
03/19/2022, 1:52 PMJoey
03/19/2022, 1:53 PMJoey
03/19/2022, 1:53 PMJoey
03/19/2022, 1:54 PMPanakotta00
03/19/2022, 1:54 PMJoey
03/19/2022, 2:07 PMPanakotta00
03/19/2022, 2:08 PMJoey
03/19/2022, 2:09 PMJoey
03/19/2022, 2:09 PMJoey
03/19/2022, 2:10 PMJoey
03/19/2022, 2:10 PM