Skip to content
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

Skip checking of permissions for relationships in WriteSchema #734

Merged
merged 1 commit into from
Aug 2, 2022

Conversation

josephschorr
Copy link
Member

This PR changes the namespace diff logic to treat relations and permissions distinctly, thus ensuring that WriteSchema will only check for relationships if a relation is removed, and not a permission as well. This was a legacy of the time when relations could contain both data and expressions.

Fixes #733

@josephschorr josephschorr requested review from jzelinskie and a team August 2, 2022 18:24
@github-actions github-actions bot added area/api v1 Affects the v1 API area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools) labels Aug 2, 2022
@jzelinskie jzelinskie added the area/perf Affects performance or scalability label Aug 2, 2022
@josephschorr josephschorr enabled auto-merge August 2, 2022 18:26
This PR changes the namespace diff logic to treat relations and permissions distinctly, thus ensuring that WriteSchema will only check for relationships if a *relation* is removed, and not a permission as well. This was a legacy of the time when relations could contain both data and expressions.

Fixes authzed#733
@josephschorr josephschorr merged commit a30aca3 into authzed:main Aug 2, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Aug 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/api v1 Affects the v1 API area/perf Affects performance or scalability area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

v1.WriteSchema relationship sanity check should skip permissions
2 participants