X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/9ac2a7d67db543a0356bdcc7c3ca37920086eae1..f69d2824c997c53caa11d30ba816768bad52e12b:/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 07fda05c32..ba05f9e88c 100644 --- a/apps/workbench/app/helpers/pipeline_instances_helper.rb +++ b/apps/workbench/app/helpers/pipeline_instances_helper.rb @@ -89,8 +89,8 @@ 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) + Job.where(uuid: jobuuids).each do |j| + job[j[:uuid]] = j end object.components.each do |cname, c| @@ -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