Skip to content

Commit 7baf28c

Browse files
opensearch-trigger-bot[bot]amsiglan
authored andcommitted
removed experimental banner (opensearch-project#303) (opensearch-project#313)
Signed-off-by: Amardeepsingh Siglani <[email protected]> Signed-off-by: Amardeepsingh Siglani <[email protected]> (cherry picked from commit 3ca8e97) Co-authored-by: Amardeepsingh Siglani <[email protected]> Signed-off-by: AWSHurneyt <[email protected]>
1 parent e70319f commit 7baf28c

File tree

2 files changed

+8
-49
lines changed

2 files changed

+8
-49
lines changed

public/pages/Alerts/containers/Alerts/Alerts.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ import {
5454
successNotificationToast,
5555
} from '../../../../utils/helpers';
5656
import { NotificationsStart } from 'opensearch-dashboards/public';
57-
import { match, withRouter } from 'react-router-dom';
57+
import { match, RouteComponentProps, withRouter } from 'react-router-dom';
5858
import { DateTimeFilter } from '../../../Overview/models/interfaces';
5959
import { ChartContainer } from '../../../../components/Charts/ChartContainer';
6060

61-
export interface AlertsProps {
61+
export interface AlertsProps extends RouteComponentProps {
6262
alertService: AlertsService;
6363
detectorService: DetectorService;
6464
findingService: FindingsService;
@@ -542,4 +542,4 @@ class Alerts extends Component<AlertsProps, AlertsState> {
542542
}
543543
}
544544

545-
export default withRouter(Alerts);
545+
export default withRouter<AlertsProps, React.ComponentType<AlertsProps>>(Alerts);

public/pages/Main/Main.tsx

Lines changed: 5 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,8 @@ import {
1111
EuiPageBody,
1212
EuiPageSideBar,
1313
EuiSideNavItemType,
14-
EuiBetaBadge,
1514
EuiTitle,
16-
EuiFlexItem,
17-
EuiFlexGroup,
1815
EuiSpacer,
19-
EuiCallOut,
20-
EuiLink,
2116
} from '@elastic/eui';
2217
import { CoreStart } from 'opensearch-dashboards/public';
2318
import { ServicesConsumer } from '../../services';
@@ -118,8 +113,8 @@ export default class Main extends Component<MainProps, MainState> {
118113
* Returns current component route index
119114
* @return {number}
120115
*/
121-
getCurrentRouteIndex = (): number => {
122-
let index: number;
116+
getCurrentRouteIndex = (): number | undefined => {
117+
let index: number | undefined;
123118
const pathname = this.props.location.pathname;
124119
for (const [route, routeIndex] of Object.entries(navItemIndexByRoute)) {
125120
if (pathname.match(new RegExp(`^${route}`))) {
@@ -159,21 +154,9 @@ export default class Main extends Component<MainProps, MainState> {
159154
renderItem: () => {
160155
return (
161156
<>
162-
<EuiFlexGroup alignItems="center" gutterSize="s">
163-
<EuiFlexItem grow={false}>
164-
<EuiTitle size="xs">
165-
<h3>{Navigation.SecurityAnalytics}</h3>
166-
</EuiTitle>
167-
</EuiFlexItem>
168-
<EuiFlexItem grow={false}>
169-
<EuiBetaBadge
170-
label="Experimental"
171-
iconType="beaker"
172-
tooltipContent="Experimental feature"
173-
tooltipPosition="bottom"
174-
/>
175-
</EuiFlexItem>
176-
</EuiFlexGroup>
157+
<EuiTitle size="xs">
158+
<h3>{Navigation.SecurityAnalytics}</h3>
159+
</EuiTitle>
177160
<EuiSpacer />
178161
</>
179162
);
@@ -243,30 +226,6 @@ export default class Main extends Component<MainProps, MainState> {
243226
</EuiPageSideBar>
244227
)}
245228
<EuiPageBody>
246-
<EuiCallOut title="Experimental feature" iconType="beaker">
247-
<p>
248-
The feature is experimental and should not be used in a production
249-
environment. While we are working on the finishing touches, share your
250-
ideas and feedback on{' '}
251-
<EuiLink
252-
target={'_blank'}
253-
href={
254-
'https://forum.opensearch.org/t/feedback-experimental-feature-security-analytics/11418'
255-
}
256-
>
257-
forum.opensearch.org
258-
</EuiLink>
259-
. For more information see{' '}
260-
<EuiLink
261-
target={'_blank'}
262-
href={'https://opensearch.org/docs/latest/security-analytics/index/'}
263-
>
264-
Security Analytics Documentation
265-
</EuiLink>
266-
.
267-
</p>
268-
</EuiCallOut>
269-
<EuiSpacer />
270229
<Switch>
271230
<Route
272231
path={`${ROUTES.FINDINGS}/:detectorId?`}

0 commit comments

Comments
 (0)