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] Pass zero to numeral if standalone cluster node count is unknown #101704

Closed
wants to merge 2 commits into from

Conversation

igoristic
Copy link
Contributor

numeral library throws an error if passed an undefined value in SM clusters list https://kb-url:5601/app/monitoring#/home. The error is triggered if a standalone cluster (with undefined node count) shows up in the Stack Monitoring clusters list:
Screen Shot 2021-06-08 at 10 33 57 PM

This error breaks the SM ui

@igoristic igoristic added bug Fixes for quality problems that affect the customer experience Team:Monitoring Stack Monitoring team v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.14.0 labels Jun 9, 2021
@igoristic igoristic requested a review from a team June 9, 2021 02:38
@elasticmachine
Copy link
Contributor

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

@matschaffer
Copy link
Contributor

@elasticmachine merge upstream

@@ -132,7 +132,7 @@ const getColumns = (
'data-test-subj': 'nodesCount',
sortable: true,
render: (total, cluster) => (
<IsClusterSupported {...cluster}>{numeral(total).format('0,0')}</IsClusterSupported>
<IsClusterSupported {...cluster}>{numeral(total || 0).format('0,0')}</IsClusterSupported>
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 this could work, but it's sort of lying to you. I was thinking it might be better to swap in an "N/A" instead of inventing the zero.

@matschaffer matschaffer self-assigned this Jun 22, 2021
@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 730.9KB 730.9KB +3.0B

History

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

cc @matschaffer

@spalger spalger added v7.15.0 and removed v7.14.0 labels Jun 30, 2021
@mistic mistic added v7.16.0 and removed v7.15.0 labels Aug 18, 2021
@matschaffer
Copy link
Contributor

matschaffer commented Aug 30, 2021

Looks like #103718 already includes a version of this change. Closing out.

@matschaffer matschaffer removed their assignment Dec 1, 2021
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 release_note:skip Skip the PR/issue when compiling release notes Team:Monitoring Stack Monitoring team v7.16.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants