From 317a8f17112d6eafcef2a76b603926abf29d67e6 Mon Sep 17 00:00:00 2001 From: Sachin Chaurasiya Date: Wed, 30 Nov 2022 23:14:31 +0530 Subject: [PATCH] Fix #8993 Add Datainsight ingestion option available even after a pipeline already running (#9075) * Fix #8993 Add Datainsight ingestion option available even after a pipeline already running * Remove tailwind class * Remove tailwind * refactor : the code to check if Data InSight Ingestion Exists --- .../src/components/Ingestion/Ingestion.component.tsx | 12 ++++++++++++ .../ui/src/components/dropdown/DropDownList.tsx | 5 +++-- .../src/main/resources/ui/src/styles/spacing.less | 11 +++++++++++ 3 files changed, 26 insertions(+), 2 deletions(-) diff --git a/openmetadata-ui/src/main/resources/ui/src/components/Ingestion/Ingestion.component.tsx b/openmetadata-ui/src/main/resources/ui/src/components/Ingestion/Ingestion.component.tsx index 5c2b2f267b9..e2521969834 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/Ingestion/Ingestion.component.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/Ingestion/Ingestion.component.tsx @@ -252,6 +252,14 @@ const Ingestion: React.FC = ({ } }; + const isDataSightIngestionExists = useMemo( + () => + ingestionData.some( + (ingestion) => ingestion.pipelineType === PipelineType.DataInsight + ), + [ingestionData] + ); + const getAddIngestionButton = (type: PipelineType) => { return (