diff --git a/openmetadata-ui/src/main/resources/ui/src/components/AddIngestion/AddIngestion.component.tsx b/openmetadata-ui/src/main/resources/ui/src/components/AddIngestion/AddIngestion.component.tsx index c58fae541f2..fcfa9be1a00 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/AddIngestion/AddIngestion.component.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/AddIngestion/AddIngestion.component.tsx @@ -474,9 +474,7 @@ const AddIngestion = ({ if (onUpdateIngestion) { setSaveState('waiting'); - if (!data.deployed) { - setShowDeployModal(true); - } + setShowDeployModal(true); onUpdateIngestion(updatedData, data, data.id as string, data.name) .then(() => { setSaveState('success'); @@ -510,9 +508,7 @@ const AddIngestion = ({ }; const getSuccessMessage = () => { - const updateMessage = data?.deployed - ? `has been updated successfully` - : showDeployButton + const updateMessage = showDeployButton ? 'has been updated, but failed to deploy' : 'has been updated and deployed successfully'; const createMessage = showDeployButton 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 bed8445aa30..75d5815cffe 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 @@ -113,9 +113,9 @@ const Ingestion: React.FC = ({ .catch(() => setCurrTriggerId({ id: '', state: '' })); }; - const handleDeployIngestion = (id: string, ingestion: IngestionPipeline) => { + const handleDeployIngestion = (id: string) => { setCurrDeployId({ id, state: 'waiting' }); - deployIngestion(ingestion) + deployIngestion(id) .then(() => { setCurrDeployId({ id, state: 'success' }); setTimeout(() => setCurrDeployId({ id: '', state: '' }), 1500); @@ -332,9 +332,7 @@ const Ingestion: React.FC = ({