From cd752c223101a0fae41a8d988de7c02cf620305b Mon Sep 17 00:00:00 2001 From: Ashish Gupta Date: Tue, 8 Apr 2025 13:08:51 +0530 Subject: [PATCH] MINOR: added option for extended menu item in platform insight service (#20673) * added option for extended menu item in platform insight serive * remove the manage button on platform side and updated the extraDrodpwn on service level to add there --- .../PlatformInsightsWidget/PlatformInsightsWidget.tsx | 3 ++- .../pages/ServiceDetailsPage/ServiceDetailsPage.tsx | 10 ++-------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/openmetadata-ui/src/main/resources/ui/src/components/ServiceInsights/PlatformInsightsWidget/PlatformInsightsWidget.tsx b/openmetadata-ui/src/main/resources/ui/src/components/ServiceInsights/PlatformInsightsWidget/PlatformInsightsWidget.tsx index 1420590b8f3..a557587d320 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/ServiceInsights/PlatformInsightsWidget/PlatformInsightsWidget.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/ServiceInsights/PlatformInsightsWidget/PlatformInsightsWidget.tsx @@ -51,7 +51,8 @@ function PlatformInsightsWidget({ {t('message.platform-insight-description')} - + {/* Don't remove this class name, it is used for exporting the platform insights chart */} + { const extraDropdownContent = useMemo( () => entityUtilClassBase.getManageExtraOptions( - serviceCategory === 'databaseServices' - ? EntityType.DATABASE_SERVICE - : EntityType.ALL, + getEntityTypeFromServiceCategory(serviceCategory), decodedServiceFQN, servicePermission, serviceDetails?.deleted ?? false