[Lens] Use expression builder for datasource and visualizations #94893
Labels
Feature:Lens
impact:low
Addressing this issue will have a low level of impact on the quality/strength of our product.
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
technical debt
Improvement of the software architecture and operational architecture
In the expression builder functions for all Lens visualizations and datasource, the return object is only typed as
Ast
. This is a gap in type checking (all other layers of Lens use specific types) and could lead to bugs.Like for the
esaggs
expression building, thebuildExpressionFunction
helper should be used to make sure the right ast is builtThe text was updated successfully, but these errors were encountered: