X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f8af0c6c331d5b52deab50abf7afa8c7881cddfb..91c467665ad493108b69c660d5424c77cce5668f:/apps/workbench/app/helpers/pipeline_instances_helper.rb diff --git a/apps/workbench/app/helpers/pipeline_instances_helper.rb b/apps/workbench/app/helpers/pipeline_instances_helper.rb index 238082a33b..ba05f9e88c 100644 --- a/apps/workbench/app/helpers/pipeline_instances_helper.rb +++ b/apps/workbench/app/helpers/pipeline_instances_helper.rb @@ -89,9 +89,9 @@ module PipelineInstancesHelper c[:job][:uuid] if c.is_a?(Hash) and c[:job].is_a?(Hash) }.compact job = {} - jobuuids.each do |jobuuid| - job[jobuuid] = Job.find?(jobuuid) - end.compact + Job.where(uuid: jobuuids).each do |j| + job[j[:uuid]] = j + end object.components.each do |cname, c| i += 1 @@ -306,4 +306,11 @@ module PipelineInstancesHelper raw(s) end + def render_unreadable_inputs_present + if current_user and controller.class.name.eql?('PipelineInstancesController') and unreadable_inputs_present? + raw('
' + + '

One or more inputs provided are not readable by you. ' + + 'Please correct these before you can run the pipeline.

') + end + end end