[Lens] Lens editor should be able to use the active data in configuration #79194
Labels
Feature:Lens
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
technical debt
Improvement of the software architecture and operational architecture
The Lens architecture is only able to use data tables while rendering, but not in configuration. This blocks some of the feature ideas that we have considered, such as:
Implementation details
Datasources and visualizations both have needs for the "active data," so it should be managed by the editor frame. The editor frame already has a responsibility of building the expression which fetches data, so we could insert some additional code to store the most-recently fetched tables and then provide those tables to visualizations and datasources. Some information is going to be commonly needed, especially a list of any categorical keys that are part of the results. The Lens editor can extract the most-commonly-used metadata and pass it into configurations.
The text was updated successfully, but these errors were encountered: