[8.19] [Lens][ES|QL] Do not rerun the hook in case of an error in the query (#225067)#225480
Merged
kibanamachine merged 1 commit intoelastic:8.19from Jun 26, 2025
Merged
Conversation
…lastic#225067) ## Summary While testing the ES|QL charts I realized that in case of an error in the query, the hook goes into a loop and causes performance issues. As the error is being reported we do not need to re-run the query to get the results For example if you create a control wrongly. e.g. 1. Create a chart and add a control which will create an error: <img width="508" alt="image" src="https://github.com/user-attachments/assets/f2013d2c-e161-47bf-a3cb-d5033be9de59" /> 2. Add to the control no-date fields. e.g. clientip 3. Check the editor is not going into a rendering loop <img width="482" alt="image" src="https://github.com/user-attachments/assets/cc541b68-b317-41ae-b4a6-87569466edd6" /> ### Release notes Fixes a performance issue in the Lens ES|QL charts in case of errors in the query. ### Checklist - [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios (cherry picked from commit 731ab84)
1 task
Contributor
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
cc @stratoula |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport
This will backport the following commits from
mainto8.19:Questions ?
Please refer to the Backport tool documentation