[Lens] Do not submit invalid query in filtered metric #95611
Labels
enhancement
New value added to drive a business result
Feature:Lens
good first issue
low hanging fruit
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
If the query of a filtered metric is invalid, it's still attempting to render the chart which is causing a runtime error:

This should be improved. In case of the filters function an invalid query is implicitly turned into a
*
query matching all documents - we could do the same thing here, but maybe we should do something more sensible in both cases like not submitting the query as long as the input is open and on close failing the validation and highlighting the problematic dimension.The text was updated successfully, but these errors were encountered: