Repository navigation
Conversation
There was a problem hiding this comment.
Code Review Agent Run #1ba5c9
Actionable Suggestions - 1
-
superset-frontend/src/explore/components/DataTablesPane/DataTablesPane.tsx - 1
- State Loss on Tab Switch · Line 202-205
Review Details
-
Files reviewed - 1 · Commit Range:
b74cf7e..39caa8d- superset-frontend/src/explore/components/DataTablesPane/DataTablesPane.tsx
-
Files skipped - 0
-
Tools
- Whispers (Secret Scanner) - ✔︎ Successful
- Detect-secrets (Secret Scanner) - ✔︎ Successful
Bito Usage Guide
Commands
Type the following command in the pull request comment and save the comment.
-
/review- Manually triggers a full AI review. -
/pause- Pauses automatic reviews on this pull request. -
/resume- Resumes automatic reviews. -
/resolve- Marks all Bito-posted review comments as resolved. -
/abort- Cancels all in-progress reviews.
Refer to the documentation for additional commands.
Configuration
This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at evan@preset.io.
Documentation & Help
Code Review Agent Run #78c2c7Actionable 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 |
Code Review Agent Run #0c0895Actionable 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 |
|
Superset uses Git pre-commit hooks courtesy of pre-commit. To install run the following: pip3 install -r requirements/development.txt Alternatively it is possible to run pre-commit by running pre-commit manually: pre-commit run --all-files |
✅ Deploy Preview for superset-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Done, I think everything will work now. |
Code Review Agent Run #2c15d3Actionable 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 |
|
@SBIN2010 is this PR ready to be merged ? |
|
Unfortunately, the tests did not pass. |
|
@KH-Coder865 Also @SBIN2010 tested this on the ephemeral env and it didn't seem to actually hide the first table - did rendering Converting this to draft for now, while it awaits touchups. |
Conditionally render Results tab content so inactive panes unmount, and make ResultsPane `isVisible` optional (visibility is managed by the parent tab container). Rebased on current master and reformatted to satisfy prettier. Closes apache#37772 Co-authored-by: Evan Rusackas <evan@rusackas.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
95c24a8 to
e60fbb8
Compare
|
I went ahead and adopted this to get it over the line, @KH-Coder865 (thanks for the original fix!). Rebased on current master and cleaned up the prettier indentation that was failing pre-commit, then flipped it back to ready for review. On the bot threads: the CodeAnt "actions is undefined" flag doesn't apply to the current diff (the props we actually drop from the Running CI now 🤞 |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #37777 +/- ##
=======================================
Coverage 63.95% 63.96%
=======================================
Files 2664 2664
Lines 146217 146230 +13
Branches 33731 33738 +7
=======================================
+ Hits 93512 93529 +17
+ Misses 50988 50986 -2
+ Partials 1717 1715 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Code Review Agent Run #1be105
Actionable Suggestions - 2
-
superset-frontend/src/explore/components/DataTablesPane/DataTablesPane.tsx - 1
- Missing setForceQuery prop causes functional regression · Line 191-191
-
superset-frontend/src/explore/components/DataTablesPane/components/useResultsPane.tsx - 1
- Type consistency defect · Line 184-184
Additional Suggestions - 2
-
superset-frontend/src/explore/components/DataTablesPane/DataTablesPane.tsx - 1
-
Inconsistent isVisible prop handling between Results and Samples panes · Line 192-192The `isVisible` prop was removed from ResultsPane but not from SamplesPane. While the hook defaults to `true` (isVisible ?? true), this changes behavior - ResultsPane content will now render even for inactive tabs rather than being hidden until tab activation. The SamplesPane keeps its explicit visibility check at line 216.
-
-
superset-frontend/src/explore/components/DataTablesPane/components/useResultsPane.tsx - 1
-
Missing test coverage for prop · Line 184-184Tests for `useResultsPane` do not verify `isVisible` prop handling. Per rule 6262, tests should assert actual behavior rather than just rendering. Add assertions that confirm the fallback value and visibility state are correctly propagated to `SingleQueryResultPane`.
-
Review Details
-
Files reviewed - 3 · Commit Range:
e60fbb8..e60fbb8- superset-frontend/src/explore/components/DataTablesPane/DataTablesPane.tsx
- superset-frontend/src/explore/components/DataTablesPane/components/useResultsPane.tsx
- superset-frontend/src/explore/components/DataTablesPane/types.ts
-
Files skipped - 0
-
Tools
- Whispers (Secret Scanner) - ✔︎ Successful
- Detect-secrets (Secret Scanner) - ✔︎ Successful
- Eslint (Linter) - ✔︎ Successful
Bito Usage Guide
Commands
Type the following command in the pull request comment and save the comment.
-
/review- Manually triggers a full AI review. -
/pause- Pauses automatic reviews on this pull request. -
/resume- Resumes automatic reviews. -
/resolve- Marks all Bito-posted review comments as resolved. -
/abort- Cancels all in-progress reviews.
Refer to the documentation for additional commands.
Configuration
This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at evan@preset.io.
Documentation & Help
The tab-visibility fix dropped setForceQuery from the useResultsPane call. The hook calls setForceQuery?.(false) after a forced query resolves, so without it the chart stays stuck in force-refresh mode. Restore the prop while keeping the conditional tab rendering that hides inactive result tables. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
@KH-Coder865 thanks for the fix! I pushed a small follow-up: the original change dropped |
There was a problem hiding this comment.
LGTM, though I touched it so I'd love a second opinion! The conditional rendering plus the restored setForceQuery seems right to me. Thanks @KH-Coder865, and please weigh in if you have feelings about anything I'm doing here as I try to get this one settled/merged :)
A mixed chart can be reconfigured to return fewer result panes than before. If a now-removed results tab (e.g. "Results 2") was active, the data panel rendered blank with a stale active key until the user manually reselected a valid tab. Reset the active key to the first results tab in that case. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Code Review Agent Run #994a9dActionable Suggestions - 0Additional Suggestions - 1
Review 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 |
Extract the stale-tab reset condition into getStaleResultsTabFallback and unit-test it. A full render test can't exercise this path because antd builds an invalid id-based selector for the space-containing 'results 2' tab key under jsdom when that tab is activated. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Bito Automatic Review Skipped – PR Already Merged |
Thank you. 😊 |
SUMMARY
This PR fixes a frontend issue in the Mixed chart “View as table” modal where multiple result tables remain visible when switching between tabs.
For mixed charts, multiple result panes (Results, Results 2, etc.) are rendered, but inactive panes were not being unmounted when the active tab changed. This caused previously rendered tables to remain visible and overlap in the UI.
The fix conditionally renders each tab’s content based on the active tab key, ensuring that only the selected tab’s table is visible at any time.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before: Switching between result tabs causes multiple tables to remain visible simultaneously.
After: Only the active tab’s table is rendered and visible.
TESTING INSTRUCTIONS
FIXES
ADDITIONAL INFORMATION
LABELS
viz:charts:table