NASA-IMPACT / admg-backend

Apache License 2.0
2 stars 0 forks source link

Error message when deleting a campaign, instrument, or platform #551

Closed heidimok closed 9 months ago

heidimok commented 1 year ago

Issue Overview

How To Reproduce:

  1. Go to a published campaign (Heidi's delete test: https://admgdev.nasa-impact.net/v2/campaign/8ec24a8e-cb63-47c5-a4b9-72e0f888bf7e/published/8ec24a8e-cb63-47c5-a4b9-72e0f888bf7e)
  2. Click the delete button
  3. Click create a delete draft
  4. Error

Screenshots (flow)

image image image

Expected Behavior

Expect to be able to create a delete draft

The status then becomes "In Trash" image

heidimok commented 11 months ago

After learning a little more about the Deletion flow, I'm adding more thoughts on the user experience.

Deletions can be confusing in the MI. Key notes:

Step 1: User deletes a published item (E.g. Campaign)

Step 2: User goes through deletion approval process (multi-step process)

Step 3: Upon publishing a delete draft, a final confirmation modal appears

Step 4: Users are brought back to the campaign table


What if a user goes back to the main Campaign table during a deletion approval processs?

image

What if a user clicks into a deleted campaign that was published?

What if a user makes a mistake and wants to undo a delete draft?

What if a user goes to view a deleted campaign's history?

What if a user deletes a campaign and wants to recreate it?

heidimok commented 10 months ago

Update Oct 23, 2023:

After clarifying with Stephanie some expectations around the deletion workflow in the MI, and asking if it was intended from a curator's viewpoint to have to have SO many steps, we decided that it's not necessary for deletion drafts to have to go through the entire approval process.

Current:

  1. Click create delete draft on a published version
  2. Confirm delete draft, get taken back to the campaign table
  3. Find and click into the newly created delete draft on the campaign table again
  4. Go through the entire approval process for a delete draft
  5. Publish that delete draft
  6. Now the published version is finally delete (but the history drafts remain)

New:

  1. Click 'delete' on a published version
  2. Confirm the delete
  3. You are navigated back to main list page where the draft is now In Trash status
  4. Successful deletion alert (if possible)
heidimok commented 9 months ago

Nov 24, 2023

https://github.com/NASA-IMPACT/admg-backend/assets/10764915/44d50d72-b54e-48d0-a43d-80b3dabb7fcd

image

heidimok commented 9 months ago

Closing this as it works when tested by Tammo but once we merge to staging I will do a final check to make sure.