-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix broken documentation links in the App Search plugin #198572
Fix broken documentation links in the App Search plugin #198572
Conversation
@@ -11,7 +11,7 @@ import { EuiButton, EuiEmptyPrompt } from '@elastic/eui'; | |||
|
|||
import { i18n } from '@kbn/i18n'; | |||
|
|||
import { API_DOCS_URL } from '../../../routes'; | |||
import { docLinks } from '../../../../shared/doc_links'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not very happy with this import and would prefer to use a property for the component. But considering the number of components to be updated, it would be too long and risky to do it like this.
it will be good enough to fix the issue before 8.16.0 is released and we can revisit it later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a fine fix AFAIC
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
💚 Build Succeeded
Metrics [docs]Async chunks
Page load bundle
History
|
Starting backport for target branches: 8.15, 8.16, 8.x |
(cherry picked from commit 80d5121)
(cherry picked from commit 80d5121)
(cherry picked from commit 80d5121)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…) (#198603) # Backport This will backport the following commits from `main` to `8.15`: - [Fix broken documentation links in the App Search plugin (#198572)](#198572) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Aurélien FOUCRET","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-31T18:53:14Z","message":"Fix broken documentation links in the App Search plugin (#198572)","sha":"80d5121b80f3bbd452b5b02fc05c944802ac8c46","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","v9.0.0","auto-backport","Team:EnterpriseSearch","backport:prev-major","v8.15.0","v8.16.0","v8.17.0"],"title":"Fix broken documentation links in the App Search plugin","number":198572,"url":"https://github.com/elastic/kibana/pull/198572","mergeCommit":{"message":"Fix broken documentation links in the App Search plugin (#198572)","sha":"80d5121b80f3bbd452b5b02fc05c944802ac8c46"}},"sourceBranch":"main","suggestedTargetBranches":["8.15","8.16","8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/198572","number":198572,"mergeCommit":{"message":"Fix broken documentation links in the App Search plugin (#198572)","sha":"80d5121b80f3bbd452b5b02fc05c944802ac8c46"}},{"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.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Aurélien FOUCRET <[email protected]>
…) (#198604) # Backport This will backport the following commits from `main` to `8.16`: - [Fix broken documentation links in the App Search plugin (#198572)](#198572) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Aurélien FOUCRET","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-31T18:53:14Z","message":"Fix broken documentation links in the App Search plugin (#198572)","sha":"80d5121b80f3bbd452b5b02fc05c944802ac8c46","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","v9.0.0","auto-backport","Team:EnterpriseSearch","backport:prev-major","v8.15.0","v8.16.0","v8.17.0"],"title":"Fix broken documentation links in the App Search plugin","number":198572,"url":"https://github.com/elastic/kibana/pull/198572","mergeCommit":{"message":"Fix broken documentation links in the App Search plugin (#198572)","sha":"80d5121b80f3bbd452b5b02fc05c944802ac8c46"}},"sourceBranch":"main","suggestedTargetBranches":["8.15","8.16","8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/198572","number":198572,"mergeCommit":{"message":"Fix broken documentation links in the App Search plugin (#198572)","sha":"80d5121b80f3bbd452b5b02fc05c944802ac8c46"}},{"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.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Aurélien FOUCRET <[email protected]>
… (#198605) # Backport This will backport the following commits from `main` to `8.x`: - [Fix broken documentation links in the App Search plugin (#198572)](#198572) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Aurélien FOUCRET","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-31T18:53:14Z","message":"Fix broken documentation links in the App Search plugin (#198572)","sha":"80d5121b80f3bbd452b5b02fc05c944802ac8c46","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","v9.0.0","auto-backport","Team:EnterpriseSearch","backport:prev-major","v8.15.0","v8.16.0","v8.17.0"],"title":"Fix broken documentation links in the App Search plugin","number":198572,"url":"https://github.com/elastic/kibana/pull/198572","mergeCommit":{"message":"Fix broken documentation links in the App Search plugin (#198572)","sha":"80d5121b80f3bbd452b5b02fc05c944802ac8c46"}},"sourceBranch":"main","suggestedTargetBranches":["8.15","8.16","8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/198572","number":198572,"mergeCommit":{"message":"Fix broken documentation links in the App Search plugin (#198572)","sha":"80d5121b80f3bbd452b5b02fc05c944802ac8c46"}},{"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.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Aurélien FOUCRET <[email protected]>
The bug was caused by the method used to pass URL to the
EuiButton
or theEuiLink
components.Indeed the links were imported by using (example for synonym but there are dozen of similar example):
where
SYNONYMS_DOCS_URL
was defined with:My assumption is that docLinks were not instantiated completely when imported.