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.
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:
- get the uuid of the item
- do some sanity checking, for example check that the object type matches the route (e.g. collections must contain
-4zz18-
)
- try to fetch the object with include_trashed=true
- if it still returns 404, it doesn't exist or the user doesn't have permission to read it
- 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.
- 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.
- 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.
- Description updated (diff)
- Target version changed from 2022-05-25 sprint to 2022-06-08 sprint
- Target version changed from 2022-06-08 sprint to 2022-07-06
- Target version changed from 2022-07-06 to 2022-07-20
- Target version changed from 2022-07-20 to 2022-08-03 Sprint
- Target version changed from 2022-08-03 Sprint to 2022-08-31 sprint
- Target version changed from 2022-08-31 sprint to 2022-09-28 sprint
- Target version changed from 2022-09-28 sprint to 2022-10-12 sprint
- Target version changed from 2022-10-12 sprint to 2022-10-26 sprint
- Target version changed from 2022-10-26 sprint to 2022-11-09 sprint
- Target version changed from 2022-11-09 sprint to 2022-11-23 sprint
- Target version changed from 2022-11-23 sprint to 2022-12-07 Sprint
- Target version changed from 2022-12-07 Sprint to 2022-12-21 Sprint
- Target version changed from 2022-12-21 Sprint to 2023-02-01 sprint
- Target version changed from 2023-02-01 sprint to 2023-02-15 sprint
- Target version changed from 2023-02-15 sprint to Future
- Target version changed from Future to Development 2023-11-29 sprint
- Target version changed from Development 2023-11-29 sprint to Development 2023-11-08 sprint
- Related to Bug #21067: Process panel needs to handle trashed/deleted output and log collections properly added
- Description updated (diff)
- Target version changed from Development 2023-11-08 sprint to Development 2023-11-29 sprint
- Description updated (diff)
- Subject changed from Offer to un-trash items, instead of "not found" dialog to When item is in trash, offer to remove it from trash
- Description updated (diff)
- Target version changed from Development 2023-11-29 sprint to Development 2024-01-03 sprint
- Target version changed from Development 2024-01-03 sprint to Development 2024-01-17 sprint
- Target version changed from Development 2024-01-17 sprint to Development 2024-02-14 sprint
- Target version changed from Development 2024-02-14 sprint to Development 2024-02-28 sprint
- Target version changed from Development 2024-02-28 sprint to Development 2024-03-27 sprint
- Target version changed from Development 2024-03-27 sprint to Development 2024-04-24 sprint
- Target version changed from Development 2024-04-24 sprint to Development 2024-05-08 sprint
- Target version changed from Development 2024-05-08 sprint to Development 2024-06-05 sprint
Also available in: Atom
PDF