From a7ab7191afa882c6ccfbe8086a4766aca3f7f153 Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Wed, 27 Sep 2023 13:01:52 +0200 Subject: [PATCH] List invocation outputs without explicit label using a unique label that we compute on the fly. Should hopefully not happen often now that we set a default label when we make an output a workflow output. --- lib/galaxy/model/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/galaxy/model/__init__.py b/lib/galaxy/model/__init__.py index 0786651e8d99..02d1ec958a4f 100644 --- a/lib/galaxy/model/__init__.py +++ b/lib/galaxy/model/__init__.py @@ -8364,7 +8364,7 @@ def to_dict(self, view="collection", value_mapper=None, step_details=False, lega # TODO: does this work correctly if outputs are mapped over? label = output_assoc.workflow_output.label if not label: - continue + label = f"{output_assoc.workflow_output.output_name} (Step {output_assoc.workflow_output.workflow_step.order_index + 1})" outputs[label] = { "src": "hda", @@ -8376,7 +8376,9 @@ def to_dict(self, view="collection", value_mapper=None, step_details=False, lega for output_assoc in self.output_dataset_collections: label = output_assoc.workflow_output.label if not label: - continue + label = ( + label + ) = f"{output_assoc.workflow_output.output_name} (Step {output_assoc.workflow_output.workflow_step.order_index + 1})" output_collections[label] = { "src": "hdca",