Skip to content

Commit

Permalink
Update enterprise_search URLs to elasticsearch
Browse files Browse the repository at this point in the history
  • Loading branch information
saikatsarkar056 committed Dec 5, 2024
1 parent 8c03de0 commit b487880
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 27 deletions.
8 changes: 4 additions & 4 deletions src/plugins/console/public/application/lib/load_from.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@ describe('load from lib', () => {
it('works with a non-hash route', () => {
mockWindow.location = {
...mockWindow.location,
pathname: '/foo/app/enterprise_search/overview',
pathname: '/foo/app/elasticsearch/overview',
};
const codeSnippet = 'GET /_stats';
const expectedUrl =
'https://my-kibana.elastic.co/foo/app/enterprise_search/overview?load_from=data%3Atext%2Fplain%2COIUQKgBA9A%2BgzgFwIYLkA';
'https://my-kibana.elastic.co/foo/app/elasticsearch/overview?load_from=data%3Atext%2Fplain%2COIUQKgBA9A%2BgzgFwIYLkA';

setLoadFromParameter(codeSnippet);
expect(mockWindow.history.pushState).toHaveBeenCalledTimes(1);
Expand All @@ -121,12 +121,12 @@ describe('load from lib', () => {
it('works with a non-hash route and other params', () => {
mockWindow.location = {
...mockWindow.location,
pathname: '/foo/app/enterprise_search/overview',
pathname: '/foo/app/elasticsearch/overview',
search: '?foo=bar',
};
const codeSnippet = 'GET /_stats';
const expectedUrl =
'https://my-kibana.elastic.co/foo/app/enterprise_search/overview?foo=bar&load_from=data%3Atext%2Fplain%2COIUQKgBA9A%2BgzgFwIYLkA';
'https://my-kibana.elastic.co/foo/app/elasticsearch/overview?foo=bar&load_from=data%3Atext%2Fplain%2COIUQKgBA9A%2BgzgFwIYLkA';

setLoadFromParameter(codeSnippet);
expect(mockWindow.history.pushState).toHaveBeenCalledTimes(1);
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/navigation/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const DEFAULT_ROUTE_UI_SETTING_ID = 'defaultRoute';

export const DEFAULT_ROUTES = {
classic: '/app/home',
es: '/app/enterprise_search/overview',
es: '/app/elasticsearch/overview',
oblt: '/app/observabilityOnboarding',
security: '/app/security/get_started',
};
2 changes: 1 addition & 1 deletion x-pack/plugins/enterprise_search/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const ENTERPRISE_SEARCH_OVERVIEW_PLUGIN = {
DESCRIPTION: i18n.translate('xpack.enterpriseSearch.overview.description', {
defaultMessage: 'Create search experiences with a refined set of APIs and tools.',
}),
URL: '/app/enterprise_search/overview',
URL: '/app/elasticsearch/overview',
LOGO: 'logoEnterpriseSearch',
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
* 2.0.
*/

export const overviewPath = '/app/enterprise_search/overview';
export const overviewPath = '/app/elasticsearch/overview';
export const appSearchPath = '/app/enterprise_search/app_search';
export const workplaceSearchPath = '/app/enterprise_search/workplace_search';
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ describe('useSearchBreadcrumbs', () => {
expect(useSearchBreadcrumbs(breadcrumbs)).toEqual([
{
text: 'Elasticsearch',
href: '/app/enterprise_search/overview',
href: '/app/elasticsearch/overview',
onClick: expect.any(Function),
},
{
Expand Down Expand Up @@ -206,7 +206,7 @@ describe('useEnterpriseSearchBreadcrumbs', () => {
expect(useEnterpriseSearchBreadcrumbs(breadcrumbs)).toEqual([
{
text: 'Enterprise Search',
href: '/app/enterprise_search/overview',
href: '/app/elasticsearch/overview',
onClick: expect.any(Function),
},
{
Expand Down Expand Up @@ -252,7 +252,7 @@ describe('useAppSearchBreadcrumbs', () => {
expect(useAppSearchBreadcrumbs(breadcrumbs)).toEqual([
{
text: 'Enterprise Search',
href: '/app/enterprise_search/overview',
href: '/app/elasticsearch/overview',
onClick: expect.any(Function),
},
{
Expand All @@ -275,7 +275,7 @@ describe('useAppSearchBreadcrumbs', () => {
expect(useAppSearchBreadcrumbs()).toEqual([
{
text: 'Enterprise Search',
href: '/app/enterprise_search/overview',
href: '/app/elasticsearch/overview',
onClick: expect.any(Function),
},
{
Expand Down Expand Up @@ -308,7 +308,7 @@ describe('useWorkplaceSearchBreadcrumbs', () => {
expect(useWorkplaceSearchBreadcrumbs(breadcrumbs)).toEqual([
{
text: 'Enterprise Search',
href: '/app/enterprise_search/overview',
href: '/app/elasticsearch/overview',
onClick: expect.any(Function),
},
{
Expand All @@ -331,7 +331,7 @@ describe('useWorkplaceSearchBreadcrumbs', () => {
expect(useWorkplaceSearchBreadcrumbs()).toEqual([
{
text: 'Enterprise Search',
href: '/app/enterprise_search/overview',
href: '/app/elasticsearch/overview',
onClick: expect.any(Function),
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('generateSideNavItems', () => {
const deepLinksMap = {
enterpriseSearch: {
id: 'enterpriseSearch',
url: '/app/enterprise_search/overview',
url: '/app/elasticsearch/overview',
title: 'Overview',
},
'enterpriseSearchContent:searchIndices': {
Expand Down Expand Up @@ -58,7 +58,7 @@ describe('generateSideNavItems', () => {

expect(generateSideNavItems(classicNavItems, deepLinksMap)).toEqual([
{
href: '/app/enterprise_search/overview',
href: '/app/elasticsearch/overview',
id: 'unit-test',
isSelected: false,
name: 'Overview',
Expand Down Expand Up @@ -88,7 +88,7 @@ describe('generateSideNavItems', () => {
id: 'parent',
items: [
{
href: '/app/enterprise_search/overview',
href: '/app/elasticsearch/overview',
id: 'unit-test',
isSelected: false,
name: 'Overview',
Expand All @@ -113,7 +113,7 @@ describe('generateSideNavItems', () => {

expect(generateSideNavItems(classicNavItems, deepLinksMap)).toEqual([
{
href: '/app/enterprise_search/overview',
href: '/app/elasticsearch/overview',
id: 'unit-test',
isSelected: false,
name: 'Home',
Expand Down Expand Up @@ -141,7 +141,7 @@ describe('generateSideNavItems', () => {

expect(generateSideNavItems(classicNavItems, deepLinksMap)).toEqual([
{
href: '/app/enterprise_search/overview',
href: '/app/elasticsearch/overview',
id: 'unit-test',
isSelected: false,
name: 'Home',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const DEFAULT_PRODUCT_ACCESS: ProductAccess = {
const baseNavItems = [
expect.objectContaining({
'data-test-subj': 'searchSideNav-Home',
href: '/app/enterprise_search/overview',
href: '/app/elasticsearch/overview',
id: 'home',
items: undefined,
}),
Expand Down Expand Up @@ -170,7 +170,7 @@ const baseNavItems = [
const mockNavLinks = [
{
id: 'enterpriseSearch',
url: '/app/enterprise_search/overview',
url: '/app/elasticsearch/overview',
},
{
id: 'enterpriseSearchContent:searchIndices',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('classicNavigationFactory', function () {
const mockedNavLinks: Array<Partial<ChromeNavLink>> = [
{
id: 'enterpriseSearch',
url: '/app/enterprise_search/overview',
url: '/app/elasticsearch/overview',
title: 'Overview',
},
{
Expand Down Expand Up @@ -69,7 +69,7 @@ describe('classicNavigationFactory', function () {
icon: 'logoEnterpriseSearch',
items: [
{
href: '/app/enterprise_search/overview',
href: '/app/elasticsearch/overview',
id: 'unit-test',
isSelected: false,
name: 'Overview',
Expand All @@ -82,7 +82,7 @@ describe('classicNavigationFactory', function () {

it('will set isSelected', () => {
mockHistory.location.pathname = '/overview';
mockHistory.createHref.mockReturnValue('/app/enterprise_search/overview');
mockHistory.createHref.mockReturnValue('/app/elasticsearch/overview');

const items: ClassicNavItem[] = [
{
Expand All @@ -96,7 +96,7 @@ describe('classicNavigationFactory', function () {
const solutionNav = classicNavigationFactory(items, core, history);
expect(solutionNav!.items).toEqual([
{
href: '/app/enterprise_search/overview',
href: '/app/elasticsearch/overview',
id: 'unit-test',
isSelected: true,
name: 'Overview',
Expand Down Expand Up @@ -190,7 +190,7 @@ describe('classicNavigationFactory', function () {
const solutionNav = classicNavigationFactory(items, core, history);
expect(solutionNav!.items).toEqual([
{
href: '/app/enterprise_search/overview',
href: '/app/elasticsearch/overview',
id: 'unit-test',
isSelected: false,
name: 'Overview',
Expand Down
2 changes: 1 addition & 1 deletion x-pack/test/accessibility/apps/group3/enterprise_search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {

describe('Overview', () => {
before(async () => {
await common.navigateToApp('enterprise_search/overview');
await common.navigateToApp('elasticsearch/overview');
});

it('loads a landing page with product cards', async function () {
Expand Down
2 changes: 1 addition & 1 deletion x-pack/test/functional/config.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export default async function ({ readConfigFile }) {
pathname: '/app/management/kibana/observabilityAiAssistantManagement',
},
enterpriseSearch: {
pathname: '/app/enterprise_search/overview',
pathname: '/app/elasticsearch/overview',
},
},

Expand Down

0 comments on commit b487880

Please sign in to comment.