-
Notifications
You must be signed in to change notification settings - Fork 35
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
fix/ADF-1146: Distinguish which method requiresRight cached data belongs to #3620
Merged
hectoras
merged 5 commits into
php8-migration
from
fix/ADF-1146-dont-share-docBlock-cache-between-methods
Sep 16, 2022
Merged
fix/ADF-1146: Distinguish which method requiresRight cached data belongs to #3620
hectoras
merged 5 commits into
php8-migration
from
fix/ADF-1146-dont-share-docBlock-cache-between-methods
Sep 16, 2022
Conversation
This file contains 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
hectoras
changed the title
Fix/adf 1146 dont share doc block cache between methods
fix/ADF-1146: Distinguish to which method requiresRight cached data belongs to
Sep 15, 2022
gabrielfs7
reviewed
Sep 15, 2022
gabrielfs7
reviewed
Sep 15, 2022
gabrielfs7
reviewed
Sep 15, 2022
Co-authored-by: Gabriel Felipe Soares <gabrielfs7@gmail.com>
Co-authored-by: Gabriel Felipe Soares <gabrielfs7@gmail.com>
Co-authored-by: Gabriel Felipe Soares <gabrielfs7@gmail.com>
hectoras
force-pushed
the
fix/ADF-1146-dont-share-docBlock-cache-between-methods
branch
from
September 15, 2022 15:57
1369e8d
to
e8555e3
Compare
hectoras
changed the title
fix/ADF-1146: Distinguish to which method requiresRight cached data belongs to
fix/ADF-1146: Distinguish which method requiresRight cached data belongs to
Sep 15, 2022
gabrielfs7
approved these changes
Sep 15, 2022
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.
- New code is covered by tests (if applicable)
- Tests are running successfully (old and new ones) on my local machine (if applicable)
- New code is respecting code style rules
- New code is respecting best practices
- New code is not subject to concurrency issues (if applicable)
- Feature is working correctly on my local machine (if applicable)
- Acceptance criteria are respected
- Pull request title and description are meaningful
shpran
approved these changes
Sep 16, 2022
Got two approvals, therefore I'm merging this PR in order to start the QA varidation. |
hectoras
deleted the
fix/ADF-1146-dont-share-docBlock-cache-between-methods
branch
December 7, 2022 09:44
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Associated Jira issue: ADF-1146
This fix enables sharing the
@requiresRight
cache betweenActionDescription
instances while keeping track about which method the cached data belongs to, so it avoids using permissions stored previously for a different action in later calls.There are also two small changes introduced while debugging to avoid errors when running TAO in PHP 8:
strlen()
with anull
value.Related PR: oat-sa/extension-tao-item#595 (it has been closed, as this fix in tao-core alone solves the issue)