From ba48115cec1678168a9959ec811ae45bda1693f1 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Tue, 11 Jul 2023 20:17:13 -0700 Subject: [PATCH] Removed experimental banner (#647) (#649) * removed experimental banner Signed-off-by: Amardeepsingh Siglani * removed experimental badge Signed-off-by: Amardeepsingh Siglani --------- Signed-off-by: Amardeepsingh Siglani (cherry picked from commit 282e8b699a95c029997611b3ad711acafb78b5d2) Co-authored-by: Amardeepsingh Siglani Signed-off-by: AWSHurneyt --- .../components/ExperimentalBanner.tsx | 32 ------------------- .../containers/CorrelationRules.tsx | 2 -- .../containers/CorrelationsContainer.tsx | 4 --- .../containers/CreateCorrelationRule.tsx | 2 -- public/pages/Main/Main.tsx | 4 --- 5 files changed, 44 deletions(-) delete mode 100644 public/pages/Correlations/components/ExperimentalBanner.tsx diff --git a/public/pages/Correlations/components/ExperimentalBanner.tsx b/public/pages/Correlations/components/ExperimentalBanner.tsx deleted file mode 100644 index 03c98dd81..000000000 --- a/public/pages/Correlations/components/ExperimentalBanner.tsx +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright OpenSearch Contributors - * SPDX-License-Identifier: Apache-2.0 - */ - -import React from 'react'; -import { EuiCallOut, EuiLink, EuiSpacer } from '@elastic/eui'; - -export const CorrelationsExperimentalBanner = () => { - return ( - <> - -

- The feature is experimental and should not be used in a production environment. While we - are working on the finishing touches, share your ideas and feedback on  - - forum.opensearch.org - - . For more information see   - - Security Analytics Documentation - - . -

-
- - - ); -}; diff --git a/public/pages/Correlations/containers/CorrelationRules.tsx b/public/pages/Correlations/containers/CorrelationRules.tsx index 5ffb88185..bec190dd7 100644 --- a/public/pages/Correlations/containers/CorrelationRules.tsx +++ b/public/pages/Correlations/containers/CorrelationRules.tsx @@ -23,7 +23,6 @@ import { } from '../utils/helpers'; import { CorrelationRule } from '../../../../types'; import { RouteComponentProps } from 'react-router-dom'; -import { CorrelationsExperimentalBanner } from '../components/ExperimentalBanner'; import { DeleteCorrelationRuleModal } from '../components/DeleteModal'; export const CorrelationRules: React.FC = (props: RouteComponentProps) => { @@ -116,7 +115,6 @@ export const CorrelationRules: React.FC = (props: RouteComp return ( <> {isDeleteModalVisible && deleteModal ? deleteModal : null} - diff --git a/public/pages/Correlations/containers/CorrelationsContainer.tsx b/public/pages/Correlations/containers/CorrelationsContainer.tsx index 425f5b416..9270e7377 100644 --- a/public/pages/Correlations/containers/CorrelationsContainer.tsx +++ b/public/pages/Correlations/containers/CorrelationsContainer.tsx @@ -34,7 +34,6 @@ import { EuiBadge, EuiFilterGroup, } from '@elastic/eui'; -import { CorrelationsExperimentalBanner } from '../components/ExperimentalBanner'; import { FilterItem, FilterGroup } from '../components/FilterGroup'; import { CoreServicesContext } from '../../../components/core_services'; import { @@ -490,9 +489,6 @@ export class Correlations extends React.ComponentCorrelations - - - diff --git a/public/pages/Correlations/containers/CreateCorrelationRule.tsx b/public/pages/Correlations/containers/CreateCorrelationRule.tsx index 3b4231a90..7885e0e79 100644 --- a/public/pages/Correlations/containers/CreateCorrelationRule.tsx +++ b/public/pages/Correlations/containers/CreateCorrelationRule.tsx @@ -36,7 +36,6 @@ import { import { BREADCRUMBS, ROUTES } from '../../../utils/constants'; import { CoreServicesContext } from '../../../components/core_services'; import { RouteComponentProps, useParams } from 'react-router-dom'; -import { CorrelationsExperimentalBanner } from '../components/ExperimentalBanner'; import { validateName } from '../../../utils/validation'; import { FieldMappingService, IndexService } from '../../../services'; import { errorNotificationToast } from '../../../utils/helpers'; @@ -464,7 +463,6 @@ export const CreateCorrelationRule: React.FC = ( return ( <> -

{`${action} correlation rule`}

diff --git a/public/pages/Main/Main.tsx b/public/pages/Main/Main.tsx index a72847426..d1c3fce60 100644 --- a/public/pages/Main/Main.tsx +++ b/public/pages/Main/Main.tsx @@ -14,7 +14,6 @@ import { EuiTitle, EuiSpacer, EuiGlobalToastList, - EuiBadge, EuiFlexGroup, EuiFlexItem, } from '@elastic/eui'; @@ -274,9 +273,6 @@ export default class Main extends Component { {props.children}
- - Experimental -
); },