diff --git a/x-pack/plugins/data_quality/public/routes/dataset_quality/context.tsx b/x-pack/plugins/data_quality/public/routes/dataset_quality/context.tsx index faa43d90de2db..8c80ea91daedd 100644 --- a/x-pack/plugins/data_quality/public/routes/dataset_quality/context.tsx +++ b/x-pack/plugins/data_quality/public/routes/dataset_quality/context.tsx @@ -43,6 +43,14 @@ export function DatasetQualityContextProvider({ initialState, }); datasetQualityController.service.start(); + + if (initialState?.flyout?.dataset) { + datasetQualityController.service.send({ + type: 'OPEN_FLYOUT', + dataset: initialState.flyout.dataset, + }); + } + setController(datasetQualityController); const datasetQualityStateSubscription = datasetQualityController.state$.subscribe((state) => { diff --git a/x-pack/plugins/observability_solution/dataset_quality/common/translations.ts b/x-pack/plugins/observability_solution/dataset_quality/common/translations.ts index c57864e8aff2f..f6be84509761f 100644 --- a/x-pack/plugins/observability_solution/dataset_quality/common/translations.ts +++ b/x-pack/plugins/observability_solution/dataset_quality/common/translations.ts @@ -147,8 +147,7 @@ export const flyoutImprovementText = i18n.translate( export const flyoutImprovementTooltip = i18n.translate( 'xpack.datasetQuality.flyoutDegradedFieldsSectionTooltip', { - defaultMessage: - 'Set of degraded fields in the dataset. Please not that this list may not be exhaustive.', + defaultMessage: 'A partial list of degraded fields found in your dataset.', } ); diff --git a/x-pack/plugins/observability_solution/dataset_quality/public/controller/index.ts b/x-pack/plugins/observability_solution/dataset_quality/public/controller/index.ts index 88f30388847e7..d0e19da1736db 100644 --- a/x-pack/plugins/observability_solution/dataset_quality/public/controller/index.ts +++ b/x-pack/plugins/observability_solution/dataset_quality/public/controller/index.ts @@ -6,5 +6,4 @@ */ export * from './create_controller'; -export * from './provider'; export * from './types'; diff --git a/x-pack/plugins/observability_solution/dataset_quality/public/controller/provider.ts b/x-pack/plugins/observability_solution/dataset_quality/public/controller/provider.ts deleted file mode 100644 index f5aee7551e69f..0000000000000 --- a/x-pack/plugins/observability_solution/dataset_quality/public/controller/provider.ts +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ - -import createContainer from 'constate'; -import type { DatasetQualityController } from './types'; - -const useDatasetQualityController = ({ controller }: { controller: DatasetQualityController }) => - controller; - -export const [DatasetQualityControllerProvider, useDatasetQualityControllerContext] = - createContainer(useDatasetQualityController);