Closes #3438.
display_value = value_info[:link_name]
end
end
+ if (attr == :components) and (subattr.size > 2)
+ chooser_title = "Choose a dataset for #{object.component_input_title(subattr[0], subattr[2])}:"
+ else
+ chooser_title = "Choose a dataset:"
+ end
modal_path = choose_collections_path \
- ({ title: 'Choose a dataset:',
+ ({ title: chooser_title,
filters: [['tail_uuid', '=', object.owner_uuid]].to_json,
action_name: 'OK',
action_href: pipeline_instance_path(id: object.uuid),
end
end
end
-
+
def attribute_editable? attr, *args
super && (attr.to_sym == :name ||
(attr.to_sym == :components and
def self.creatable?
false
end
+
+ def component_input_title(component_name, input_name)
+ component = components[component_name]
+ return nil if component.nil?
+ component[:script_parameters].andand[input_name.to_sym].andand[:title] ||
+ "\"#{input_name.to_s}\" parameter for #{component[:script]} script in #{component_name} component"
+ end
end
not pvalue_spec[:value])) %>
<% n_inputs += 1 %>
<label for="<% "#{cname}-#{pname}" %>">
- <%= pvalue_spec[:title] ||
- "\"#{pname.to_s}\" parameter for #{component[:script]} script in #{cname} component" %>
+ <%= @object.component_input_title(cname, pname) %>
</label>
<div>
<p class="form-control-static">
click
within('.modal-dialog') do
+ assert(has_text?("Foo/bar pair"),
+ "pipeline input picker missing name of input")
first('span', text: 'foo_tag').click
find('button', text: 'OK').click
end