Bug #16510

Indirectly trashed item's context menu show editable actions

Added by Lucas Di Pentima 5 months ago. Updated 1 day ago.

Status:
New
Priority:
Normal
Assigned To:
Category:
Workbench2
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
(Total: 0.00 h)
Story points:
-

Description

Projects or collections belonging to other projects that happen to be trashed are accessible on WB2 via the "Trash" section on the left panel, by navigating through those trashed projects.
The context menu code on wb2 assumes that something is trashed only when its is_trashed field is set to true, but that's not always the case. On wb2, when this happens, a "Restore" menu item is offered that calls the untrash API call, and that's possible only on directly trashed objects, and it isn't on objects that belong to trashed projects.
So, we should come up with a way of fixing this behavior difference, as users will surely want to recover some objects from within trashed projects.

Talked on eng meeting:

  • Implement a virtual read-only field on the API side to tell the client when something is indirectly trashed
    • This would be included not always but when using “include_trash” or passing another special flag
  • On wb2’s side, that would allow us to easily know when any object is trashed.
  • A virtual field won’t necessarily be useful as an event from websocket, so we may need to use some cache invalidation strategy

Subtasks

Task #16816: ReviewNew

History

#1 Updated by Lucas Di Pentima 5 months ago

I've pushed a WIP branch that's related to what we'll decide for this ticket: handling trashed collection views: arvados-workbench2|259a52af (branch 16118-collection-panel-trash-view)

#2 Updated by Lucas Di Pentima 4 months ago

  • Target version changed from 2020-07-01 Sprint to 2020-07-15
  • Assigned To set to Lucas Di Pentima

#3 Updated by Lucas Di Pentima 3 months ago

  • Target version changed from 2020-07-15 to 2020-08-12 Sprint

#4 Updated by Peter Amstutz 3 months ago

  • Target version changed from 2020-08-12 Sprint to 2020-08-26 Sprint

#5 Updated by Peter Amstutz 3 months ago

  • Target version changed from 2020-08-26 Sprint to 2020-09-09 Sprint

#6 Updated by Lucas Di Pentima about 2 months ago

  • Target version changed from 2020-09-09 Sprint to 2020-09-23 Sprint

#7 Updated by Lucas Di Pentima about 1 month ago

  • Description updated (diff)

#8 Updated by Peter Amstutz about 1 month ago

  • Target version changed from 2020-09-23 Sprint to 2020-10-07 Sprint

#9 Updated by Lucas Di Pentima 29 days ago

  • Target version changed from 2020-10-07 Sprint to 2020-10-21 Sprint

#10 Updated by Lucas Di Pentima 1 day ago

  • Target version changed from 2020-10-21 Sprint to 2020-11-04 Sprint

#11 Updated by Lucas Di Pentima 1 day ago

  • Target version changed from 2020-11-04 Sprint to 2020-11-18

Also available in: Atom PDF