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

ui: fix undefined table stats #89867

Merged
merged 1 commit into from
Oct 13, 2022
Merged

Conversation

maryliag
Copy link
Contributor

@maryliag maryliag commented Oct 12, 2022

Previously, if no value was being passed as totalCount, the table stats were showing an "undefined value". This commit as a default value as 0 for the total.

Fixes #89869

Before
Screen Shot 2022-10-11 at 8 43 04 PM

After
Screen Shot 2022-10-12 at 5 21 52 PM

Release note (bug fix): show correct value on table stats on UI, when there is no values to show.

@maryliag maryliag requested a review from a team October 12, 2022 21:44
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Previously, if no value was being passed as totalCount,
the table stats were showing an "undefined value". This
commit as a default value as 0 for the total.

Fixes cockroachdb#89869

Release note (bug fix): show correct value on table
stats on UI, when there is no values to show.
Copy link
Contributor

@j82w j82w left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @maryliag)

@maryliag
Copy link
Contributor Author

TFTR!
bors r+

@craig
Copy link
Contributor

craig bot commented Oct 13, 2022

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Oct 13, 2022

Build succeeded:

@craig craig bot merged commit c09bc70 into cockroachdb:master Oct 13, 2022
@maryliag maryliag deleted the fix-undefined branch October 13, 2022 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ui: insights are showing undefined on table stats
4 participants