Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[23.1] Fix workflow output display without label #16749

Merged

Conversation

mvdbeek
Copy link
Member

@mvdbeek mvdbeek commented Sep 27, 2023

@Delphine-L noticed that workflow outputs without a label were not shown in the invocation page. The first commit makes it so that when you add a workflow output it default to using the output_name as the label. It also warns you when that output label is not unique. The second commit provides a fallback label for invocation outputs.

workflow output label duplicates

How to test the changes?

(Select all options that apply)

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. [add testing steps and prerequisites here if you didn't write automated tests covering all your changes]

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

@mvdbeek mvdbeek changed the title [23.1] Fix output display without label [23.1] Fix workflow output display without label Sep 27, 2023
@github-actions github-actions bot added this to the 23.2 milestone Sep 27, 2023
And since that makes it considerably easier to have duplicate output
labels we now highlight duplicate output labels.
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.
@mvdbeek mvdbeek force-pushed the fix_output_display_without_label branch from b6f7ecf to a7ab719 Compare September 28, 2023 07:58
@mvdbeek
Copy link
Member Author

mvdbeek commented Sep 28, 2023

Test failures are unrelated

Copy link
Member

@bgruening bgruening left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will update the server now. Thanks!

@bgruening bgruening merged commit 61cb77e into galaxyproject:release_23.1 Sep 28, 2023
35 of 39 checks passed
@nsoranzo nsoranzo deleted the fix_output_display_without_label branch January 30, 2024 15:22
Comment on lines +8379 to +8381
label = (
label
) = f"{output_assoc.workflow_output.output_name} (Step {output_assoc.workflow_output.workflow_step.order_index + 1})"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mvdbeek I suppose this can just be:

                    label = f"{output_assoc.workflow_output.output_name} (Step {output_assoc.workflow_output.workflow_step.order_index + 1})"

?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, I don't know what happened here 🤷

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, no worries, fixing it as part of applying the new black 2024 stable style.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants