projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Turn off CSS animation on loading graphic; make it red instead.
[arvados.git]
/
apps
/
workbench
/
app
/
controllers
/
pipeline_instances_controller.rb
diff --git
a/apps/workbench/app/controllers/pipeline_instances_controller.rb
b/apps/workbench/app/controllers/pipeline_instances_controller.rb
index 7ca4f6a11ed2d6c6f4c5fdead9362d1eee74df0f..42cb2e9d44c8af1155f56133c7463476013049f5 100644
(file)
--- a/
apps/workbench/app/controllers/pipeline_instances_controller.rb
+++ b/
apps/workbench/app/controllers/pipeline_instances_controller.rb
@@
-95,6
+95,7
@@
class PipelineInstancesController < ApplicationController
highscore = {} # attr => how common "normal" is
score = {} # attr => { value => how common }
row[:components].each do |pj|
highscore = {} # attr => how common "normal" is
score = {} # attr => { value => how common }
row[:components].each do |pj|
+ next if pj.nil?
pj.each do |k,v|
vstr = for_comparison v
score[k] ||= {}
pj.each do |k,v|
vstr = for_comparison v
score[k] ||= {}
@@
-113,6
+114,7
@@
class PipelineInstancesController < ApplicationController
# Add a hash in component[:is_normal]: { attr => is_the_value_normal? }
row[:components].each do |pj|
# Add a hash in component[:is_normal]: { attr => is_the_value_normal? }
row[:components].each do |pj|
+ next if pj.nil?
pj[:is_normal] = {}
pj.each do |k,v|
pj[:is_normal][k] = (normal.has_key?(k) && normal[k] == for_comparison(v))
pj[:is_normal] = {}
pj.each do |k,v|
pj[:is_normal][k] = (normal.has_key?(k) && normal[k] == for_comparison(v))