Skip to content

Commit

Permalink
List invocation outputs without explicit label
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mvdbeek committed Sep 28, 2023
1 parent a72a9c1 commit a7ab719
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/galaxy/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit a7ab719

Please sign in to comment.