From 018b83181c21f6d0643de81625b7320aa762a064 Mon Sep 17 00:00:00 2001 From: Ramakrishna Chilaka <49393831+RamakrishnaChilaka@users.noreply.github.com> Date: Mon, 19 Aug 2024 07:37:09 +0530 Subject: [PATCH] Adding MDS support in Notifications page in ISM (#1121) Signed-off-by: Ramakrishna Chilaka --- public/pages/Main/Main.tsx | 2 ++ .../Notifications/Notifications.tsx | 20 ++++++------------- server/services/NotificationService.ts | 1 - 3 files changed, 8 insertions(+), 15 deletions(-) diff --git a/public/pages/Main/Main.tsx b/public/pages/Main/Main.tsx index 72091dc11..d12ae1bbf 100644 --- a/public/pages/Main/Main.tsx +++ b/public/pages/Main/Main.tsx @@ -190,6 +190,7 @@ const dataSourceEnabledPaths: string[] = [ ROUTES.REPOSITORIES, ROUTES.CREATE_REPOSITORY, ROUTES.EDIT_REPOSITORY, + ROUTES.NOTIFICATIONS, ]; const LocalCluster: DataSourceOption = { @@ -524,6 +525,7 @@ export default class Main extends Component { ROUTES.REPOSITORIES, ROUTES.CREATE_REPOSITORY, ROUTES.EDIT_REPOSITORY, + ROUTES.NOTIFICATIONS, ]} render={() => ( { ); }; -// @ts-ignore -export default Notifications; +export default function (props: NotificationsProps) { + const dataSourceMenuProps = useContext(DataSourceMenuContext); + return ; +} diff --git a/server/services/NotificationService.ts b/server/services/NotificationService.ts index 7b6005dc2..14a7682d7 100644 --- a/server/services/NotificationService.ts +++ b/server/services/NotificationService.ts @@ -8,7 +8,6 @@ import { OpenSearchDashboardsRequest, OpenSearchDashboardsResponseFactory, IOpenSearchDashboardsResponse, - ILegacyCustomClusterClient, ResponseError, } from "opensearch-dashboards/server"; import { ServerResponse } from "../models/types";