Skip to content
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

use transactions for batch delete #5513

Merged
merged 2 commits into from
Mar 9, 2022
Merged

use transactions for batch delete #5513

merged 2 commits into from
Mar 9, 2022

Conversation

elrayle
Copy link
Contributor

@elrayle elrayle commented Mar 9, 2022

Fixes #5512

Batch delete was using ActiveFedora to find and delete works and collections. This PR switches to using Hyrax.persister to find works and collections and then calling the destroy transaction.

The transaction correctly deletes the resource from ActiveFedora or postgres, as well as deleting from Solr.

@samvera/hyrax-code-reviewers

@elrayle elrayle merged commit f940a32 into main Mar 9, 2022
@elrayle elrayle deleted the find_by_alt branch March 9, 2022 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

batch delete works fails with unknown keyword :use_valkyrie with non-wings adapters
2 participants