[8.17] Update Search UI link targets (#204131) (#206627)

# Backport

This will backport the following commits from `main` to `8.17`:
- [Update Search UI link targets
(#204131)](https://github.com/elastic/kibana/pull/204131)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Colleen
McGinnis","email":"colleen.mcginnis@elastic.co"},"sourceCommit":{"committedDate":"2025-01-14T16:09:02Z","message":"Update
Search UI link targets (#204131)\n\n## Summary\r\n\r\nThis PR updates
the Kibana doc link service to target the new location\r\nof the Search
UI
docs\r\n(https://www.elastic.co/guide/en/search-ui/current/overview.html).
I\r\nwasn't totally sure which labels to apply but I pulled inspiration
from\r\na similar recent PR by
@lcawl\r\n(https://github.com/elastic/kibana/pull/199396).\r\n\r\n---------\r\n\r\nCo-authored-by:
Liam Thompson
<32779855+leemthompo@users.noreply.github.com>","sha":"c2b0c8ce793f63f5ab84531068582a3ceab41a5c","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Docs","release_note:skip","v9.0.0","docs","v8.10.0","v8.11.0","v8.12.0","v8.13.0","v8.14.0","v8.15.0","v8.16.0","backport:version","v8.17.0"],"title":"Update
Search UI link
targets","number":204131,"url":"https://github.com/elastic/kibana/pull/204131","mergeCommit":{"message":"Update
Search UI link targets (#204131)\n\n## Summary\r\n\r\nThis PR updates
the Kibana doc link service to target the new location\r\nof the Search
UI
docs\r\n(https://www.elastic.co/guide/en/search-ui/current/overview.html).
I\r\nwasn't totally sure which labels to apply but I pulled inspiration
from\r\na similar recent PR by
@lcawl\r\n(https://github.com/elastic/kibana/pull/199396).\r\n\r\n---------\r\n\r\nCo-authored-by:
Liam Thompson
<32779855+leemthompo@users.noreply.github.com>","sha":"c2b0c8ce793f63f5ab84531068582a3ceab41a5c"}},"sourceBranch":"main","suggestedTargetBranches":["8.10","8.11","8.12","8.13","8.14","8.15","8.16","8.17"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/204131","number":204131,"mergeCommit":{"message":"Update
Search UI link targets (#204131)\n\n## Summary\r\n\r\nThis PR updates
the Kibana doc link service to target the new location\r\nof the Search
UI
docs\r\n(https://www.elastic.co/guide/en/search-ui/current/overview.html).
I\r\nwasn't totally sure which labels to apply but I pulled inspiration
from\r\na similar recent PR by
@lcawl\r\n(https://github.com/elastic/kibana/pull/199396).\r\n\r\n---------\r\n\r\nCo-authored-by:
Liam Thompson
<32779855+leemthompo@users.noreply.github.com>","sha":"c2b0c8ce793f63f5ab84531068582a3ceab41a5c"}},{"branch":"8.10","label":"v8.10.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.11","label":"v8.11.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.12","label":"v8.12.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.13","label":"v8.13.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.14","label":"v8.14.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.15","label":"v8.15.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.17","label":"v8.17.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Colleen McGinnis <colleen.mcginnis@elastic.co>
This commit is contained in:
Kibana Machine 2025-01-15 05:04:18 +11:00 committed by GitHub
parent c9611ccbaf
commit 39c284d4ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,7 +22,6 @@ export const getDocLinks = ({ kibanaBranch, buildFlavor }: GetDocLinkOptions): D
const DOC_LINK_VERSION = meta.version;
const ECS_VERSION = meta.ecs_version;
const ELASTIC_WEBSITE_URL = meta.elasticWebsiteUrl;
const DOCS_WEBSITE_URL = meta.docsWebsiteUrl;
const ELASTIC_GITHUB = meta.elasticGithubUrl;
const SEARCH_LABS_URL = meta.searchLabsUrl;
@ -38,7 +37,7 @@ export const getDocLinks = ({ kibanaBranch, buildFlavor }: GetDocLinkOptions): D
const ENTERPRISE_SEARCH_DOCS = `${ELASTIC_WEBSITE_URL}guide/en/enterprise-search/${DOC_LINK_VERSION}/`;
const ESRE_DOCS = `${ELASTIC_WEBSITE_URL}guide/en/esre/${DOC_LINK_VERSION}/`;
const WORKPLACE_SEARCH_DOCS = `${ELASTIC_WEBSITE_URL}guide/en/workplace-search/${DOC_LINK_VERSION}/`;
const SEARCH_UI_DOCS = `${DOCS_WEBSITE_URL}search-ui/`;
const SEARCH_UI_DOCS = `${ELASTIC_WEBSITE_URL}guide/en/search-ui/current/`;
const MACHINE_LEARNING_DOCS = `${ELASTIC_WEBSITE_URL}guide/en/machine-learning/${DOC_LINK_VERSION}/`;
const SERVERLESS_DOCS = `${ELASTIC_WEBSITE_URL}guide/en/serverless/current/`;
const SEARCH_LABS_REPO = `${ELASTIC_GITHUB}elasticsearch-labs/`;