Skip to content

Commit

Permalink
Adding MDS support in Notifications page in ISM (opensearch-project#1121
Browse files Browse the repository at this point in the history
)

Signed-off-by: Ramakrishna Chilaka <ramachil@amazon.com>
  • Loading branch information
RamakrishnaChilaka authored and Sandeep Kumawat committed Aug 19, 2024
1 parent 86b6898 commit ec91e25
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
2 changes: 2 additions & 0 deletions public/pages/Main/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ const dataSourceEnabledPaths: string[] = [
ROUTES.REPOSITORIES,
ROUTES.CREATE_REPOSITORY,
ROUTES.EDIT_REPOSITORY,
ROUTES.NOTIFICATIONS,
];

const LocalCluster: DataSourceOption = {
Expand Down Expand Up @@ -524,6 +525,7 @@ export default class Main extends Component<MainProps, MainState> {
ROUTES.REPOSITORIES,
ROUTES.CREATE_REPOSITORY,
ROUTES.EDIT_REPOSITORY,
ROUTES.NOTIFICATIONS,
]}
render={() => (
<DataSourceMenu
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,7 @@

import React, { ReactChild, useContext, useEffect, useRef, useState } from "react";
import { unstable_batchedUpdates } from "react-dom";
import {
EuiButton,
EuiCallOut,
EuiCard,
EuiEmptyPrompt,
EuiFlexGroup,
EuiFlexItem,
EuiPanel,
EuiSpacer,
EuiText,
EuiTitle,
} from "@elastic/eui";
import { EuiButton, EuiCallOut, EuiEmptyPrompt, EuiFlexGroup, EuiFlexItem, EuiPanel, EuiSpacer, EuiText, EuiTitle } from "@elastic/eui";
import { get } from "lodash";
import { CoreStart } from "opensearch-dashboards/public";
import useField from "../../../../lib/field";
Expand Down Expand Up @@ -365,5 +354,7 @@ const Notifications = (props: NotificationsProps) => {
);
};

// @ts-ignore
export default Notifications;
export default function (props: NotificationsProps) {
const dataSourceMenuProps = useContext(DataSourceMenuContext);
return <Notifications {...props} key={dataSourceMenuProps.dataSourceId} />;
}
1 change: 0 additions & 1 deletion server/services/NotificationService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
OpenSearchDashboardsRequest,
OpenSearchDashboardsResponseFactory,
IOpenSearchDashboardsResponse,
ILegacyCustomClusterClient,
ResponseError,
} from "opensearch-dashboards/server";
import { ServerResponse } from "../models/types";
Expand Down

0 comments on commit ec91e25

Please sign in to comment.