[ARVADOS] updated: 91a44b10f8c7eb1bee8fcd23a577a1969bcdb2e4

git at public.curoverse.com git at public.curoverse.com
Tue Oct 7 11:29:16 EDT 2014


Summary of changes:
 sdk/python/arvados/commands/copy.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

       via  91a44b10f8c7eb1bee8fcd23a577a1969bcdb2e4 (commit)
      from  f4008e9c662be5b576f5e785a4c90cc1e2cfb5fa (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 91a44b10f8c7eb1bee8fcd23a577a1969bcdb2e4
Author: Tim Pierce <twp at curoverse.com>
Date:   Tue Oct 7 11:28:00 2014 -0400

    3699: expose to the user that a pipeline has been copied
    
    Copied pipeline templates and instances indicate via the 'description'
    and 'name' fields that they have been copied from another pipeline.
    
    The pipeline instance also reports this programmatically via the
    'properties' hash.

diff --git a/sdk/python/arvados/commands/copy.py b/sdk/python/arvados/commands/copy.py
index eca15de..6271404 100755
--- a/sdk/python/arvados/commands/copy.py
+++ b/sdk/python/arvados/commands/copy.py
@@ -208,6 +208,8 @@ def copy_pipeline_instance(pi_uuid, src, dst, dst_git_repo, dst_project=None, re
     # Update the pipeline instance properties, and create the new
     # instance at dst.
     pi['properties']['copied_from_pipeline_instance_uuid'] = pi_uuid
+    pi['description'] = "Pipeline copied from {}\n\n{}".format(
+        pi_uuid, pi.get('description', ''))
     if dst_project:
         pi['owner_uuid'] = dst_project
     else:
@@ -241,7 +243,9 @@ def copy_pipeline_template(pt_uuid, src, dst, dst_git_repo, recursive=True):
         pt = copy_collections(pt, src, dst)
         copy_git_repos(pt, src, dst, dst_git_repo)
 
-    pt['name'] = pt['name'] + ' copy'
+    pt['description'] = "Pipeline template copied from {}\n\n{}".format(
+        pt_uuid, pt.get('description', ''))
+    pt['name'] = "{} copied from {}".format(pt.get('name', ''), pt_uuid)
     pt['ensure_unique_name'] = True
     del pt['uuid']
     del pt['owner_uuid']

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list