[Lens] Remove multi table #116736
Labels
Feature:Lens
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
technical debt
Improvement of the software architecture and operational architecture
Currently Lens uses the multi_table data structure to pass data from the datasource to the visualization. We decided to get rid of this additional context type and use multiple individual
datatable
contexts instead which are passed over as variables.Datasource side
Currently, the expression created by the datasource looks like this:
This should be changed to
The variable names are the layer ids, the values the datatables of the individual layers
Visualization - Single table cases (everything except for xy chart)
Currently, it works like this (receving a multi table as input):
This should be changed to
Use the
var
function to read the only layer, then pass it to the existing chart function. The chart function has to be changed to receive a regular datatable instead of multi_table.Visualization - Multi table cases (xy chart)
Currently, it works like this (receving a multi table as input):
This should be changed to
The individual layers are passed in via array arguments (basically moving the multi table concept into the chart function).
The multi table also transports an additional information about the current time range - this can be done via the
kibana
function which should be passed in as a separate argument as well (the passed inkibana_context
input contains the time range as well)The text was updated successfully, but these errors were encountered: