-
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] Pass zero to numeral if standalone cluster node count is unknown #101704
Conversation
Pinging @elastic/stack-monitoring (Team:Monitoring) |
@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> |
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 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.
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: cc @matschaffer |
Looks like #103718 already includes a version of this change. Closing out. |
numeral
library throws an error if passed an undefined value in SM clusters listhttps://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:This error breaks the SM ui