hyrax icon indicating copy to clipboard operation
hyrax copied to clipboard

Sirenia docker image testing - Errors when deleting an Admin Set which contains no works

Open eporter23 opened this issue 2 years ago • 0 comments

Descriptive summary

This error occurred when testing the use case in AS_1.13 of the Hyrax testing worksheet. While logged in as admin user in the docker environment, I receive a series of errors when trying to delete an empty Admin Set which I created.

Steps to reproduce the behavior in User Interface (UI)

  1. Login as an Admin user
  2. Create an Admin Set and do not deposit any works into it
  3. Go back to the Dashboard, locate the Admin Set, and then select Delete from the Actions menu
  4. See the normal deletion warning popup menu
  5. Click Delete
  6. See "ldp gone" error in the same popup window
  7. Close the popup
  8. Go back to the Dashboard list and try to open the Admin Set
  9. See additional Hyrax::ObjectNotFoundError in Hyrax::Admin::AdminSetsController#show error

Actual behavior (include screenshots if available)

Include what version of Hyrax relates to this issue (3.x, 4.x, main branch, etc.) if appropriate, and any relevant error messages/tracebacks if you're reporting a bug.

Initial error shown after clicking Delete button

Screen Shot 2023-12-12 at 10 10 09 AM

Additional error when trying to view the Admin Set (which still appears in the Collections list)

Screen Shot 2023-12-12 at 10 18 44 AM

Acceptance Criteria/Expected Behavior

  • [ ] Standard Hyrax behavior should occur after clicking the Delete button
  • [ ] The Admin Set should no longer be listed in the Collections menu

Rationale (for feature request only)

Provide the rationale or user story that describes "why" this issue should be addressed. Especially if this is a new feature or significant change to the existing implementation.

Sirenia/Valkyrie should allow Admin Users the ability to successfully delete an Admin Set with no works deposited.

Related work

Link to related issues or prior related work here.

eporter23 avatar Dec 12 '23 15:12 eporter23