Jake
01/27/2022, 12:44 AMJake
01/27/2022, 12:47 AMtrichner
01/27/2022, 12:55 PMdefinition user {}
definition blob {
relation owner: user_archive | shared_document // | ... and so on
}
definition user_archive {
relation owner: user
}
definition shared_document {
relation editors: user
}
Is there a useful way to invert the definition of relationships in blob
? I.e. the service handing out blobs does not really care if
it is part of a user_archive or a shared_document and ideally the definition would not have to be changed.trichner
01/27/2022, 12:56 PMdefinition user {}
definition blob {
relation owner: user_archive
}
definition user_archive {
relation owner: user
}
definition blob {
relation owner: shared_document
}
definition shared_document {
relation editors: user
}
and each service would push the schema/relations relevant to it?Jake
01/27/2022, 1:31 PMJake
01/27/2022, 1:32 PMdefinition user {}
definition blob {
relation owner: user_archive | shared_document // | ... and so on
permission can_access = owner->owner + owner->editors
}
definition user_archive {
relation owner: user
}
definition shared_document {
relation editors: user
}
Jake
01/27/2022, 1:32 PMJake
01/27/2022, 1:33 PMJake
01/27/2022, 1:33 PMtrichner
01/27/2022, 2:10 PMtrichner
01/27/2022, 2:11 PMtrichner
01/27/2022, 2:12 PMdefinition avatar_image {
relation owner: user
}
I'd need to update blob
, but not affect existing tuples that I created earlier for blobs.Joey
01/27/2022, 4:42 PMJoey
01/27/2022, 4:42 PMJoey
01/27/2022, 4:42 PMJoey
01/27/2022, 4:43 PMtrichner
01/27/2022, 4:49 PMtrichner
01/27/2022, 4:54 PMJake
01/27/2022, 4:56 PMJake
01/27/2022, 4:57 PMtrichner
01/27/2022, 4:57 PMtrichner
01/27/2022, 4:58 PMtrichner
01/27/2022, 5:01 PMvroldanbet
01/27/2022, 6:53 PMvroldanbet
01/27/2022, 6:53 PMpanic: Log in goroutine after TestNoNewEnemy has completed: no such process
goroutine 32 [running]:
testing.(*common).logDepth(0xc00038ab60, {0xc000df68a0, 0x11}, 0x3)
/opt/hostedtoolcache/go/1.17.6/x64/src/testing/testing.go:779 +0x4c9
testing.(*common).log(...)
/opt/hostedtoolcache/go/1.17.6/x64/src/testing/testing.go:761
testing.(*common).Log(0x40ca07, {0xc00046b9c0, 0xaf1be0, 0x1})
/opt/hostedtoolcache/go/1.17.6/x64/src/testing/testing.go:800 +0x45
github.com/authzed/spicedb/e2e.(*TLogger).Write(0xc000128318, {0xc000860000, 0x10, 0x9})
/home/runner/work/spicedb/spicedb/e2e/util.go:17 +0xa6
fmt.Fprintln({0xd1d720, 0xc000128318}, {0xc0001f47c0, 0x1, 0x1})
/opt/hostedtoolcache/go/1.17.6/x64/src/fmt/print.go:265 +0x75
github.com/authzed/spicedb/e2e.cleanupOnDone.func1()
/home/runner/work/spicedb/spicedb/e2e/run.go:55 +0x87
created by github.com/authzed/spicedb/e2e.cleanupOnDone
/home/runner/work/spicedb/spicedb/e2e/run.go:51 +0xa7
FAIL github.com/authzed/spicedb/e2e/newenemy 87.671s
FAIL
ecordell
01/27/2022, 6:56 PMecordell
01/27/2022, 6:56 PMecordell
01/27/2022, 6:57 PMvroldanbet
01/27/2022, 7:03 PMuser
01/27/2022, 7:04 PM