[ARVADOS] updated: a7bd5fa6c4353745260398eaa61c5b857975d222

Git user git at public.curoverse.com
Wed May 10 11:45:40 EDT 2017


Summary of changes:
 apps/workbench/app/views/workflows/_show_definition.html.erb | 9 +++++++++
 1 file changed, 9 insertions(+)

       via  a7bd5fa6c4353745260398eaa61c5b857975d222 (commit)
      from  4c1d34eee72603b850bea8d5dc95c225e644954f (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 a7bd5fa6c4353745260398eaa61c5b857975d222
Author: radhika <radhika at curoverse.com>
Date:   Wed May 10 11:45:23 2017 -0400

    10112: preload collections

diff --git a/apps/workbench/app/views/workflows/_show_definition.html.erb b/apps/workbench/app/views/workflows/_show_definition.html.erb
index 3ca15e2..69338cb 100644
--- a/apps/workbench/app/views/workflows/_show_definition.html.erb
+++ b/apps/workbench/app/views/workflows/_show_definition.html.erb
@@ -17,6 +17,15 @@
 
   outputs = wf_def.andand["outputs"]
   items['outputs'] = outputs if outputs
+
+  # preload the collections
+  collections_pdhs = []
+  items.each do |k, v|
+    v.to_s.scan(/([0-9a-f]{32}\+\d+)/).each {|l| collections_pdhs += l}
+  end
+  collections_pdhs.compact.uniq
+  preload_for_pdhs collections_pdhs if collections_pdhs.any?
+  preload_links_for_objects collections_pdhs if collections_pdhs.any?
 %>
 
   <div class="col-md-12">

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list