Project

General

Profile

Actions

Feature #19080

open

When item is in trash, offer to remove it from trash

Added by Peter Amstutz almost 2 years ago. Updated 16 days ago.

Status:
New
Priority:
Normal
Assigned To:
-
Category:
Workbench2
Story points:
-

Description

In workbench 1, if you try to go to a collection, project, container request, etc that has been trashed (or contained within a project that has been trashed), it will tell you that it was trashed and, if you have write permission, give you the option to un-trash it.

This feature should be re-implemented in Workbench 2.

It should work for collections, projects, workflows and container requests.

When showing the "NotFoundView" it should:

  1. get the uuid of the item
  2. do some sanity checking, for example check that the object type matches the route (e.g. collections must contain -4zz18-)
  3. try to fetch the object with include_trashed=true
  4. if it still returns 404, it doesn't exist or the user doesn't have permission to read it
  5. for collections and groups, check if is_trashed is set. If so, display a message "This item is in the trash". If the user has can_write permission, display "do you wish to remove it from the trash?" and a "toggle trash" button for this item.
  6. if it isn't a collection or group, or is_trashed is not set on the immediate item, then search ancestors for a parent where is_trashed is set and the user has can_write permission.
  7. If so, display a message "This is contained in a project that is in the trash". If the user has can_write permission on the project, display "do you wish to remove the project from the trash?" and a "toggle trash" button for the project.

Related issues

Related to Arvados - Bug #21067: Process panel needs to handle trashed/deleted output and log collections properlyResolvedPeter Amstutz10/26/2023Actions
Actions

Also available in: Atom PDF