diff --git a/x-pack/plugins/cloud/common/parse_onboarding_default_solution.test.ts b/x-pack/plugins/cloud/common/parse_onboarding_default_solution.test.ts index de8b305ee452b..05173c612f411 100644 --- a/x-pack/plugins/cloud/common/parse_onboarding_default_solution.test.ts +++ b/x-pack/plugins/cloud/common/parse_onboarding_default_solution.test.ts @@ -16,6 +16,8 @@ describe('parseOnboardingSolution', () => { [ ['elasticsearch', 'es'], ['Elasticsearch', 'es'], + ['search', 'es'], + ['Search', 'es'], ['observability', 'oblt'], ['Observability', 'oblt'], ['security', 'security'], diff --git a/x-pack/plugins/cloud/common/parse_onboarding_default_solution.ts b/x-pack/plugins/cloud/common/parse_onboarding_default_solution.ts index e5938f77af92f..5b064eecce12d 100644 --- a/x-pack/plugins/cloud/common/parse_onboarding_default_solution.ts +++ b/x-pack/plugins/cloud/common/parse_onboarding_default_solution.ts @@ -18,9 +18,13 @@ export function parseOnboardingSolution(value?: string): OnBoardingDefaultSoluti if (!value) return; const solutions: Array<{ - cloudValue: 'elasticsearch' | 'observability' | 'security'; + cloudValue: 'search' | 'elasticsearch' | 'observability' | 'security'; kibanaValue: OnBoardingDefaultSolution; }> = [ + { + cloudValue: 'search', + kibanaValue: 'es', + }, { cloudValue: 'elasticsearch', kibanaValue: 'es', diff --git a/x-pack/plugins/spaces/server/routes/lib/parse_cloud_solution.test.ts b/x-pack/plugins/spaces/server/routes/lib/parse_cloud_solution.test.ts index 92ab37ec7359a..95a224b165ad5 100644 --- a/x-pack/plugins/spaces/server/routes/lib/parse_cloud_solution.test.ts +++ b/x-pack/plugins/spaces/server/routes/lib/parse_cloud_solution.test.ts @@ -13,6 +13,10 @@ describe('parseCloudSolution', () => { expect(parseCloudSolution('elasticsearch')).toBe('es'); }); + it('should return "es" for "search"', () => { + expect(parseCloudSolution('search')).toBe('es'); + }); + it('should return "oblt" for "observability"', () => { expect(parseCloudSolution('observability')).toBe('oblt'); }); @@ -26,6 +30,10 @@ describe('parseCloudSolution', () => { expect(parseCloudSolution('ELASTICSEARCH')).toBe('es'); }); + it('should return "es" for "SEARCH"', () => { + expect(parseCloudSolution('SEARCH')).toBe('es'); + }); + it('should return "oblt" for "OBSERVABILITY"', () => { expect(parseCloudSolution('OBSERVABILITY')).toBe('oblt'); }); diff --git a/x-pack/plugins/spaces/server/routes/lib/parse_cloud_solution.ts b/x-pack/plugins/spaces/server/routes/lib/parse_cloud_solution.ts index 4532c26fc6686..1238d9a356d32 100644 --- a/x-pack/plugins/spaces/server/routes/lib/parse_cloud_solution.ts +++ b/x-pack/plugins/spaces/server/routes/lib/parse_cloud_solution.ts @@ -8,6 +8,7 @@ import type { SolutionView } from '../../../common'; const CLOUD_TO_KIBANA_SOLUTION_MAP = new Map([ + ['search', 'es'], ['elasticsearch', 'es'], ['observability', 'oblt'], ['security', 'security'],