X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e69f517dbd5ad9bac104d42479d8ef2f515b398e..29356d0c02566aa33b3dbb9513dc701bad8fd16b:/apps/workbench/app/views/work_units/_show_component.html.erb diff --git a/apps/workbench/app/views/work_units/_show_component.html.erb b/apps/workbench/app/views/work_units/_show_component.html.erb index 2290a65a76..8f0c2d71ea 100644 --- a/apps/workbench/app/views/work_units/_show_component.html.erb +++ b/apps/workbench/app/views/work_units/_show_component.html.erb @@ -37,33 +37,11 @@

<%# Work unit children %> - -<% - load_preloaded_objects(wu.children.collect {|j| j}) - - collections = wu.outputs.flatten.uniq - collections << wu.log_collection if wu.log_collection - collections << wu.docker_image if wu.docker_image - collections = wu.children.collect {|j| j.outputs}.compact - collections = collections.flatten.uniq - collections.concat wu.children.collect {|j| j.docker_image}.uniq.compact - collections.concat wu.children.collect {|j| j.log_collection}.uniq.compact - collections_pdhs = collections.select {|x| !(m = CollectionsHelper.match(x)).nil?}.uniq.compact - collections_uuids = collections - collections_pdhs - preload_collections_for_objects collections_uuids if collections_uuids.any? - preload_for_pdhs collections_pdhs if collections_pdhs.any? - - repos = wu.children.collect {|c| c.repository}.uniq.compact - preload_objects_for_dataclass(Repository, repos, :by_name) if repos.any? -%> - <% if wu.has_unreadable_children %> <%= render(partial: "pipeline_instances/show_components_json", locals: {error_name: "Unreadable components", backtrace: nil, wu: wu}) %> <% else %> - <% @descendent_count = 0 if !@descendent_count %> <% wu.children.each do |c| %> - <% @descendent_count += 1 %> - <%= render(partial: 'work_units/show_child', locals: {current_obj: c, i: @descendent_count, expanded: false}) %> + <%= render(partial: 'work_units/show_child', locals: {current_obj: c, i: (c.uuid || rand(2**128).to_s(36)), expanded: false}) %> <% end %> <% end %>