[ARVADOS] created: 5098820fed0920a31dd87a12c4f027318d7a1bd6

Git user git at public.curoverse.com
Mon Sep 25 16:53:59 EDT 2017


        at  5098820fed0920a31dd87a12c4f027318d7a1bd6 (commit)


commit 5098820fed0920a31dd87a12c4f027318d7a1bd6
Author: Ward Vandewege <wvandewege at veritasgenetics.com>
Date:   Mon Sep 25 16:53:21 2017 -0400

    Do not blow up the provenance graph if a PDH used in the workflow no
    longer exists.
    
    refs #12316
    
    Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <wvandewege at veritasgenetics.com>

diff --git a/apps/workbench/app/helpers/provenance_helper.rb b/apps/workbench/app/helpers/provenance_helper.rb
index 94092a1..d6b4db0 100644
--- a/apps/workbench/app/helpers/provenance_helper.rb
+++ b/apps/workbench/app/helpers/provenance_helper.rb
@@ -232,7 +232,11 @@ module ProvenanceHelper
                   # Search for any collection with this PDH
                   cols = @opts[:input_collections][pdh]
                 end
-                names = cols.collect{|x| x[:name]}.uniq
+                if cols
+                  names = cols.collect{|x| x[:name]}.uniq
+                else
+                  names = []
+                end
                 input_name = names.first
                 if names.length > 1
                   input_name += " + #{names.length - 1} more"

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list