Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Defer inline checks when processing relationships#3040

Draft
justin-tay wants to merge2 commits intoyahoo:master
base:master
Choose a base branch
Loading
fromjustin-tay:permission

Conversation

justin-tay
Copy link
Collaborator

Resolves#2986

Description

This defers inline checks in theActivePermissionExecutor when processing relationships.

  • Added adeferInlineChecks variable in theRequestScope
  • ModifiedActivePermissionExecutor to also take into consideration thedeferInlineChecks variable
  • ModifiedJsonApiAtomicOperations andJsonApiJsonPatch to set defer inline checks to true when post processing relationships.

Motivation and Context

Previously it was possible for two separate consecutive updates to succeed but when the same updates were bundled into a atomic operation or json patch request were failing due to permissions checks.

How Has This Been Tested?

Added the appropriate tests.

License

I confirm that this contribution is made under an Apache 2.0 license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

@justin-tayjustin-tay requested a review fromaklishJuly 25, 2023 08:05
@justin-tay
Copy link
CollaboratorAuthor

I think the build test failure might be transient as I can't seem to replicate the failure ofexample.tests.AsyncTest locally.

@moizarafat
Copy link
Collaborator

I think the build test failure might be transient as I can't seem to replicate the failure ofexample.tests.AsyncTest locally.

restarted the build

Copy link
Member

@aklishaklish left a comment
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

See earlier comment in the issue. I don't think we can safely defer inline READ checks for any mutation operations.

@justin-tayjustin-tay marked this pull request as draftAugust 27, 2023 04:19
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@aklishaklishaklish requested changes

Requested changes must be addressed to merge this pull request.

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

JSON Patch Operation Read Permission Issue
3 participants
@justin-tay@moizarafat@aklish

[8]ページ先頭

©2009-2025 Movatter.jp