-
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
[Monitoring] Fix newly added cloud link #89067
[Monitoring] Fix newly added cloud link #89067
Conversation
Pinging @elastic/stack-monitoring (Team:Monitoring) |
@elasticmachine merge upstream |
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.
Looks good 👍
Just a minor nit mentioned below
@@ -32,7 +32,7 @@ export const CloudDeployment = () => { | |||
defaultMessage="section for a deployment to configure monitoring. For more information visit " | |||
/> | |||
<EuiLink | |||
href="https://www.elastic.co/guide/en/cloud/current/ec-enable-monitoring.html" | |||
href="https://www.elastic.co/guide/en/cloud/current/ec-enable-logging-and-monitoring.html" |
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 think we should use our global statics here to maintain consistency, eg:
href="https://www.elastic.co/guide/en/cloud/current/ec-enable-logging-and-monitoring.html" | |
href=`${docLinks.ELASTIC_WEBSITE_URL}guide/en/cloud/${docLinks.DOC_LINK_VERSION}/ec-enable-logging-and-monitoring.html` |
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.
Love it! I'll update
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 can't seem to use DOC_LINK_VERSION
as it resolves to master
instead of current
which breaks the URL
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.
It will resolve to current
(or the build version) once it's built, but you can do something like this to override master:
const version = (docLinks.DOC_LINK_VERSION === 'master') ? 'current' : docLinks.DOC_LINK_VERSION;
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
* Fix cloud link * Update link * Fix tests Co-authored-by: Kibana Machine <[email protected]>
* Fix cloud link * Update link * Fix tests Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
* Fix cloud link * Update link * Fix tests Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
Resolves #88951