diff --git a/datahub-web-react/src/app/ingest/source/IngestionSourceList.tsx b/datahub-web-react/src/app/ingest/source/IngestionSourceList.tsx index 34353afe6c..18d8617ff6 100644 --- a/datahub-web-react/src/app/ingest/source/IngestionSourceList.tsx +++ b/datahub-web-react/src/app/ingest/source/IngestionSourceList.tsx @@ -105,6 +105,17 @@ enum IngestionSourceType { const DEFAULT_PAGE_SIZE = 25; +const mapSourceTypeAliases = (source?: T): T | undefined => { + if (source) { + let { type } = source; + if (type === 'unity-catalog') { + type = 'databricks'; + } + return { ...source, type }; + } + return undefined; +}; + const removeExecutionsFromIngestionSource = (source) => { if (source) { return { @@ -561,7 +572,7 @@ export const IngestionSourceList = ({ showCreateModal, setShowCreateModal }: Pro (source?: T): T | undefined => { + if (source) { + let { type } = source; + if (type === 'unity-catalog') { + type = 'databricks'; + } + return { ...source, type }; + } + return undefined; +}; + const removeExecutionsFromIngestionSource = (source) => { if (source) { return { @@ -695,7 +706,7 @@ export const IngestionSourceList = ({ )} "