mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-24 17:59:52 +00:00
fix asset service icon, support some search index value, and fix ingestion encoded issue (#13576)
This commit is contained in:
parent
d6be186958
commit
063590d54f
@ -19,6 +19,7 @@ import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import ErrorPlaceHolderIngestion from '../../components/common/error-with-placeholder/ErrorPlaceHolderIngestion';
|
||||
import { IngestionPipeline } from '../../generated/entity/services/ingestionPipelines/ingestionPipeline';
|
||||
import { getEncodedFqn } from '../../utils/StringsUtils';
|
||||
import { showErrorToast } from '../../utils/ToastUtils';
|
||||
import Searchbar from '../common/searchbar/Searchbar';
|
||||
import EntityDeleteModal from '../Modals/EntityDeleteModal/EntityDeleteModal';
|
||||
@ -85,7 +86,10 @@ const Ingestion: React.FC<IngestionProps> = ({
|
||||
const fetchIngestionPipelinesPermission = async () => {
|
||||
try {
|
||||
const promises = ingestionList.map((item) =>
|
||||
getEntityPermissionByFqn(ResourceEntity.INGESTION_PIPELINE, item.name)
|
||||
getEntityPermissionByFqn(
|
||||
ResourceEntity.INGESTION_PIPELINE,
|
||||
getEncodedFqn(item.name)
|
||||
)
|
||||
);
|
||||
const response = await Promise.allSettled(promises);
|
||||
|
||||
|
@ -41,6 +41,8 @@
|
||||
"dashboardService",
|
||||
"pipelineService",
|
||||
"mlmodelService",
|
||||
"storageService",
|
||||
"metadataService",
|
||||
"searchService",
|
||||
"entityReportData",
|
||||
"webAnalyticEntityViewReportData",
|
||||
@ -75,6 +77,8 @@
|
||||
"dashboardService",
|
||||
"pipelineService",
|
||||
"mlmodelService",
|
||||
"storageService",
|
||||
"metadataService",
|
||||
"searchService",
|
||||
"entityReportData",
|
||||
"webAnalyticEntityViewReportData",
|
||||
|
@ -321,26 +321,31 @@ export const getEntityIcon = (indexType: string) => {
|
||||
switch (indexType) {
|
||||
case SearchIndex.TOPIC:
|
||||
case EntityType.TOPIC:
|
||||
case EntityType.MESSAGING_SERVICE:
|
||||
case SearchIndex.MESSAGING_SERVICE:
|
||||
return <TopicIcon />;
|
||||
|
||||
case SearchIndex.DASHBOARD:
|
||||
case EntityType.DASHBOARD:
|
||||
case EntityType.DASHBOARD_SERVICE:
|
||||
case SearchIndex.DASHBOARD_SERVICE:
|
||||
return <DashboardIcon />;
|
||||
|
||||
case SearchIndex.MLMODEL:
|
||||
case EntityType.MLMODEL:
|
||||
case EntityType.MLMODEL_SERVICE:
|
||||
case SearchIndex.ML_MODEL_SERVICE:
|
||||
return <MlModelIcon />;
|
||||
|
||||
case SearchIndex.PIPELINE:
|
||||
case EntityType.PIPELINE:
|
||||
case EntityType.PIPELINE_SERVICE:
|
||||
case SearchIndex.PIPELINE_SERVICE:
|
||||
return <PipelineIcon />;
|
||||
|
||||
case SearchIndex.CONTAINER:
|
||||
case EntityType.CONTAINER:
|
||||
case EntityType.STORAGE_SERVICE:
|
||||
case SearchIndex.STORAGE_SERVICE:
|
||||
return <ContainerIcon />;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user