-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Revert "feat: enable ml-commons-dashboards plugin by default (#200)" This reverts commit a1cb7de. Signed-off-by: Lin Wang <wonglam@amazon.com> * Revert "feat: remove experiment warning banner (#194)" This reverts commit 0ef4753. Signed-off-by: Lin Wang <wonglam@amazon.com> --------- Signed-off-by: Lin Wang <wonglam@amazon.com> (cherry picked from commit 31df7d4) Co-authored-by: Lin Wang <wonglam@amazon.com>
- Loading branch information
1 parent
312761b
commit 95ce354
Showing
5 changed files
with
55 additions
and
6 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
public/components/experiment_warning/__tests__/index.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
import React from 'react'; | ||
import { render, screen } from '../../../../test/test_utils'; | ||
import { ExperimentalWarning } from '..'; | ||
|
||
describe('<ExperimentalWarning />', () => { | ||
it('should navigate to # when clicking link of "Machine Learning Documentation"', () => { | ||
render(<ExperimentalWarning />); | ||
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(<ExperimentalWarning />); | ||
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' | ||
); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
import React from 'react'; | ||
|
||
import { EuiCallOut, EuiLink } from '@elastic/eui'; | ||
|
||
export const ExperimentalWarning = () => { | ||
return ( | ||
<EuiCallOut title="Experimental Feature" iconType="iInCircle"> | ||
The feature is experimental and should not be used in a production environment. For more | ||
information, see{' '} | ||
<EuiLink href="https://opensearch.org/docs/latest/ml-commons-plugin/ml-dashbaord/" external> | ||
Machine Learning Documentation | ||
</EuiLink> | ||
. To leave feedback, visit{' '} | ||
<EuiLink | ||
href="https://forum.opensearch.org/t/feedback-ml-commons-ml-model-health-dashboard-for-admins-experimental-release/12494" | ||
external | ||
> | ||
forum.opensearch.org | ||
</EuiLink> | ||
. | ||
</EuiCallOut> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters