Skip to content

Commit

Permalink
Fix ml document link address (#210)
Browse files Browse the repository at this point in the history
* update to correct machine learning document address to fix #208

Signed-off-by: Lin Wang <wonglam@amazon.com>

* fix: update link in deployment table empty screen

Signed-off-by: Lin Wang <wonglam@amazon.com>

---------

Signed-off-by: Lin Wang <wonglam@amazon.com>
  • Loading branch information
wanglam authored Jun 14, 2023
1 parent 2bc3f38 commit 7a33d01
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('<ExperimentalWarning />', () => {
render(<ExperimentalWarning />);
const link = screen.getByText('Machine Learning Documentation');
expect(link.getAttribute('href')).toBe(
'https://opensearch.org/docs/latest/ml-commons-plugin/ml-dashbaord/'
'https://opensearch.org/docs/latest/ml-commons-plugin/ml-dashboard/'
);
});

Expand Down
2 changes: 1 addition & 1 deletion public/components/experiment_warning/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const ExperimentalWarning = () => {
<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>
<EuiLink href="https://opensearch.org/docs/latest/ml-commons-plugin/ml-dashboard/" external>
Machine Learning Documentation
</EuiLink>
. To leave feedback, visit{' '}
Expand Down
2 changes: 1 addition & 1 deletion public/components/monitoring/model_deployment_table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export const ModelDeploymentTable = ({
Deployed models will appear here. For more information, see{' '}
<EuiLink
role="link"
href="https://opensearch.org/docs/latest/ml-commons-plugin/ml-dashbaord/"
href="https://opensearch.org/docs/latest/ml-commons-plugin/ml-dashboard/"
external
>
Machine Learning Documentation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe('<DeployedModelTable />', () => {
});
expect(screen.getByRole('link')).toBeInTheDocument();
expect(screen.getByRole('link').getAttribute('href')).toEqual(
'https://opensearch.org/docs/latest/ml-commons-plugin/ml-dashbaord/'
'https://opensearch.org/docs/latest/ml-commons-plugin/ml-dashboard/'
);
expect(screen.queryByRole('columnheader')).not.toBeInTheDocument();
});
Expand Down

0 comments on commit 7a33d01

Please sign in to comment.