From b991c37bfe8b1bf5f2a363a3aa0d76e05fa5cee8 Mon Sep 17 00:00:00 2001 From: lcawl Date: Thu, 12 Sep 2024 19:23:42 -0700 Subject: [PATCH 1/3] Convert 8.x to 8.16 in doc link service --- packages/kbn-doc-links/src/get_doc_meta.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/kbn-doc-links/src/get_doc_meta.ts b/packages/kbn-doc-links/src/get_doc_meta.ts index 4a8779567b73c..094d0116a2f98 100644 --- a/packages/kbn-doc-links/src/get_doc_meta.ts +++ b/packages/kbn-doc-links/src/get_doc_meta.ts @@ -19,7 +19,7 @@ export const getDocLinksMeta = ({ buildFlavor, }: GetDocLinksMetaOptions): DocLinksMeta => { return { - version: kibanaBranch === 'main' ? 'master' : kibanaBranch, + version: kibanaBranch === '8.x' ? '8.16' : kibanaBranch, ecs_version: 'current', elasticWebsiteUrl: 'https://www.elastic.co/', elasticGithubUrl: 'https://github.com/elastic/', From b9c2ff4a7dee602b0c7285c380801b577d408a90 Mon Sep 17 00:00:00 2001 From: lcawl Date: Tue, 17 Sep 2024 17:08:14 -0700 Subject: [PATCH 2/3] Edit conditional kibanabranch --- packages/kbn-doc-links/src/get_doc_meta.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/kbn-doc-links/src/get_doc_meta.ts b/packages/kbn-doc-links/src/get_doc_meta.ts index 094d0116a2f98..ba2c02be69c88 100644 --- a/packages/kbn-doc-links/src/get_doc_meta.ts +++ b/packages/kbn-doc-links/src/get_doc_meta.ts @@ -19,7 +19,7 @@ export const getDocLinksMeta = ({ buildFlavor, }: GetDocLinksMetaOptions): DocLinksMeta => { return { - version: kibanaBranch === '8.x' ? '8.16' : kibanaBranch, + version: kibanaBranch === 'main' ? 'master' : '8.x' ? '8.16' : kibanaBranch, ecs_version: 'current', elasticWebsiteUrl: 'https://www.elastic.co/', elasticGithubUrl: 'https://github.com/elastic/', From 8f120d18f11f5a9528d545488de060103fd16410 Mon Sep 17 00:00:00 2001 From: lcawl Date: Tue, 17 Sep 2024 18:36:34 -0700 Subject: [PATCH 3/3] Fixing condidional operator --- packages/kbn-doc-links/src/get_doc_meta.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/kbn-doc-links/src/get_doc_meta.ts b/packages/kbn-doc-links/src/get_doc_meta.ts index ba2c02be69c88..0dc5c78563694 100644 --- a/packages/kbn-doc-links/src/get_doc_meta.ts +++ b/packages/kbn-doc-links/src/get_doc_meta.ts @@ -19,7 +19,7 @@ export const getDocLinksMeta = ({ buildFlavor, }: GetDocLinksMetaOptions): DocLinksMeta => { return { - version: kibanaBranch === 'main' ? 'master' : '8.x' ? '8.16' : kibanaBranch, + version: kibanaBranch === 'main' ? 'master' : kibanaBranch === '8.x' ? '8.16' : kibanaBranch, ecs_version: 'current', elasticWebsiteUrl: 'https://www.elastic.co/', elasticGithubUrl: 'https://github.com/elastic/',