-
Notifications
You must be signed in to change notification settings - Fork 46
feat: document new self feature #499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| only view a document if the user is related to the document as viewer and editing is enabled for the | ||
| document (this is the same authorization logic used in the wildcard example above). | ||
|
|
||
| In the example below, to enable editing for a document, a self relationship using the `edit_enabled` relation must be written. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| In the example below, to enable editing for a document, a self relationship using the `edit_enabled` relation must be written. | |
| To enable editing for a document, a loop relationship using the `edit_enabled` relation must be written. |
please do a search in the entire repo for "self" and make sure we change to "loop" where applicable
| Self relationships relate an object to itself. | ||
| A self relationship is walked with an [arrow](/spicedb/concepts/schema#--arrow) back to an object's self. | ||
| Loop relationships relate an object to itself. | ||
| A loop relationship is walked with an [arrow](/spicedb/concepts/schema#--arrow) back to an object's self. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i still don't know what a loop relationship is and this is talking about how it is used. i'd remove this line, we mention the arrow down below with the example
Co-authored-by: Maria Ines Parnisari <maria.ines.parnisari@authzed.com>
Co-authored-by: Maria Ines Parnisari <maria.ines.parnisari@authzed.com>
50b8b16 to
4903b78
Compare
Co-authored-by: Maria Ines Parnisari <maria.ines.parnisari@authzed.com>
4903b78 to
5e37c89
Compare
Description
Counterpart to authzed/spicedb#2785. This PR should be held until v1.49.0 is released.
This adds documentation for the
selffeature implemented in the aforementioned PR.Changes
selfkeyword to the schema reference pageTesting
Review