Skip to content

[Infra UI] Fixes Uptime link to display for pod and containers - #38125

Merged
simianhacker merged 6 commits into
elastic:masterfrom
simianhacker:fix-pod-container-uptime-link
Jun 7, 2019
Merged

simianhacker merged 6 commits into
elastic:masterfrom
simianhacker:fix-pod-container-uptime-link

Conversation

@simianhacker

@simianhacker simianhacker commented Jun 5, 2019 •

Copy link
Copy Markdown
Member

Summary

This PR fixes the Uptime link so it always displays for Docker and Kubernetes nodes. It was originally broken when we limited the link to only host.ip.

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

@elasticmachine

Copy link
Copy Markdown
Contributor

Pinging @elastic/infra-logs-ui

@simianhacker simianhacker changed the title Fixes uptime link to display for pod and containers [Infra UI] Fixes Uptime link to display for pod and containers Jun 5, 2019
@simianhacker simianhacker self-assigned this Jun 5, 2019
@elasticmachine

Copy link
Copy Markdown
Contributor

💔 Build Failed

Comment thread x-pack/plugins/infra/public/components/waffle/node_context_menu.tsx
@simianhacker
simianhacker marked this pull request as ready for review June 5, 2019 18:21
@simianhacker simianhacker added bug Fixes for quality problems that affect the customer experience review labels Jun 5, 2019
...(apmTracesUrl ? [apmTracesUrl] : []),
...(uptimeUrl ? [uptimeUrl] : []),
...(showLogsLink && nodeLogsMenuItem ? [nodeLogsMenuItem] : []),
nodeDetailMenuItem,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are these top two here using the same logic as before? I thought all 4 would now be ...(showX ? [X] : [])

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry... the && nodeLogsMenuItem is not suppose to be there. The nodeDetailMenuItem is always available. The original had a check for node.id which is always true so it didn't make sense to add a check for something that's never null.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ohhh makes sense 👍

@elasticmachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@elasticmachine

Copy link
Copy Markdown
Contributor

💔 Build Failed

@simianhacker

Copy link
Copy Markdown
Member Author

retest

@elasticmachine

Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@simianhacker
simianhacker merged commit 50dc13d into elastic:master Jun 7, 2019
simianhacker added a commit to simianhacker/kibana that referenced this pull request Jun 7, 2019
…ic#38125)

* Fixes uptime link to display for pod and containers

* Making code more readable

* Another round of readability changes

* removing extra truthy check
simianhacker added a commit to simianhacker/kibana that referenced this pull request Jun 7, 2019
…ic#38125)

* Fixes uptime link to display for pod and containers

* Making code more readable

* Another round of readability changes

* removing extra truthy check
simianhacker added a commit that referenced this pull request Jun 7, 2019
… (#38419)

* Fixes uptime link to display for pod and containers

* Making code more readable

* Another round of readability changes

* removing extra truthy check
simianhacker added a commit that referenced this pull request Jun 7, 2019
… (#38418)

* Fixes uptime link to display for pod and containers

* Making code more readable

* Another round of readability changes

* removing extra truthy check
@simianhacker
simianhacker deleted the fix-pod-container-uptime-link branch April 17, 2024 14:57
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request May 6, 2026
…ic#38125)

* Fixes uptime link to display for pod and containers

* Making code more readable

* Another round of readability changes

* removing extra truthy check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Fixes for quality problems that affect the customer experience Feature:Metrics UI Metrics UI feature review v7.2.0 v7.3.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants