From 9df6f37654559ab0648b1ce3aede30f3f0faeae4 Mon Sep 17 00:00:00 2001 From: Saikat Sarkar <132922331+saikatsarkar056@users.noreply.github.com> Date: Tue, 10 Dec 2024 08:54:43 -0700 Subject: [PATCH] [Ent Search Deprecation] Update enterprise_search URLs for elasticsearch -> getting_started (#203177) This PR resolves this https://github.com/elastic/search-team/issues/7961. In this PR, we changed the following Urls by replacing 'enterprise_search' with 'elasticsearch'. | Old URL | New URL | | :------------------------------------- | :------------------------------------- | | app/enterprise_search/elasticsearch | app/elasticsearch/elasticsearch | | app/enterprise_search/vector_search | app/elasticsearch/vector_search | | app/enterprise_search/semantic_search | app/elasticsearch/semantic_search | | app/enterprise_search/ai_search | app/elasticsearch/ai_search | Co-authored-by: Elastic Machine --- .../enterprise_search/common/constants.ts | 10 +++++----- .../applications/shared/layout/nav.test.tsx | 16 ++++++++-------- .../apps/group3/enterprise_search.ts | 6 +++--- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/x-pack/plugins/enterprise_search/common/constants.ts b/x-pack/plugins/enterprise_search/common/constants.ts index 13afad3f1a342..4b9ea32949518 100644 --- a/x-pack/plugins/enterprise_search/common/constants.ts +++ b/x-pack/plugins/enterprise_search/common/constants.ts @@ -72,7 +72,7 @@ export const AI_SEARCH_PLUGIN = { defaultMessage: 'Toolkit for enabling developers to build AI search-powered applications using the Elastic platform.', }), - URL: '/app/enterprise_search/ai_search', + URL: '/app/elasticsearch/ai_search', LOGO: 'logoEnterpriseSearch', }; @@ -101,7 +101,7 @@ export const ELASTICSEARCH_PLUGIN = { DESCRIPTION: i18n.translate('xpack.enterpriseSearch.elasticsearch.productDescription', { defaultMessage: 'Low-level tools for creating performant and relevant search experiences.', }), - URL: '/app/enterprise_search/elasticsearch', + URL: '/app/elasticsearch/elasticsearch', SUPPORT_URL: 'https://discuss.elastic.co/c/elastic-stack/elasticsearch/', }; @@ -179,7 +179,7 @@ export const VECTOR_SEARCH_PLUGIN = { defaultMessage: 'Vector Search', }), SUPPORT_URL: 'https://discuss.elastic.co/c/enterprise-search/', - URL: '/app/enterprise_search/vector_search', + URL: '/app/elasticsearch/vector_search', }; export const SEMANTIC_SEARCH_PLUGIN = { @@ -196,7 +196,7 @@ export const SEMANTIC_SEARCH_PLUGIN = { defaultMessage: 'Semantic Search', }), SUPPORT_URL: 'https://discuss.elastic.co/c/enterprise-search/', - URL: '/app/enterprise_search/semantic_search', + URL: '/app/elasticsearch/semantic_search', }; export const CREATE_CONNECTOR_PLUGIN = { @@ -224,7 +224,7 @@ export const ENTERPRISE_SEARCH_AUDIT_LOGS_SOURCE_ID = 'ent-search-audit-logs'; export const ENTERPRISE_SEARCH_ANALYTICS_LOGS_SOURCE_ID = 'ent-search-analytics-logs'; export const APP_SEARCH_URL = '/app/enterprise_search/app_search'; -export const ENTERPRISE_SEARCH_ELASTICSEARCH_URL = '/app/enterprise_search/elasticsearch'; +export const ENTERPRISE_SEARCH_ELASTICSEARCH_URL = '/app/elasticsearch/elasticsearch'; export const WORKPLACE_SEARCH_URL = '/app/enterprise_search/workplace_search'; export const CREATE_NEW_INDEX_URL = '/search_indices/new_index'; export const PLAYGROUND_URL = '/playground'; diff --git a/x-pack/plugins/enterprise_search/public/applications/shared/layout/nav.test.tsx b/x-pack/plugins/enterprise_search/public/applications/shared/layout/nav.test.tsx index 08976a4dc68c1..db0340e99317e 100644 --- a/x-pack/plugins/enterprise_search/public/applications/shared/layout/nav.test.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/shared/layout/nav.test.tsx @@ -115,28 +115,28 @@ const baseNavItems = [ items: [ { 'data-test-subj': 'searchSideNav-Elasticsearch', - href: '/app/enterprise_search/elasticsearch', + href: '/app/elasticsearch/elasticsearch', id: 'elasticsearch', items: undefined, name: 'Elasticsearch', }, { 'data-test-subj': 'searchSideNav-VectorSearch', - href: '/app/enterprise_search/vector_search', + href: '/app/elasticsearch/vector_search', id: 'vectorSearch', items: undefined, name: 'Vector Search', }, { 'data-test-subj': 'searchSideNav-SemanticSearch', - href: '/app/enterprise_search/semantic_search', + href: '/app/elasticsearch/semantic_search', id: 'semanticSearch', items: undefined, name: 'Semantic Search', }, { 'data-test-subj': 'searchSideNav-AISearch', - href: '/app/enterprise_search/ai_search', + href: '/app/elasticsearch/ai_search', id: 'aiSearch', items: undefined, name: 'AI Search', @@ -220,22 +220,22 @@ const mockNavLinks = [ { id: 'enterpriseSearchElasticsearch', title: 'Elasticsearch', - url: '/app/enterprise_search/elasticsearch', + url: '/app/elasticsearch/elasticsearch', }, { id: 'enterpriseSearchVectorSearch', title: 'Vector Search', - url: '/app/enterprise_search/vector_search', + url: '/app/elasticsearch/vector_search', }, { id: 'enterpriseSearchSemanticSearch', title: 'Semantic Search', - url: '/app/enterprise_search/semantic_search', + url: '/app/elasticsearch/semantic_search', }, { id: 'enterpriseSearchAISearch', title: 'AI Search', - url: '/app/enterprise_search/ai_search', + url: '/app/elasticsearch/ai_search', }, ]; diff --git a/x-pack/test/accessibility/apps/group3/enterprise_search.ts b/x-pack/test/accessibility/apps/group3/enterprise_search.ts index 976f16a6c7151..e2652aef953a1 100644 --- a/x-pack/test/accessibility/apps/group3/enterprise_search.ts +++ b/x-pack/test/accessibility/apps/group3/enterprise_search.ts @@ -64,7 +64,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe('Elasticsearch', () => { before(async () => { - await common.navigateToApp('enterprise_search/elasticsearch'); + await common.navigateToApp('elasticsearch/elasticsearch'); }); it('loads a setup guide', async function () { @@ -146,7 +146,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { }); describe('Vector Search', () => { before(async () => { - await common.navigateToApp('enterprise_search/vector_search'); + await common.navigateToApp('elasticsearch/vector_search'); }); it('loads Vector Search page', async function () { @@ -159,7 +159,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { }); describe('AI Search', () => { before(async () => { - await common.navigateToApp('enterprise_search/ai_search'); + await common.navigateToApp('elasticsearch/ai_search'); }); it('loads AI Search page', async function () {