Story #3078

arv-put adds a name link after creating a collection

Added by Tom Clegg over 5 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Brett Smith
Category:
-
Target version:
Start date:
07/07/2014
Due date:
% Done:

100%

Estimated time:
(Total: 2.00 h)
Story points:
1.0

Description

arv-put needs two new command line arguments.
  1. --name → an arbitrary string
  2. --project-uuid → uuid of a project (group)
New behavior:
  • If neither argument is provided, arv-put should display a warning like: "Warning: with no --name or --project-uuid specified, files will be stored in Keep as cached data and will be harder for you to find later."
  • If a name is provided, but not a project uuid, there is not enough information to create a name link so arv-put should fail immediately with an explanation.
  • If a project uuid is provided, but not a name, the name should default to "Collection saved by {user}@{hostname} at {current date/time}".
  • If both arguments are provided, after creating the collection object, arv-put should create a name link.
    • owner_uuid = tail_uuid = the specified project uuid
    • head_uuid = the new collection uuid
    • link_class = "name"
    • name = the specified name
  • If everything else succeeds but link creation fails, output the collection's hash on stdout as usual, but display an error message and exit non-zero.
Do not (yet):
  • Accept a project name on the command line
  • Guess a project if none is given

Subtasks

Task #3205: Review 3078-arv-put-name-linksResolvedPeter Amstutz

Associated revisions

Revision dc680bd8
Added by Brett Smith over 5 years ago

Merge branch '3078-arv-put-name-links'

Closes #3078, #3176, #3205.

History

#1 Updated by Tom Clegg over 5 years ago

  • Description updated (diff)

#2 Updated by Brett Smith over 5 years ago

  • Assigned To set to Brett Smith

#3 Updated by Brett Smith over 5 years ago

  • Status changed from New to In Progress

#4 Updated by Brett Smith over 5 years ago

3078-arv-put-name-links up for review at c96172e. Includes a bugfix for #3176.

#5 Updated by Peter Amstutz over 5 years ago

Error reporting is missing a newline:

$ arv-put --name Mills_and_1000G_gold_standard.indels.hg19.vcf.gz Mills_and_1000G_gold_standard.indels.hg19.vcf.gz
arv-put: --name requires --project-uuid.peter@peter:[pts/6]:~/work/pipeline/lib

#6 Updated by Brett Smith over 5 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100

Applied in changeset arvados|commit:dc680bd83cfe84feadc5fcd9c1885e1738a84216.

Also available in: Atom PDF