projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes PipelineInstancesControllerTest. application_controller#create now does
[arvados.git]
/
apps
/
workbench
/
app
/
models
/
pipeline_instance.rb
diff --git
a/apps/workbench/app/models/pipeline_instance.rb
b/apps/workbench/app/models/pipeline_instance.rb
index da6116e91626ad2590ec042e6256c92c7455aa22..5a88003f8281199547431ca8051eea980c0a9d0f 100644
(file)
--- a/
apps/workbench/app/models/pipeline_instance.rb
+++ b/
apps/workbench/app/models/pipeline_instance.rb
@@
-1,6
+1,10
@@
class PipelineInstance < ArvadosBase
attr_accessor :pipeline_template
class PipelineInstance < ArvadosBase
attr_accessor :pipeline_template
+ def self.goes_in_folders?
+ true
+ end
+
def update_job_parameters(new_params)
self.components[:steps].each_with_index do |step, i|
step[:params].each do |param|
def update_job_parameters(new_params)
self.components[:steps].each_with_index do |step, i|
step[:params].each do |param|
@@
-16,9
+20,11
@@
class PipelineInstance < ArvadosBase
end
end
end
end
end
end
-
- def attribute_editable?(attr)
- attr == 'name'
+
+ def attribute_editable? attr, *args
+ super && (attr.to_sym == :name ||
+ (attr.to_sym == :components and
+ (self.state == 'New' || self.state == 'Ready')))
end
def attributes_for_display
end
def attributes_for_display