network icon indicating copy to clipboard operation
network copied to clipboard

Could not add relation tuple

Open omerlh opened this issue 3 years ago • 3 comments

Preflight checklist

Describe the bug

I am trying to add an empty relation: image But I am getting an error:

Could not add relation tuple:: Error: The requested resource could not be found

And I am not sure why, I have other relations referring rule 1, and I have namespace called rule.

Edit: it seems that empty relation is not supported. Doing something like rule:1#owner works.

Any pointers?

Reproducing the bug

See above

Relevant log output

No response

Relevant configuration

No response

Version

latest

On which operating system are you observing this issue?

No response

In which environment are you deploying?

No response

Additional Context

No response

omerlh avatar Sep 07 '22 10:09 omerlh

Thank you for the report, @hperl can you please take a look?

aeneasr avatar Sep 07 '22 10:09 aeneasr

Hi @omerlh,

you are right, empty relations are currently not supported through the UI. You can use a wildcard ... in place of an empty relation.

But I think your point is valid and we should add empty relations (spelled just rule:1) in the subject set out of the box.

In terms of priority, is this blocking you right now? I would assume that empty relations are not useful on their own without user-set rewrites, but maybe I'm missing something?

hperl avatar Sep 20 '22 15:09 hperl

Hey! It is not blocking me as we decided not to continue with Keto for now...

omerlh avatar Sep 21 '22 05:09 omerlh