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

fix(canvas): Replace nodes that contains a single steps property don't work #413

Merged
merged 1 commit into from
Nov 23, 2023

Conversation

lordrip
Copy link
Member

@lordrip lordrip commented Nov 23, 2023

Context

Currently, there's a piece of logic that checks if the node meant to be replaced has a single step property that can have children. This logic was causing that for some special nodes, like doCatch, the replace step functionality didn't work, and the intended replacement step gets appended instead.

Changes

The fix is to remove said functionality as it was already implemented in a different manner.

Notes

There are more changes to make, as an example, doCatch and doFinally shouldn't be offered as valid EIP if they are not inside of a doTry. Another topic is that special children shouldn't be replaced, for instance, when, otherwise, doCatch and doFinally.

Fixes: #370

…t work

Currently, there's a piece of logic that checks if the node meant to be replaced has a single
`step` property that can have children. This logic was causing that for some special nodes,
like `doCatch`, the replace step functionality didn't work, and the intended replacement
step gets appended instead.

The fix is to remove said functionality as it was already implemented in a different manner.

Fixes: KaotoIO#370
@lhein lhein merged commit 39ddc2f into KaotoIO:main Nov 23, 2023
10 checks passed
@lordrip lordrip deleted the fix/kamelets-in-from-node branch November 23, 2023 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace nodes does not always work
2 participants