Skip to content

ui: fix undefined table stats#89867

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
maryliag:fix-undefined
Oct 13, 2022
Merged

ui: fix undefined table stats#89867
craig[bot] merged 1 commit intocockroachdb:masterfrom
maryliag:fix-undefined

Conversation

@maryliag
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

TFTR!
bors r+

@craig
Copy link
Copy Markdown
Contributor

craig Bot commented Oct 13, 2022

Build failed (retrying...):

@craig
Copy link
Copy Markdown
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