fix(dashboard): row limit warning missing for non-table charts#39911
Open
fix(dashboard): row limit warning missing for non-table charts#39911
Conversation
Boolean short-circuit on `isTableChart && secondQueryResponse?.data?.[0]?.rowcount` returned `false` for non-table viz types; `false != null` is `true`, so `Number(false) = 0` became `sqlRowCount` and the warning never fired. Also widens the table check to include AG Grid table so server-paginated AG Grid charts read the rowcount sidecar query like the regular table.
Contributor
Code Review Agent Run #0fb5feActionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SUMMARY
Boolean short-circuit in
SliceHeadermakescountFromSecondQueryresolve tofalsefor any non-table viz, andfalse != nullistrue, soNumber(false) = 0overrides the real rowcount fallback — every non-table chart loses the row-limit warning. Bug introduced in #37112.Also widens the viz_type check to include
ag-grid-tableso server-paginated AG Grid charts read the rowcount sidecar query (same path the regular table uses). Same widening applied inChartPills(explore row-count label) andChart.tsx(CSV streaming threshold).BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
After:
TESTING INSTRUCTIONS
row_limit=10against a dataset with >10 rows.ADDITIONAL INFORMATION