mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Make the formula api optional for the lens builder (#179255)
## Summary For ES|QL charts the formula api should be redundant. This is going to make the api lighter as there is no need to import the lens plugin if you want to use the builder to create ES|QL charts.
This commit is contained in:
parent
e551625ade
commit
10e34e4723
26 changed files with 31 additions and 30 deletions
|
@ -60,7 +60,7 @@ const tableConfig: LensConfig = {
|
|||
],
|
||||
value: 'bytes',
|
||||
};
|
||||
const configBuilder = new LensConfigBuilder(lensFormulaAPI, dataViewsAPI);
|
||||
const configBuilder = new LensConfigBuilder(dataViewsAPI, lensFormulaAPI);
|
||||
const lensConfig = configBuilder.build(tableConfig, {
|
||||
timeRange: { from: 'now-1y', to: 'now', type: 'relative' },
|
||||
embeddable: true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue