-
Notifications
You must be signed in to change notification settings - Fork 421
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 delete item page freezing when having relationships #3079
Merged
tdonohue
merged 5 commits into
DSpace:main
from
alexandrevryghem:w2p-115427_fixed-delete-item-page-freezing_contribute-main
May 29, 2024
Merged
Fixed delete item page freezing when having relationships #3079
tdonohue
merged 5 commits into
DSpace:main
from
alexandrevryghem:w2p-115427_fixed-delete-item-page-freezing_contribute-main
May 29, 2024
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
….6' into w2p-115427_fixed-delete-item-page-freezing_contribute-main Conflicts: src/app/item-page/edit-item-page/item-delete/item-delete.component.ts src/app/item-page/full/full-item-page.component.spec.ts src/app/item-page/full/full-item-page.component.ts src/app/item-page/item-page.resolver.spec.ts src/app/item-page/item-page.resolver.ts src/app/item-page/simple/item-page.component.spec.ts src/app/item-page/simple/item-page.component.ts
…tadata that needs to be copied
…ontribute-7.6' into w2p-115427_fixed-delete-item-page-freezing_contribute-main
alexandrevryghem
added
bug
component: configurable entities
related to configurable entities
high priority
testathon
Reported by a tester during Community Testathon
port to dspace-7_x
This PR needs to be ported to `dspace-7_x` branch for next bug-fix release
labels
May 27, 2024
tdonohue
added
the
1 APPROVAL
pull request only requires a single approval to merge
label
May 28, 2024
tdonohue
approved these changes
May 29, 2024
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 this fix today and it fixes the bug, along with the other issues you've noted in the description. Code looks good too
Successfully created backport PR for |
alexandrevryghem
removed
the
port to dspace-7_x
This PR needs to be ported to `dspace-7_x` branch for next bug-fix release
label
May 29, 2024
alexandrevryghem
deleted the
w2p-115427_fixed-delete-item-page-freezing_contribute-main
branch
May 29, 2024 21:58
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
1 APPROVAL
pull request only requires a single approval to merge
bug
component: configurable entities
related to configurable entities
high priority
testathon
Reported by a tester during Community Testathon
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.
References
Description
Fixed performance issues that cause the delete item page to completely break when it has relationships. This was because it subscribed to functions returning Observables. While fixing this bug I also saw that accessing an edit item page with an invalid ID would not redirect you to the 404 page so I also fixed this. Also fixed the issue that prevented the user from being redirected when selecting some virtual metadata to copy
Instructions for Reviewers
List of changes in this PR:
RelationshipTypeDTO
&RelationshipDTO
. Theses classes will contain all theObservable
s that are needed in the HTML template. By saving this in one object we prevent resubscribing to all those observables every time change detection is triggeredDeleteDataImpl#deleteByHref
method invalidated the delete item URL instead of the get item URL. This caused the method to never emit whencopyVirtualMetadata
had values.Guidance for how to test & review this PR:
Checklist
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.