diff --git a/public/components/experiment_warning/__tests__/index.test.tsx b/public/components/experiment_warning/__tests__/index.test.tsx deleted file mode 100644 index ab50552e..00000000 --- a/public/components/experiment_warning/__tests__/index.test.tsx +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright OpenSearch Contributors - * SPDX-License-Identifier: Apache-2.0 - */ -import React from 'react'; -import { render, screen } from '../../../../test/test_utils'; -import { ExperimentalWarning } from '..'; - -describe('', () => { - it('should navigate to # when clicking link of "Machine Learning Documentation"', () => { - render(); - const link = screen.getByText('Machine Learning Documentation'); - expect(link.getAttribute('href')).toBe( - 'https://opensearch.org/docs/latest/ml-commons-plugin/ml-dashbaord/' - ); - }); - - it('should navigate to # when clicking forum.opensearch.org', () => { - render(); - const link = screen.getByText('forum.opensearch.org'); - expect(link.getAttribute('href')).toBe( - 'https://forum.opensearch.org/t/feedback-ml-commons-ml-model-health-dashboard-for-admins-experimental-release/12494' - ); - }); -}); diff --git a/public/components/experiment_warning/index.tsx b/public/components/experiment_warning/index.tsx deleted file mode 100644 index 668fcc0a..00000000 --- a/public/components/experiment_warning/index.tsx +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright OpenSearch Contributors - * SPDX-License-Identifier: Apache-2.0 - */ -import React from 'react'; - -import { EuiCallOut, EuiLink } from '@elastic/eui'; - -export const ExperimentalWarning = () => { - return ( - - The feature is experimental and should not be used in a production environment. For more - information, see{' '} - - Machine Learning Documentation - - . To leave feedback, visit{' '} - - forum.opensearch.org - - . - - ); -}; diff --git a/public/components/monitoring/index.tsx b/public/components/monitoring/index.tsx index cf4b1745..dea2a7aa 100644 --- a/public/components/monitoring/index.tsx +++ b/public/components/monitoring/index.tsx @@ -16,7 +16,6 @@ import React, { useState, useRef, useCallback } from 'react'; import { RefreshInterval } from '../common/refresh_interval'; import { PreviewPanel } from '../preview_panel'; -import { ExperimentalWarning } from '../experiment_warning'; import { ModelDeploymentItem, ModelDeploymentTable } from './model_deployment_table'; import { useMonitoring } from './use_monitoring'; import { ModelStatusFilter } from './model_status_filter'; @@ -69,7 +68,6 @@ export const Monitoring = () => { return (
-