Skip to content
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

Merged
merged 5 commits into from
Jan 26, 2021

Conversation

chrisronline
Copy link
Contributor

Resolves #88951

@chrisronline chrisronline added review Team:Monitoring Stack Monitoring team v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.11.0 v7.12.0 labels Jan 22, 2021
@chrisronline chrisronline requested a review from a team January 22, 2021 20:26
@chrisronline chrisronline self-assigned this Jan 22, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/stack-monitoring (Team:Monitoring)

@chrisronline
Copy link
Contributor Author

@elasticmachine merge upstream

Copy link
Contributor

@igoristic igoristic left a 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"
Copy link
Contributor

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:

Suggested change
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`

Copy link
Contributor Author

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

Copy link
Contributor Author

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

Copy link
Contributor

@igoristic igoristic Jan 25, 2021

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;

@chrisronline
Copy link
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
monitoring 982.7KB 982.8KB +97.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@chrisronline chrisronline merged commit 1750fc2 into elastic:master Jan 26, 2021
chrisronline added a commit to chrisronline/kibana that referenced this pull request Jan 26, 2021
* Fix cloud link

* Update link

* Fix tests

Co-authored-by: Kibana Machine <[email protected]>
chrisronline added a commit that referenced this pull request Jan 26, 2021
* Fix cloud link

* Update link

* Fix tests

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Kibana Machine <[email protected]>
chrisronline added a commit that referenced this pull request Jan 26, 2021
* Fix cloud link

* Update link

* Fix tests

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Kibana Machine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes review Team:Monitoring Stack Monitoring team v7.11.0 v7.12.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Security Solution] The link under Stack Monitoring tab navigates to a wrong webpage with 404 error
4 participants