-
Notifications
You must be signed in to change notification settings - Fork 18
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: Apply correct DAOP after changing them (remove its caching) (DEV-1965) #2551
fix: Apply correct DAOP after changing them (remove its caching) (DEV-1965) #2551
Conversation
DEV-1965 Updating Default Object Access Permissions doesn't invalidate cache.
When a resource is created, the permissions are added based on the default object access permissions. This information is read from cache. When updating a default object access permission's As a result, after updating the default object access permission, the stack has to be restarted, otherwise the old permissions will be used. |
bd25f12
to
73eb4be
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #2551 +/- ##
===========================================
- Coverage 86.53% 17.75% -68.78%
===========================================
Files 262 262
Lines 28889 28871 -18
===========================================
- Hits 25000 5127 -19873
- Misses 3889 23744 +19855
... and 185 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
73eb4be
to
3ab321c
Compare
fb2e1d5
to
54d4e51
Compare
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.
One cache down... Huzza!
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.
LGTM, I would change the title to something like "remove caching for default object access permissions", but I leave this up to you.
webapi/src/main/scala/org/knora/webapi/responders/admin/PermissionsResponderADM.scala
Show resolved
Hide resolved
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.
It just came to my mind that the permissions cache could now maybe be removed from the API alltogether - or are there more usages of it? I refer to this location in the application.conf:
cache-name = "permissionsCache" |
Thanks for the hint, I have removed it also from the conf file. After that there are no more occurences of the String |
Pull Request Checklist
Task Description/Number
Issue Number: DEV-1965
Fix caching problem by removing the caching for all permissions including DAOP (default access object permissions).
Basic Requirements
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
Does this PR introduce a breaking change?
Does this PR change client-test-data?