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(ExpressionEditor): Fix stale data in Expression Editor #536

Merged
merged 2 commits into from
Dec 8, 2023

Conversation

lordrip
Copy link
Member

@lordrip lordrip commented Dec 8, 2023

Currently, the ExpressionEditor and DataFormatEditor hold stale data about the selected node, hence forcing the node to update with old data.

The issue behaves as the following:

  1. The user updates the expression field using the ExpressionEditor
  2. After that, a change in an endpoint parameter is made
  3. Another update is made in the ExpressionEditor At this point, the ExpressionEditor doesn't know the latest change from the endpoint parameters, hence updating the model with stale information and ignoring the pending changes.

Changes

The fix is to refresh the data in the ExpressionEditor before making the changes.

This issue will behave the same for the DataFormatEditor

fix: #518

Currently, the ExpressionEditor and DataFormatEditor hold stale data
about the selected node, hence forcing the node update with old data.

The issue behaves as the following:

1. The user updates the expression field using the ExpressionEditor
2. After that, a change in an endpoint parameter is made
3. Another update is made in the ExpressionEditor
At this point, the ExpressionEditor doesn't know the latest change from
the endpoint parameters, hence updating the model with stale information
and ignoring the pending changes.

The fix is to refresh the data in the ExpressionEditor before making the
changes.

This issue will behave the same for the `DataFormatEditor`

fix: KaotoIO#518
@lordrip
Copy link
Member Author

lordrip commented Dec 8, 2023

Hi @tplevko, I would like to reorder one of our e2e tests to force the reproduction of this issue.

Another way could be adding a new test for interacting with the ExpressionEditor and DataFormatEditor.

@tplevko
Copy link
Contributor

tplevko commented Dec 8, 2023

Hi @tplevko, I would like to reorder one of our e2e tests to force the reproduction of this issue.

Another way could be adding a new test for interacting with the ExpressionEditor and DataFormatEditor.

Hi @lordrip, I will add separate tests for interacting with the ExpressionEditor and DataFormatEditor. I will also include scenario from this issue.

@lhein lhein merged commit bfe233f into KaotoIO:main Dec 8, 2023
10 checks passed
@lordrip lordrip deleted the fix/stale-data-in-expressioneditor branch January 14, 2024 12:06
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.

name attribute is lost sometimes for setHeader
3 participants