-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Use doc link services in CCR #98436
Use doc link services in CCR #98436
Conversation
To address the "Metrics - page load bundle size" error, is it appropriate to run the following command?:
|
Pinging @elastic/es-ui (Team:Elasticsearch UI) |
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.
Thanks for working on this @lcawl!
I pushed another change to simplify the logic in advanced_settings_fields.js
. I also left a nit about the changes to the doc link service, but otherwise everything LGTM.
I’ll defer to the core team around the page load bundle size error.
For awareness to anyone that looks at this PR, the documentation links for byte size and time units appeared to be broken prior to this PR (not sure at one point the issue was introduced).
I worked with Lisa to resolve this and made changes to advanced_settings_fields.js
.
Unrelated to the documentation links, but I also came across a bug while creating a follower index in CCR and opened #98700.
@@ -309,6 +309,9 @@ export class DocLinksService { | |||
}, | |||
apis: { | |||
bulkIndexAlias: `${ELASTICSEARCH_DOCS}indices-aliases.html`, | |||
byteSizeUnits: `${ELASTICSEARCH_DOCS}common-options.html#byte-units`, |
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.
[nit] I see there's also an elasticsearch
property. I'm not as familiar with how the doc links are organized, but that seems like it might be more appropriate than to live under apis
.
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 page is a subsection of a long "API conventions" page, which is why I put it under "apis" in the link service. If we end up having to differentiate between conventions for Cloud/Kibana/Elasticsearch APIs, then maybe it's worth revisiting but I'll stick with this for now unless you have strong objections.
@@ -329,6 +332,7 @@ export class DocLinksService { | |||
putSnapshotLifecyclePolicy: `${ELASTICSEARCH_DOCS}slm-api-put-policy.html`, | |||
putWatch: `${ELASTICSEARCH_DOCS}watcher-api-put-watch.html`, | |||
simulatePipeline: `${ELASTICSEARCH_DOCS}simulate-pipeline-api.html`, | |||
timeUnits: `${ELASTICSEARCH_DOCS}common-options.html#time-units`, |
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.
similar comment here
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>
Summary
Related to #88107
This PR removes hard-coded links from https://github.com/elastic/kibana/blob/master/x-pack/plugins/cross_cluster_replication/public/app/services/documentation_links.ts, replacing them with keywords from the documentation link service.
In the long run, this documentation_links.ts file should likely be removed and the doc link service called directly instead (i.e. from https://github.com/elastic/kibana/blob/master/x-pack/plugins/cross_cluster_replication/public/app/components/auto_follow_pattern_page_title.js, https://github.com/elastic/kibana/blob/master/x-pack/plugins/cross_cluster_replication/public/app/components/follower_index_page_title.js, and https://github.com/elastic/kibana/blob/master/x-pack/plugins/cross_cluster_replication/public/app/components/follower_index_form/advanced_settings_fields.js).
Screenshots
Auto follow pattern docs link:
Follower index docs link:
Learn more links: