[ARVADOS] updated: 4259263d270a5e377009d20835a463551c708d82
Git user
git at public.curoverse.com
Fri May 5 10:44:33 EDT 2017
Summary of changes:
apps/workbench/app/helpers/provenance_helper.rb | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
via 4259263d270a5e377009d20835a463551c708d82 (commit)
from e018237856b7bdd61e46468696bf3783a8f745df (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 4259263d270a5e377009d20835a463551c708d82
Author: Lucas Di Pentima <lucas at curoverse.com>
Date: Fri May 5 11:43:47 2017 -0300
10111: On output collections, name the collection node after the output_uuid reference.
diff --git a/apps/workbench/app/helpers/provenance_helper.rb b/apps/workbench/app/helpers/provenance_helper.rb
index 665f3d5..3833243 100644
--- a/apps/workbench/app/helpers/provenance_helper.rb
+++ b/apps/workbench/app/helpers/provenance_helper.rb
@@ -144,11 +144,11 @@ module ProvenanceHelper
# Add CR outputs by PDH so they connect with the child CR's inputs.
if cr[:output_uuid]
- output_pdh = Collection.find(cr[:output_uuid])[:portable_data_hash]
- if output_pdh
- gr += describe_node(output_pdh,
- {label: col_name_for_project(output_pdh, cr[:owner_uuid])})
- gr += edge(uuid, output_pdh, {label: 'output'})
+ output_col = Collection.find(cr[:output_uuid])
+ if output_col
+ gr += describe_node(output_col[:portable_data_hash],
+ {label: output_col[:name]})
+ gr += edge(uuid, output_col[:portable_data_hash], {label: 'output'})
end
end
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list