[TSVB] Decrease the bundle size (#125777)

* Async get series

* Async load getExtents

* Load async 1 level up

* Remove comment

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Stratoula Kalafateli 2022-02-17 11:47:37 +02:00 committed by GitHub
parent dff2d94be7
commit e1280a4b1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,7 +26,6 @@ import {
} from '../../../visualizations/public';
import { getDataStart } from './services';
import type { TimeseriesVisDefaultParams, TimeseriesVisParams } from './types';
import { triggerTSVBtoLensConfiguration } from './trigger_action';
import type { IndexPatternValue, Panel } from '../common/types';
import { RequestAdapter } from '../../../inspector/public';
@ -169,6 +168,8 @@ export const metricsVisDefinition: VisTypeDefinition<
return [];
},
navigateToLens: async (params?: VisParams) => {
const { triggerTSVBtoLensConfiguration } = await import('./trigger_action');
const triggerConfiguration = params
? await triggerTSVBtoLensConfiguration(params as Panel)
: null;