projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
4004: Rename "Compute status" to "Compute and job status". Added integration
[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 89acbb0dbb9438bbbb80ba2bc97cc1ce93eac9fa..936905713e44891f22261bf6e1c0ba19e598ae75 100644
(file)
--- a/
apps/workbench/app/models/pipeline_instance.rb
+++ b/
apps/workbench/app/models/pipeline_instance.rb
@@
-5,10
+5,14
@@
class PipelineInstance < ArvadosBase
true
end
true
end
- def friendly_link_name
+ def friendly_link_name
lookup=nil
pipeline_name = self.name
if pipeline_name.nil? or pipeline_name.empty?
pipeline_name = self.name
if pipeline_name.nil? or pipeline_name.empty?
- template = PipelineTemplate.where(uuid: self.pipeline_template_uuid).first
+ template = if lookup and lookup[self.pipeline_template_uuid]
+ lookup[self.pipeline_template_uuid]
+ else
+ PipelineTemplate.where(uuid: self.pipeline_template_uuid).first
+ end
if template
template.name
else
if template
template.name
else