From cd45d6a3f9e3298cbab3d0f2ba655d7a9d0034d5 Mon Sep 17 00:00:00 2001 From: Ward Vandewege Date: Mon, 30 Oct 2017 21:11:33 -0400 Subject: [PATCH] Rip out a bunch of very very slow workbench code that doesn't seem to serve much purpose. refs #12513 Arvados-DCO-1.1-Signed-off-by: Ward Vandewege --- .../app/views/projects/_show_dashboard.html.erb | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/apps/workbench/app/views/projects/_show_dashboard.html.erb b/apps/workbench/app/views/projects/_show_dashboard.html.erb index 00780c4089..07a62aed42 100644 --- a/apps/workbench/app/views/projects/_show_dashboard.html.erb +++ b/apps/workbench/app/views/projects/_show_dashboard.html.erb @@ -18,8 +18,6 @@ SPDX-License-Identifier: AGPL-3.0 %> if active_cr_containers.any? active_cr_containers.each { |c| cr_children[c] = []} cols = ContainerRequest.columns.map(&:name) - %w(id updated_at mounts) - reqs = ContainerRequest.select(cols).where(requesting_container_uuid: active_cr_containers).results - reqs.each {|cr| cr_children[cr.requesting_container_uuid] << cr} if reqs end wus = {} @@ -145,24 +143,12 @@ SPDX-License-Identifier: AGPL-3.0 %> <% end %> - <% - children = wu.children - running = children.select { |c| c.state_label == "Running" } - queued = children.select { |c| c.state_label == "Queued" } - %> -
Started at <%= render_localized_date(wu.started_at || wu.created_at, "noseconds") %>. <% wu_time = Time.now - (wu.started_at || wu.created_at) %> Active for <%= render_runtime(wu_time, false) %>.
- <% running.each do |r| %> - <%= r.label || r.state_label || 'Not ready' %> - <% end %> - <% queued.each do |q| %> - <%= q.label || r.state_label || 'Not ready' %> - <% end %>
-- 2.39.5