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

[8.13] [Advanced Settings] Fix code editor field (#177772) #177999

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 8.13:

Questions ?

Please refer to the Backport tool documentation

Fixes elastic#177600

## Summary

This PR fixes the incorrect behaviour described in
elastic#177600, which seems to be
caused because the `onChange` handler of the code editor component is
redundantly called with the current value when the "Reset to default"
link or the "Save" button is clicked. This fix adds a check for whether
the value passed to the `onChange` is different from the current value
and only then it would update the field.

(cherry picked from commit f4bb26d)
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
advancedSettings 36.7KB 36.7KB +9.0B
apm 3.2MB 3.2MB +9.0B
infra 1.4MB 1.4MB +9.0B
profiling 400.8KB 400.8KB +9.0B
telemetryManagementSection 33.5KB 33.6KB +9.0B
total +45.0B

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @ElenaStoeva

@kibanamachine kibanamachine merged commit 44a9430 into elastic:8.13 Mar 5, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants