[ARVADOS] updated: 5d651aff459f70c777054217203a239cbfd95706
    git at public.curoverse.com 
    git at public.curoverse.com
       
    Thu Aug 21 17:10:51 EDT 2014
    
    
  
Summary of changes:
 apps/workbench/app/controllers/actions_controller.rb  | 5 ++++-
 apps/workbench/app/controllers/projects_controller.rb | 2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)
       via  5d651aff459f70c777054217203a239cbfd95706 (commit)
      from  48956dadd90d0a71a51afdcd9fd3d9a988866272 (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 5d651aff459f70c777054217203a239cbfd95706
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Thu Aug 21 17:10:45 2014 -0400
    3504: Support copy and moving collections on new apiserver
diff --git a/apps/workbench/app/controllers/actions_controller.rb b/apps/workbench/app/controllers/actions_controller.rb
index 265cff4..fd4ebc4 100644
--- a/apps/workbench/app/controllers/actions_controller.rb
+++ b/apps/workbench/app/controllers/actions_controller.rb
@@ -48,7 +48,7 @@ class ActionsController < ApplicationController
       uniq.
       each do |resource_class|
       resource_class.filter([['uuid','in',uuids_to_add]]).each do |src|
-        if resource_class == Collection
+        if resource_class == Collection and not Collection.attribute_info.include?(:name)
           dst = Link.new(owner_uuid: @object.uuid,
                          tail_uuid: @object.uuid,
                          head_uuid: src.uuid,
@@ -65,6 +65,9 @@ class ActionsController < ApplicationController
                 dst.name = "Copy of unnamed #{dst.class_for_display.downcase}"
               end
             end
+            if resource_class == Collection
+              dst.manifest_text = Collection.select([:manifest_text]).where(uuid: src.uuid).first.manifest_text
+            end
           when :move
             dst = src
           else
diff --git a/apps/workbench/app/controllers/projects_controller.rb b/apps/workbench/app/controllers/projects_controller.rb
index d9ec0a6..43440fe 100644
--- a/apps/workbench/app/controllers/projects_controller.rb
+++ b/apps/workbench/app/controllers/projects_controller.rb
@@ -86,7 +86,7 @@ class ProjectsController < ApplicationController
       uniq.
       each do |resource_class|
       resource_class.filter([['uuid','in',uuids_to_add]]).each do |dst|
-        if resource_class == Collection
+        if resource_class == Collection and not Collection.attribute_info.include?(:name)
           dst = Link.new(owner_uuid: target_uuid,
                          tail_uuid: target_uuid,
                          head_uuid: dst.uuid,
-----------------------------------------------------------------------
hooks/post-receive
-- 
    
    
More information about the arvados-commits
mailing list