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

Deletion abstraction #1017

Merged
merged 13 commits into from
May 30, 2024
Merged

Deletion abstraction #1017

merged 13 commits into from
May 30, 2024

Conversation

ajstanley
Copy link

GitHub Issue: (link)

What does this Pull Request do?

Abstracts duplicated code to a function in Utils

What's new?

The logic for media and file deletion has been moved from islandora_object_delete_form_submit and ConfirmDeleteMediaAndFile::submitForm has been moved to IslandoraUtils::deleteMediaAndFiles

How should this be tested?

Delete an Islandora node, with Delete all associated medias and nodes checked
Check to see that the media and files associated with that node have been deleted.
Select Delete Media and File(s) from the Action menu and check to see that all expected deletions have occurred.

Documentation Status

No change in use

Interested parties

@Islandora/committers @kayakr

src/IslandoraUtils.php Outdated Show resolved Hide resolved
@ajstanley
Copy link
Author

This was an odd one - PHPStorm insisted that $media was an object, but gettype() disagreed.

@rosiel rosiel merged commit 71d131a into Islandora:2.x May 30, 2024
24 checks passed
@ajstanley ajstanley deleted the deletion_abstraction branch June 20, 2024 16:06
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.

2 participants