projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
9043: Complete support for editing basic parameter types.
[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 6e556d5b75cae13626aad29d1c0a816a5a78b583..0541ce5d1792aee37fd6c40303a589a5637c128c 100644
(file)
--- a/
apps/workbench/app/models/pipeline_instance.rb
+++ b/
apps/workbench/app/models/pipeline_instance.rb
@@
-13,7
+13,7
@@
class PipelineInstance < ArvadosBase
template = if lookup and lookup[self.pipeline_template_uuid]
lookup[self.pipeline_template_uuid]
else
template = if lookup and lookup[self.pipeline_template_uuid]
lookup[self.pipeline_template_uuid]
else
- PipelineTemplate.
where(uuid: self.pipeline_template_uuid).first
+ PipelineTemplate.
find(self.pipeline_template_uuid) if self.pipeline_template_uuid
end
if template
template.name
end
if template
template.name
@@
-132,6
+132,10
@@
class PipelineInstance < ArvadosBase
end
end
end
end
+ def work_unit(label=nil)
+ PipelineInstanceWorkUnit.new(self, label || self.name)
+ end
+
private
def components_map
private
def components_map