-
-
Notifications
You must be signed in to change notification settings - Fork 144
feat(policy): add optional error code to @@allow/@@deny attributes #2636
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
Open
Azzerty23
wants to merge
23
commits into
zenstackhq:dev
Choose a base branch
from
Azzerty23:feat/policy-custom-error-codes
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
a191d19
feat(policy): add optional error code to @@allow/@@deny attributes
Azzerty23 e7b6888
feat(policy): surface all matching policy error codes instead of firs…
Azzerty23 084b6ef
feat(policy): support enum values as error codes in @@allow/@@deny
Azzerty23 9f30287
feat(policy): add fetchPolicyCodes option to opt out of diagnostic query
Azzerty23 0ffc32c
fix(policy): correct allow-rule diagnostic negation; drop field-level…
Azzerty23 c9ec333
test(policy): remove duplicated test
Azzerty23 a45b5cc
feat(policy): surface error codes for update and delete violations
Azzerty23 0ffadd4
refactor(policy): replace postModelLevelCheck with postMutationZeroRo…
Azzerty23 4dcdcec
refactor(policy): simplify fetchPolicyCodes guard and align test expe…
Azzerty23 934d719
feat(policy): surface error codes for single-row read violations
Azzerty23 84a698f
fix(tests): remove autoincrement and move m2m guard before policy check
Azzerty23 885a04c
fix(policy): bypass read-policy hooks on internal pre-load queries fo…
Azzerty23 90cad9a
Merge branch 'dev' into feat/policy-custom-error-codes
Azzerty23 b0529a6
fix(policy): restrict error-code surfacing to OrThrow read variants
Azzerty23 58f0efb
fix(build): prevent node:async_hooks from leaking into client bundles
Azzerty23 f249191
fix(policy): bypass read policy for MySQL pre-load SELECT during UPDATE
Azzerty23 5821b3c
refactor(policy): simplify MySQL pre-load bypass — pass connection di…
Azzerty23 69ef4fa
Revert "fix(policy): bypass read-policy hooks on internal pre-load qu…
Azzerty23 23a8253
Merge branch 'feat/policy-custom-error-codes' into test/mysql-bypass
Azzerty23 86a2111
refactor(policy): replace AsyncLocalStorage with explicit queryContex…
Azzerty23 7a2316c
fix(client): handle wrapped executor in sequential transactions
Azzerty23 eca01e1
fix(client): prevent nested BEGIN in sequential transaction by forcin…
Azzerty23 f3f126c
refactor(client): consolidate direct-read bypass into read/readUnique…
Azzerty23 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.