-
Notifications
You must be signed in to change notification settings - Fork 433
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 caching issues for versioning #2761
Conversation
7295025
to
48b1458
Compare
48b1458
to
53bb38f
Compare
Hi @ybnd, |
Hi @ybnd, |
Hi @ybnd, |
@ybnd : I tested this today, and while I can create a version... I never get to the submission form. So, I'm seeing the behavior described in #2923. It's possible this PR does fix the bug you describe, but I'm not yet able to test it because of #2923. If you have any ideas regarding what might be happening in #2923, please feel free to let me know or add a fix to this PR. (There's a separate, similar bug also in #2924... but, I believe that's being worked on by @atarix83 / 4Science. I'm just trying to figure out how to get Item Versioning working again.) |
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.
👍 Thanks @ybnd ! I was able to finally test this today. I've verified the bug exists and that this appears to fix it. I haven't found any side effects.
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin dspace-7_x
git worktree add -d .worktree/backport-2761-to-dspace-7_x origin/dspace-7_x
cd .worktree/backport-2761-to-dspace-7_x
git switch --create backport-2761-to-dspace-7_x
git cherry-pick -x 9960b93f5815d0f5c0a1cc79f87ab5fb409eb1e3 9f39358efbfadb8b89e5220b1d705b76d120667e adb2e31026797eec7161b90eaff15dfe3ea6bfa6 |
References
Add references/links to any related issues or PRs. These may include:
Description
This PR improves the usability of versioning on Item pages by ensuring that
Reviewing
Confirm that the original issue can no longer be replicated
Future work
Both of the above issues were fixed by introducing cache invalidation where it was missing.
Note that it may be useful to consider doing more in-depth refactoring to make cache invalidation more robust:
Checklist
This checklist provides a reminder of what we are going to look for when reviewing your PR. You need not complete this checklist prior to creating your PR (draft PRs are always welcome). If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!
yarn lint
yarn check-circ-deps
)package.json
), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.