From 4b494f231720e2e6515acb13127b08e39080e28e Mon Sep 17 00:00:00 2001 From: Eric Date: Tue, 30 Jul 2024 22:23:01 +0000 Subject: [PATCH] add uiSetting to adopt interface changes Signed-off-by: Eric --- .../explorer/datasources/datasources_selection.tsx | 1 + public/framework/core_refs.ts | 4 ++++ public/plugin.tsx | 1 + 3 files changed, 6 insertions(+) diff --git a/public/components/event_analytics/explorer/datasources/datasources_selection.tsx b/public/components/event_analytics/explorer/datasources/datasources_selection.tsx index 4c1bfaaee..00a037e2d 100644 --- a/public/components/event_analytics/explorer/datasources/datasources_selection.tsx +++ b/public/components/event_analytics/explorer/datasources/datasources_selection.tsx @@ -314,6 +314,7 @@ export const DataSourceSelection = ({ tabId }: { tabId: string }) => { dataSourceSelectorConfigs={DATA_SOURCE_SELECTOR_CONFIGS} onGetDataSetError={handleDataSetFetchError} onRefresh={onRefresh} + uiSettings={coreRefs.uiSettings!} /> ); }; diff --git a/public/framework/core_refs.ts b/public/framework/core_refs.ts index b78240e01..29456a7d5 100644 --- a/public/framework/core_refs.ts +++ b/public/framework/core_refs.ts @@ -16,6 +16,8 @@ import { import { DashboardStart } from '../../../../src/plugins/dashboard/public'; import { DataSourcePluginStart } from '../../../../src/plugins/data_source/public'; import PPLService from '../services/requests/ppl'; +import { DataSourceStart } from '../../../../src/plugins/data/public/data_sources/datasource_services/types'; +import { IUiSettingsClient } from '../../../../src/core/public'; class CoreRefs { private static _instance: CoreRefs; @@ -34,6 +36,8 @@ class CoreRefs { public dashboardProviders?: unknown; public overlays?: OverlayStart; public dataSource?: DataSourcePluginStart; + public dataSources?: DataSourceStart; + public uiSettings?: IUiSettingsClient; private constructor() { // ... } diff --git a/public/plugin.tsx b/public/plugin.tsx index 5b105e239..713deaee6 100644 --- a/public/plugin.tsx +++ b/public/plugin.tsx @@ -438,6 +438,7 @@ export class ObservabilityPlugin coreRefs.summarizeEnabled = this.config.summarize.enabled; coreRefs.overlays = core.overlays; coreRefs.dataSource = startDeps.dataSource; + coreRefs.uiSettings = core.uiSettings; const { dataSourceService, dataSourceFactory } = startDeps.data.dataSources; dataSourceFactory.registerDataSourceType(S3_DATA_SOURCE_TYPE, S3DataSource);