Open dej611 opened 5 months ago
Pinging @elastic/kibana-esql (Team:ESQL)
Hey @dej611 this is not an editor bug, there is a check in the flyout that is not allowing that (or something like that, I have to check the code). The editor allows everything, also is just a UI component. The data fetching is done in the consumers.
Pinging @elastic/kibana-visualizations (Team:Visualizations)
I remembered! So here https://github.com/elastic/kibana/blob/main/x-pack/plugins/lens/public/app_plugin/shared/edit_on_the_fly/lens_configuration_flyout.tsx#L302 we are not allowing a change when Lens suggestions api doesnt return a valid chart.
Not sure which is the best thing to do here, we could possibly return the results in a table.
But anyway I think is kind of expected and def low impact. I personally think is mostly an enhancement.
Interestingly, that line of code prevents a valid query with no result to be "saved". I think that relying only on the Lens suggestions system to decide whether to save or not the ES|QL query should be re-evaluated. I see the two things unrelated.
Describe the bug:
Open a ES|QL panel in dashboard and try any of the following queries:
Then press
play
to submit the query and check if the chart configuration changes. ClickApply and save
and then reopen the inline editor: the previous query is still there.Expected behavior:
The fields in the configuration should automatically update.