From 5e39ffce6225e8e361b175a2dec174f6a0791eee Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Wed, 14 Jun 2023 11:00:40 +0800 Subject: [PATCH] Fix ml document link address (#210) (#213) * update to correct machine learning document address to fix #208 Signed-off-by: Lin Wang * fix: update link in deployment table empty screen Signed-off-by: Lin Wang --------- Signed-off-by: Lin Wang (cherry picked from commit 7a33d01ea00077a2ab299374981f7ef850e976ca) Co-authored-by: Lin Wang --- public/components/experiment_warning/__tests__/index.test.tsx | 2 +- public/components/experiment_warning/index.tsx | 2 +- public/components/monitoring/model_deployment_table.tsx | 2 +- .../components/monitoring/tests/model_deployment_table.test.tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/components/experiment_warning/__tests__/index.test.tsx b/public/components/experiment_warning/__tests__/index.test.tsx index ab50552e..b9ccd3fa 100644 --- a/public/components/experiment_warning/__tests__/index.test.tsx +++ b/public/components/experiment_warning/__tests__/index.test.tsx @@ -11,7 +11,7 @@ describe('', () => { render(); 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/' ); }); diff --git a/public/components/experiment_warning/index.tsx b/public/components/experiment_warning/index.tsx index 668fcc0a..0d06c67b 100644 --- a/public/components/experiment_warning/index.tsx +++ b/public/components/experiment_warning/index.tsx @@ -11,7 +11,7 @@ export const ExperimentalWarning = () => { The feature is experimental and should not be used in a production environment. For more information, see{' '} - + Machine Learning Documentation . To leave feedback, visit{' '} diff --git a/public/components/monitoring/model_deployment_table.tsx b/public/components/monitoring/model_deployment_table.tsx index e39cd823..c6df94f9 100644 --- a/public/components/monitoring/model_deployment_table.tsx +++ b/public/components/monitoring/model_deployment_table.tsx @@ -207,7 +207,7 @@ export const ModelDeploymentTable = ({ Deployed models will appear here. For more information, see{' '} Machine Learning Documentation diff --git a/public/components/monitoring/tests/model_deployment_table.test.tsx b/public/components/monitoring/tests/model_deployment_table.test.tsx index b95aad76..ecc51cd4 100644 --- a/public/components/monitoring/tests/model_deployment_table.test.tsx +++ b/public/components/monitoring/tests/model_deployment_table.test.tsx @@ -58,7 +58,7 @@ describe('', () => { }); 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(); });