projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2760: Exclude system objects like VMs and repos from folder behavior.
[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 d435ad40eace95dd6cee197dbe90edfb1264e201..aad7cfc4cc9858e837505cc85f7eb5a5a118c212 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|
@@
-18,7
+22,8
@@
class PipelineInstance < ArvadosBase
end
def attribute_editable?(attr)
end
def attribute_editable?(attr)
- attr && (attr.to_sym == :name || (attr.to_sym == :components and self.active == nil))
+ attr && (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