Skip to content

Replacing NaN on coordinator to value n/a#22834

Merged
wendigo merged 1 commit intotrinodb:masterfrom
anilsomisetty:ui_nan
Jul 29, 2024
Merged

Replacing NaN on coordinator to value n/a#22834
wendigo merged 1 commit intotrinodb:masterfrom
anilsomisetty:ui_nan

Conversation

@anilsomisetty
Copy link
Copy Markdown
Contributor

Description

Currently on loading coordinator UI initially it shows NaN for some values because those values are still undefined yet this change will check for NaN and would return empty string in it's place making it more understandable that no value is available for those statistics yet.

Cherry pick from prestodb/presto#23285

Currently it shows

image

After this change it would look like

image

Release notes

( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text:

# Section
* Fix some things. ({issue}`issuenumber`)

@cla-bot cla-bot bot added the cla-signed label Jul 26, 2024
@github-actions github-actions bot added the ui Web UI label Jul 26, 2024
@wendigo
Copy link
Copy Markdown
Contributor

wendigo commented Jul 26, 2024

It looks weird tbh. I think that better option is to display "n/a" instead of NaN

@anilsomisetty anilsomisetty changed the title Replacing NaN on coordinator to empty value Replacing NaN on coordinator to value n/a Jul 27, 2024
@anilsomisetty
Copy link
Copy Markdown
Contributor Author

Hey @wendigo, made the change to display n/a instead of NAN, please review

image

@anilsomisetty anilsomisetty marked this pull request as ready for review July 28, 2024 05:13
@anilsomisetty anilsomisetty requested a review from wendigo July 28, 2024 05:13
@wendigo wendigo merged commit 0ce6c29 into trinodb:master Jul 29, 2024
@wendigo
Copy link
Copy Markdown
Contributor

wendigo commented Jul 29, 2024

I've amended the commit message before push. Thanks @anilsomisetty

@github-actions github-actions bot added this to the 454 milestone Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants