return provenance, pips
end
- def create
- @object = PipelineInstance.new params[:pipeline_instance]
- @object.save!
- if !@object.components.andand.any? and @object.pipeline_template_uuid
- template = PipelineTemplate.find(@object.pipeline_template_uuid)
- @object.components = template.components.deep_dup
- @object.save!
- end
- super
- end
-
def show
@pipelines = [@object]
end
def show_pane_list
- %w(Components Graph Attributes Metadata JSON API)
+ panes = %w(Components Graph Attributes Metadata JSON API)
+ if @object and @object.state.in? ['New', 'Ready']
+ panes = %w(Inputs) + panes
+ end
+ panes
end
def compare_pane_list
end
def index
- @objects ||= model_class.limit(20).all
+ @limit = 20
super
end