Project

General

Profile

Actions

Idea #3078

closed

arv-put adds a name link after creating a collection

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

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
-
Target version:
Start date:
07/07/2014
Due date:
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 1 (0 open1 closed)

Task #3205: Review 3078-arv-put-name-linksResolvedPeter Amstutz07/07/2014Actions
Actions #1

Updated by Tom Clegg over 10 years ago

  • Description updated (diff)
Actions #2

Updated by Brett Smith over 10 years ago

  • Assigned To set to Brett Smith
Actions #3

Updated by Brett Smith over 10 years ago

  • Status changed from New to In Progress
Actions #4

Updated by Brett Smith over 10 years ago

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

Actions #5

Updated by Peter Amstutz over 10 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
Actions #6

Updated by Brett Smith over 10 years ago

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

Applied in changeset arvados|commit:dc680bd83cfe84feadc5fcd9c1885e1738a84216.

Actions

Also available in: Atom PDF