fix(charts): show non-filterable columns in metric section for table …#39524
fix(charts): show non-filterable columns in metric section for table …#39524massucattoj wants to merge 8 commits into
Conversation
Code Review Agent Run #fcce81Actionable 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 |
5dd1d49 to
d0a3fbc
Compare
Code Review Agent Run #fd2c1aActionable 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 |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #39524 +/- ##
==========================================
+ Coverage 64.20% 64.21% +0.01%
==========================================
Files 2592 2592
Lines 139232 139223 -9
Branches 32327 32323 -4
==========================================
+ Hits 89389 89403 +14
+ Misses 48308 48285 -23
Partials 1535 1535
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
msyavuz
left a comment
There was a problem hiding this comment.
Looks fine to me but @amaannawab923 might have an insight here on why this exists. Also some tests would be nice
Code Review Agent Run #e3b9caActionable 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 #ecdba7Actionable 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 |
|
Looks like this needs a rebase. No word from @amaannawab923 - should we merge this when rebased, @msyavuz ? |
|
Sorry for the delay, @rusackas. The filterable filter in mapStateToProps is legacy from pre-monorepo days (back when chart plugins lived in their own superset-ui repo) it incorrectly conflated "filterable" with "usable as a metric/dimension." AG Grid likely inherited it because it was built on top of the Table plugin. Fix is correct , LGTM to merge once rebased. cc: @msyavuz |
…columns-metric-display # Conflicts: # superset-frontend/plugins/plugin-chart-table/test/controlPanel.test.tsx
|
Bito Automatic Review Failed - Technical Failure |
SUMMARY
Columns with
Is filterableset toNOwere not displayed in the metric section of Table, AG Grid Table, and Handlebars charts, even though they were successfully added to the chart config.The root cause was that the metrics control's
mapStateToPropsincorrectly filtered columns by thefilterableproperty. Thefilterableflag should only control whether a column appears in filter controls(e.g., Filter Bar), not whether it can be used as a metric or dimension.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before: Dragging a non-filterable column into the Metrics section adds it to the form data, but the metric pill is not rendered — the Metrics area appears empty even though the chart recognizes the metric.

After: Non-filterable columns display correctly as metric pills in the Metrics section after being added.

TESTING INSTRUCTIONS
birth_names)num)SUM(num)) and click SaveADDITIONAL INFORMATION