Repository navigation
Conversation
Code Review Agent Run #851990Actionable Suggestions - 0Additional Suggestions - 4
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 |
|
This recreates #43268 after its head repository was removed. The implementation and review fixes are unchanged, with the branch updated onto the latest |
✅ Deploy Preview for superset-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
The flagged issue is correct. In To resolve this, you should update Would you like me to implement this fix and check the rest of the PR comments for other issues? superset/mcp_service/chart/plugins/interactive_pivot.py |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #43480 +/- ##
==========================================
+ Coverage 78.92% 79.01% +0.08%
==========================================
Files 2878 2880 +2
Lines 165105 165934 +829
Branches 38148 38323 +175
==========================================
+ Hits 130314 131115 +801
+ Misses 32341 32330 -11
- Partials 2450 2489 +39
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:
|
gabotorresruiz
left a comment
There was a problem hiding this comment.
Thanks for recreating this cleanly after the fork mishap, Amin. I verified the recreation rather than assuming it: I diffed all 20 changed files at f41ad6d against the content I approved on #43268 at 895af43, and the PR delta is line for line identical at both bases; the only differences are master drift the merge brought in. The approved history is preserved in the branch, the body carries the corrected time-comparison notes, tests/unit_tests/mcp_service/chart passes locally at this head (1,311 tests), and CI is green. Same content, same verdict. LGTM.
Code Review Agent Run #e6ddeeActionable 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 #a0d8f3Actionable 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 |
gabotorresruiz
left a comment
There was a problem hiding this comment.
Re-verified the two commits since my last approval, Amin, and this still looks great. The de-vendoring keeps the flag contract intact (the constant rename does not change the AG_GRID_PIVOT_TABLE_ENABLED value, and I confirmed no stale references remain). The new grouping validation and the granularity_sqla plus temporal_columns_lookup emission match what the target plugin's buildQuery actually consults, so the time grain now applies to MCP generated charts without waiting for Explore hydration, which is strictly better than before. The chart suite passes locally at this head (1,315 tests) and CI is green. One small non-blocking nit inline. LGTM, again.
There was a problem hiding this comment.
Code Review Agent Run #d9297b
Actionable Suggestions - 1
-
superset/mcp_service/chart/schemas.py - 1
- min_length vs allow_empty contradiction · Line 1207-1216
Additional Suggestions - 1
-
superset/mcp_service/chart/schemas.py - 1
-
model_validator misses comparison_period alias · Line 1227-1239The `normalize_comparison_period` model_validator only inspects `data["time_compare"]`. Since the Field's `validation_alias` accepts both `comparison_period` and `time_compare`, a list passed as `comparison_period` bypasses the single-item check and reaches the field validator, which expects a `str | None`. Normalize both keys or restrict the alias.
-
Review Details
-
Files reviewed - 6 · Commit Range:
c60d5da..ee9f3f0- superset/mcp_service/chart/plugins/interactive_pivot.py
- tests/unit_tests/mcp_service/chart/test_interactive_pivot_chart.py
- docs/docs/using-superset/using-ai-with-superset.mdx
- superset/mcp_service/chart/resources/chart_configs.py
- superset/mcp_service/chart/schemas.py
- superset/mcp_service/chart/tool/get_chart_type_schema.py
-
Files skipped - 0
-
Tools
- MyPy (Static Code Analysis) - ✔︎ Successful
- Astral Ruff (Static Code Analysis) - ✔︎ Successful
- 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 an incremental AI Review. -
/review full- 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 [email protected].
Documentation & Help
Code Review Agent Run #3f92d2Actionable 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 |
SUMMARY
Recreates and supersedes closed PR #43268 after its head repository was removed. This PR is explicitly based on
apache/superset:master.Adds a distinct, feature-gated MCP adapter for an extension-provided
ag-grid-pivot-tablevisualization. This deliberately does not alias Interactive Pivot to the built-inpivot_table_v2adapter.The new
interactive_pivotschema and plugin cover:pivot_table_statefor the Rows, Column Labels, and Values side-panel bucketscomparison_periodpluscomparison_type(values,difference,percentage, orratio), mapped to the visualization's nativetime_comparearrayAG_GRID_PIVOT_TABLE_ENABLEDfeature flag plus the existing MCP plugin filter, so deployments without the extension do not advertise an unavailable visualizationThis implements SC-113786 while keeping the AG Grid visualization distinct from the built-in Pivot Table V2.
AG_GRID_PIVOT_TABLE_ENABLEDis an extension availability contract rather than a new core rollout flag. Core deployments leave the adapter unavailable; deployments that ship the visualization define and enable the flag through their normal feature-flag configuration.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Not applicable. This changes MCP schemas and form-data generation; it does not add or modify UI components.
TESTING INSTRUCTIONS
AG_GRID_PIVOT_TABLE_ENABLED.get_chart_type_schema("interactive_pivot")and verify the schema and examples are returned.comparison_period: "1 year ago", andcomparison_type: "percentage".viz_type=ag-grid-pivot-table,time_compareis["1 year ago"], and the persisted grid state populates the AG Grid side-panel buckets.DISABLED_CHART_TYPErather than offering a broken chart.Automated validation run:
ADDITIONAL INFORMATION
AG_GRID_PIVOT_TABLE_ENABLEDavailability contractAI behavior / evaluation evidence
This is a deterministic schema, validation, and form-data mapping change. Unit tests cover schema examples, exact native viz resolution, feature-gated availability, comparison validation and round trips, side-panel state, update/preview preservation, capabilities, and generated naming. No model prompt, routing, retrieval, or sampling behavior changes.
Cost and latency
No additional model calls or network requests are introduced. Availability checks are in-process feature-flag lookups; chart mapping remains deterministic and local.