skip_before_filter :find_object_by_uuid, only: :compare
before_filter :find_objects_by_uuid, only: :compare
include PipelineInstancesHelper
+ include PipelineComponentsHelper
def copy
@object = @object.dup
p.components.each do |k, v|
j = v[:job] || next
- # The graph is interested in whether the component is
- # indicated as persistent, more than whether the job
- # satisfying it (which could have been reused, or someone
- # else's) is.
- j[:output_is_persistent] = v[:output_is_persistent]
-
uuid = j[:uuid].intern
provenance[uuid] = j
pips[uuid] = 0 unless pips[uuid] != nil
end
def show_pane_list
- panes = %w(Components Graph Advanced)
+ panes = %w(Components Log Graph Advanced)
if @object and @object.state.in? ['New', 'Ready']
- panes = %w(Inputs) + panes
+ panes = %w(Inputs) + panes - %w(Log)
end
- if not @object.components.values.collect { |x| x[:job] }.compact.any?
+ if not @object.components.values.any? { |x| x[:job] rescue false }
panes -= ['Graph']
end
panes