Story #9589

[Workbench] Update collection interface for collections with non-nil trash_at

Added by Brett Smith over 1 year ago. Updated 9 months ago.

Status:
New
Priority:
Normal
Assigned To:
Category:
-
Target version:
-
Start date:
07/13/2016
Due date:
% Done:

0%

Estimated time:
Story points:
-

Description

When the user is viewing an expiring collection (one where expires_at is not null):

  • The leftmost information pane should include this sentence in bold: "This collection will expire in <duration>." Immediately after that sentence is an Undelete button, a normal Bootstrap button using the fa-recycle icon (this needs to be consistent with #9587). Pressing the Undelete button should update the collection to set its expires_at attribute to null. After successful undeletion, this sentence and button should be removed from the information pane.
  • If the user presses "Create sharing link," or the file "Browse" button on the Upload tab, a confirmation alert should appear. It says, "This collection will expire in <duration>. Are you sure you want to edit it?" If the user presses OK in the confirmation, the requested action proceeds as normal. If the user presses Cancel, nothing happens, as if the user never pressed the first button.

Use Rails' distance_of_time_in_words method to format <duration> in the messages above. from_time is the current time, and to_time is the collection's expires_at value.


Related issues

Related to Arvados - Story #9278: [Crunch2] Document/fix handling of collections with non-nil expires_at fieldIn Progress2016-06-01

Related to Arvados - Feature #11100: [CWL] Intermediary collection handling can be specifiedResolved2017-03-30

History

#1 Updated by Brett Smith over 1 year ago

  • Description updated (diff)

#2 Updated by Tom Morris about 1 year ago

  • Assigned To changed from Brett Smith to Tom Morris

#3 Updated by Tom Clegg 10 months ago

  • Subject changed from [Workbench] Update collection interface for expiring collections to [Workbench] Update collection interface for collections with non-nil trash_at

#4 Updated by Tom Morris 10 months ago

  • Assigned To changed from Tom Morris to Radhika Chippada

#5 Updated by Radhika Chippada 9 months ago

  • Do we want to support "Move collection" option for an expiring collection?
  • Do we want to support "Copy to project" option for an expiring collection? If so, if they are not already, we need to clear out expiration related attributes during the copy operation.

Also available in: Atom PDF