Skip to content

Commit

Permalink
use latest version's name on WorkflowRun forms
Browse files Browse the repository at this point in the history
Show the name corresponding to the `WorkflowRun` form workflow's version.
  • Loading branch information
ahmedhamidawan committed Jun 11, 2024
1 parent f8668a4 commit 2994a0f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/galaxy/managers/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -919,6 +919,9 @@ def to_format_2(wf_dict, **kwds):
raise exceptions.RequestParameterInvalidException(f"Unknown workflow style {style}")
if version is not None:
wf_dict["version"] = version
# If returning a run-form workflow for a specific version, use that version's name
if style == "run":
wf_dict["name"] = workflow.name
else:
wf_dict["version"] = len(stored.workflows) - 1
return wf_dict
Expand Down

0 comments on commit 2994a0f

Please sign in to comment.