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 f54b9f0c0084b257fae3d6d5e6b4a5f427068066..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,7
+132,7
@@
class PipelineInstance < ArvadosBase
end
end
end
end
- def work_unit
label
+ def work_unit
(label=nil)
PipelineInstanceWorkUnit.new(self, label || self.name)
end
PipelineInstanceWorkUnit.new(self, label || self.name)
end