[ARVADOS] updated: 33fed6bb30180c9dedb046d6266acbbc48dcfcd4

git at public.curoverse.com git at public.curoverse.com
Thu Jun 5 10:03:29 EDT 2014


Summary of changes:
 apps/workbench/app/views/users/_tables.html.erb | 37 +++++++++++++------------
 1 file changed, 20 insertions(+), 17 deletions(-)

       via  33fed6bb30180c9dedb046d6266acbbc48dcfcd4 (commit)
      from  87dc5129e903cb7452e06c936d8e5e581c4d2481 (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 33fed6bb30180c9dedb046d6266acbbc48dcfcd4
Author: radhika <radhika at curoverse.com>
Date:   Thu Jun 5 09:45:43 2014 -0400

    2871: preload objects for dashboard

diff --git a/apps/workbench/app/views/users/_tables.html.erb b/apps/workbench/app/views/users/_tables.html.erb
index 09a83f2..a8c00e7 100644
--- a/apps/workbench/app/views/users/_tables.html.erb
+++ b/apps/workbench/app/views/users/_tables.html.erb
@@ -25,17 +25,30 @@
           <th>Progress</th>
         </tr>
 
-        <% 
-          job_outputs = []
-          job_logs = []
+        <%# Preload collections, logs, and pipeline instance objects %>
+        <%
+          collection_uuids = []
+          log_uuids = []
           @my_jobs[0..6].each do |j|
-            job_outputs << j.output
-            job_logs << j.log
+            collection_uuids << j.output
+            log_uuids << j.log
           end
 
-          preload_collections_for_objects job_outputs
-          preload_log_collections_for_objects job_logs
+          @my_collections[0..6].each do |c|
+            collection_uuids << c.uuid
+          end
+
+          preload_collections_for_objects collection_uuids
+          preload_log_collections_for_objects log_uuids
+
+          pi_uuids = []
+          @my_pipelines[0..6].each do |p|
+            pi_uuids << p.uuid
+          end
+          resource_class = resource_class_for_uuid(pi_uuids.first, friendly_name: true)
+          preload_objects_for_dataclass resource_class, pi_uuids
         %>
+
         <% @my_jobs[0..6].each do |j| %>
           <tr data-object-uuid="<%= j.uuid %>">
             <td>
@@ -122,16 +135,6 @@
         <th>Progress</th>
       </tr>
 
-      <%
-        pi_uuids = []
-        @my_pipelines[0..6].each do |p|
-          pi_uuids << p.uuid
-        end
-
-        resource_class = resource_class_for_uuid(pi_uuids.first, friendly_name: true)
-        preload_objects_for_dataclass resource_class, pi_uuids
-      %>
-      
       <% @my_pipelines[0..6].each do |p| %>
         <tr data-object-uuid="<%= p.uuid %>">
           <td>

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list