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(CanvasForm): Expression form hold stale data #922

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

lordrip
Copy link
Member

@lordrip lordrip commented Mar 8, 2024

Context

When the users include config in a form field, which has the same name as the form field of another language/data format type, to which they can switch - the previously configured form field might get omitted.

The fix is to assign a key to the form, so React knows that the form should be recreated without reusing the existing fields.

fix: #904

@lordrip lordrip requested a review from tplevko March 8, 2024 14:25
@tplevko
Copy link
Contributor

tplevko commented Mar 8, 2024

Fixes the issue in Expression form, could you please add also to LoadBalance and DataFormat editor? These seem to be also affected by this.

When the users includes config in a form field, which has same name as form field of another
language/dataformat type, to which they can switch - the previously configured form field might get omited.

The fix is to assign a key to the form, so React know that the form
should be recreated without reusing the existing fields.

fix: KaotoIO#904
@lordrip lordrip force-pushed the fix/expression-form-stale-data branch from 79dbbd9 to d64fba6 Compare March 11, 2024 08:56
@lordrip
Copy link
Member Author

lordrip commented Mar 11, 2024

Fixes the issue in Expression form, could you please add also to LoadBalance and DataFormat editor? These seem to be also affected by this.

Absolutely, thanks for catching this out 👌

@lordrip lordrip merged commit 0d1b688 into KaotoIO:main Mar 12, 2024
9 checks passed
@lordrip lordrip deleted the fix/expression-form-stale-data branch March 12, 2024 08:27
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.

Expression and Dataformat Metadata editing - might omit form field
2 participants