From 794094219f21407e124b4a004e7a8304507f9a23 Mon Sep 17 00:00:00 2001 From: Jackie Han Date: Mon, 12 Aug 2024 10:31:21 -0700 Subject: [PATCH] Remove dataSourceFilter that breaks DataSourceView (#837) --- public/pages/ConfigureModel/containers/ConfigureModel.tsx | 2 -- public/pages/DefineDetector/containers/DefineDetector.tsx | 1 - public/pages/DetectorDetail/containers/DetectorDetail.tsx | 3 +-- public/pages/DetectorJobs/containers/DetectorJobs.tsx | 2 -- public/pages/ReviewAndCreate/containers/ReviewAndCreate.tsx | 2 -- 5 files changed, 1 insertion(+), 9 deletions(-) diff --git a/public/pages/ConfigureModel/containers/ConfigureModel.tsx b/public/pages/ConfigureModel/containers/ConfigureModel.tsx index 18d72aac..6d2996e8 100644 --- a/public/pages/ConfigureModel/containers/ConfigureModel.tsx +++ b/public/pages/ConfigureModel/containers/ConfigureModel.tsx @@ -61,7 +61,6 @@ import { getErrorMessage } from '../../../utils/utils'; import { constructHrefWithDataSourceId, getDataSourceFromURL, - isDataSourceCompatible, } from '../../../pages/utils/helpers'; import { getDataSourceManagementPlugin, @@ -271,7 +270,6 @@ export function ConfigureModel(props: ConfigureModelProps) { fullWidth: false, savedObjects: getSavedObjectsClient(), notifications: getNotifications(), - dataSourceFilter: isDataSourceCompatible, }} /> ); diff --git a/public/pages/DefineDetector/containers/DefineDetector.tsx b/public/pages/DefineDetector/containers/DefineDetector.tsx index 37e2d4e6..5d2d4b89 100644 --- a/public/pages/DefineDetector/containers/DefineDetector.tsx +++ b/public/pages/DefineDetector/containers/DefineDetector.tsx @@ -310,7 +310,6 @@ export const DefineDetector = (props: DefineDetectorProps) => { fullWidth: false, savedObjects: getSavedObjectsClient(), notifications: getNotifications(), - dataSourceFilter: isDataSourceCompatible, }} /> ); diff --git a/public/pages/DetectorDetail/containers/DetectorDetail.tsx b/public/pages/DetectorDetail/containers/DetectorDetail.tsx index 9c9a26f7..0275ca62 100644 --- a/public/pages/DetectorDetail/containers/DetectorDetail.tsx +++ b/public/pages/DetectorDetail/containers/DetectorDetail.tsx @@ -71,7 +71,7 @@ import { getNotifications, getSavedObjectsClient, } from '../../../services'; -import { constructHrefWithDataSourceId, getDataSourceFromURL, isDataSourceCompatible } from '../../../pages/utils/helpers'; +import { constructHrefWithDataSourceId, getDataSourceFromURL } from '../../../pages/utils/helpers'; export interface DetectorRouterProps { detectorId?: string; @@ -430,7 +430,6 @@ export const DetectorDetail = (props: DetectorDetailProps) => { fullWidth: false, savedObjects: getSavedObjectsClient(), notifications: getNotifications(), - dataSourceFilter: isDataSourceCompatible, }} /> ); diff --git a/public/pages/DetectorJobs/containers/DetectorJobs.tsx b/public/pages/DetectorJobs/containers/DetectorJobs.tsx index beaf721f..435b4dc8 100644 --- a/public/pages/DetectorJobs/containers/DetectorJobs.tsx +++ b/public/pages/DetectorJobs/containers/DetectorJobs.tsx @@ -36,7 +36,6 @@ import { RouteComponentProps, useLocation } from 'react-router-dom'; import { constructHrefWithDataSourceId, getDataSourceFromURL, - isDataSourceCompatible, } from '../../../pages/utils/helpers'; import { getDataSourceManagementPlugin, @@ -141,7 +140,6 @@ export function DetectorJobs(props: DetectorJobsProps) { fullWidth: false, savedObjects: getSavedObjectsClient(), notifications: getNotifications(), - dataSourceFilter: isDataSourceCompatible, }} /> ); diff --git a/public/pages/ReviewAndCreate/containers/ReviewAndCreate.tsx b/public/pages/ReviewAndCreate/containers/ReviewAndCreate.tsx index 8ac4ccfd..81ca40de 100644 --- a/public/pages/ReviewAndCreate/containers/ReviewAndCreate.tsx +++ b/public/pages/ReviewAndCreate/containers/ReviewAndCreate.tsx @@ -56,7 +56,6 @@ import { import { constructHrefWithDataSourceId, getDataSourceFromURL, - isDataSourceCompatible, } from '../../../pages/utils/helpers'; import { getDataSourceManagementPlugin, @@ -311,7 +310,6 @@ export function ReviewAndCreate(props: ReviewAndCreateProps) { fullWidth: false, savedObjects: getSavedObjectsClient(), notifications: getNotifications(), - dataSourceFilter: isDataSourceCompatible, }} /> );