Skip to content

Conversation

JBBianchi
Copy link
Member

Many thanks for submitting your Pull Request ❤️!

What this PR does / why we need it:
The create/edit workflow view was serializing the definition directly to YAML, which caused endpoint fields to be replaced with {} in the editor.

This PR aligns the behavior with the details view by always serializing to JSON first and converting to YAML only if the editor is configured for it.

This ensures endpoint fields are correctly preserved when editing workflows in the UI.

Closes #534

Special notes for reviewers:

Additional information (if needed):

… create/edit view

Closes #534

Signed-off-by: Jean-Baptiste Bianchi <[email protected]>
@JBBianchi JBBianchi requested a review from cdavernas August 18, 2025 14:19
@JBBianchi JBBianchi self-assigned this Aug 18, 2025
@JBBianchi JBBianchi added type: bug Something isn't working app: dashboard Concerns the Dashboard UI priority: medium Indicates an average priority issue weight: 1 An issue that has a very low development impact type: fix labels Aug 18, 2025
Copy link
Member

@cdavernas cdavernas left a comment

Choose a reason for hiding this comment

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

LGTM! Cheers ❤️

@cdavernas cdavernas merged commit 960443d into main Aug 18, 2025
2 checks passed
@cdavernas cdavernas deleted the fix-534-endpoint-yaml-serialization branch August 18, 2025 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app: dashboard Concerns the Dashboard UI priority: medium Indicates an average priority issue type: bug Something isn't working type: fix weight: 1 An issue that has a very low development impact
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(De)serialization of endpoint fails
2 participants