scientist-softserv / hykuup_knapsack

container project for the Hyku Up deploy of Hyku
Apache License 2.0
1 stars 0 forks source link

🐛 deleting Valkyrie objects #187

Closed ShanaLMoore closed 3 months ago

ShanaLMoore commented 3 months ago

Summary

Image

Acceptance Criteria

Testing Instructions

Note

Verifying that all objects are removed along with the work or file set is a bit more complicated. It can be done via the rails console if desired using the following commands:

wk =  Hyrax.query_service.find_by(id: work_id)
fs = wk.members.first
wk_access = Hyrax::AccessControl.for(resource: wk)
fs_access = Hyrax::AccessControl.for(resource: fs)
fs_metadata = Hyrax.query_service.find_by(id: fs.file_ids.first)
laritakr commented 3 months ago

Notes

Tested locally via the UI and rails console. Works after iiif_print update.