-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[23.1] Fix workflow output display without label #16749
Conversation
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.
b6f7ecf
to
a7ab719
Compare
Co-authored-by: Laila Los <[email protected]>
Test failures are unrelated |
There was a problem hiding this 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!
label = ( | ||
label | ||
) = f"{output_assoc.workflow_output.output_name} (Step {output_assoc.workflow_output.workflow_step.order_index + 1})" |
There was a problem hiding this comment.
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})"
?
There was a problem hiding this comment.
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 🤷
There was a problem hiding this comment.
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.
@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.
How to test the changes?
(Select all options that apply)
License