-
Notifications
You must be signed in to change notification settings - Fork 439
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
Fixed Edit Item's Version History crashing #3253
Fixed Edit Item's Version History crashing #3253
Conversation
…te-7.6' into w2p-117287_fix-item-version-performance-issues_contribute-main # Conflicts: # src/app/item-page/versions/item-versions.component.html # src/app/item-page/versions/item-versions.component.ts
… on item versions
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.
I implemented these changes in both of my DSpace instances and the Version History page no longer hangs 👍.
@alexandrevryghem : Based on reviewing the code, this looks like it may need backporting to |
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 @alexandrevryghem ! Tested today and verified it works. The code looks good to!
@alexandrevryghem : I've just realized that this PR is refusing to run automated tests. I'm going to close & reopen to see if that triggers them to run. As I want to simply verify they all succeed before merging. |
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-3253-to-dspace-7_x origin/dspace-7_x
cd .worktree/backport-3253-to-dspace-7_x
git switch --create backport-3253-to-dspace-7_x
git cherry-pick -x d09f5297a1f4e36071494bd89dc462b7538b3474 04bbaf9cb930cc823668076e858b0ab4703f4568 |
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin dspace-8_x
git worktree add -d .worktree/backport-3253-to-dspace-8_x origin/dspace-8_x
cd .worktree/backport-3253-to-dspace-8_x
git switch --create backport-3253-to-dspace-8_x
git cherry-pick -x d09f5297a1f4e36071494bd89dc462b7538b3474 04bbaf9cb930cc823668076e858b0ab4703f4568 |
@alexandrevryghem : It looks like this hit merge conflicts for both backports to the |
Ported to 7.x in #3368. |
…(see also DSpace/dspace-angular#3252 and DSpace/dspace-angular#3253); the solution originally implemented was intended for version 9 and @alexandrevryghem backported it to 8 here DSpace/dspace-angular#3412
References
Description
This PR removes the method calls from the template that return Observables causing an infinite rerendering of the page.
Instructions for Reviewers
List of changes in this PR:
VersionsDTO
containg all the data that is required to render the template in order to prevent the infinite recreation of thecanEditVersion
Observable
.Guidance for how to test or review this PR:
Test that everything still work correctly on the item page & the edit item version history tab both for items with and without any versions.
Checklist
main
branch of code (unless it is a backport or is fixing an issue specific to an older branch).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.