Skip to content

Avoid unintended side-effects on non-interactive library disassociations (PP-2408) #171

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

Merged
merged 2 commits into from
Aug 20, 2025

Conversation

tdilauro
Copy link
Contributor

Description

Use newly-added isLibraryRemovalPermitted (instead of removeLibrary) to confirm interactive removals of library associations from collections.

NB: This PR is ready for review; however, it depends on #170 for isLibraryRemovalPermitted, so this PR should not be merged until that one is landed.

Motivation and Context

Confirmation popups were rendering for each associated library when the CollectionEditForm was being cleared. This is because removeLibrary is used both interactively -- when library Delete button is clicked -- and non-interactively, when the form is cleared.

[Jira PP-2408]

How Has This Been Tested?

  • Testing in local environment.
  • All tests pass locally.
  • CI tests pass.

Checklist:

  • I have updated the documentation accordingly.
  • All new and existing tests passed.

@tdilauro tdilauro added the bug Something isn't working label Aug 20, 2025
@tdilauro tdilauro requested a review from a team August 20, 2025 16:20
Copy link

@PoorBillyPilgrim PoorBillyPilgrim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Base automatically changed from feature/library-disassociation-confirmation to main August 20, 2025 17:17
@tdilauro tdilauro marked this pull request as ready for review August 20, 2025 17:18
@tdilauro tdilauro merged commit 4db3e5e into main Aug 20, 2025
1 check passed
@tdilauro tdilauro deleted the bugfix/confirm-delete-collection-library branch August 20, 2025 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants