Suggestions refactoring #145571
Labels
Feature:Lens
impact:medium
Addressing this issue will have a medium level of impact on the quality/strength of our product.
loe:x-large
Extra Large Level of Effort
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
technical debt
Improvement of the software architecture and operational architecture
Current state
Right now, suggestions are working this way:
This approach gives a lot of flexibility, no assumptions about what the datasource or the visualization can do is hardcoded - the only interface is the table data structure.
However, due to that a lot of responsibility is shifted to the suggestion black box functions for visualizations and datasources:
Target state
To address the pain points from above, the following general architecture would make more sense:
Instead of operating on possible tables and how they map to visualization states, refactor the suggestion logic to operate on possible columns of a data table and visualization dimensions to map them to.
The new flow would look like this:
Advantages
Disadvantages
The text was updated successfully, but these errors were encountered: