Repository navigation
feat(mcp): add Big Number chart type support to MCP service - #38403
Conversation
Code Review Agent Run #7504d7Actionable 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 |
✅ Deploy Preview for superset-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #38403 +/- ##
==========================================
- Coverage 64.47% 64.44% -0.04%
==========================================
Files 2536 2536
Lines 130912 131004 +92
Branches 30371 30397 +26
==========================================
+ Hits 84400 84419 +19
- Misses 45049 45122 +73
Partials 1463 1463
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:
|
Code Review Agent Run #fc10c6Actionable 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 #085c60Actionable 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 |
There was a problem hiding this comment.
Code Review Agent Run #cb929c
Actionable Suggestions - 2
-
superset/mcp_service/chart/schemas.py - 1
- Missing validation logic · Line 593-594
-
superset/mcp_service/chart/chart_utils.py - 1
- Logic Inconsistency in Viz Type Resolution · Line 678-680
Review Details
-
Files reviewed - 5 · Commit Range:
5e40f02..057055a- superset/mcp_service/app.py
- superset/mcp_service/chart/chart_utils.py
- superset/mcp_service/chart/schemas.py
- superset/mcp_service/chart/validation/schema_validator.py
- tests/unit_tests/mcp_service/chart/test_big_number_chart.py
-
Files skipped - 0
-
Tools
- Whispers (Secret Scanner) - ✔︎ Successful
- Detect-secrets (Secret Scanner) - ✔︎ Successful
- MyPy (Static Code Analysis) - ✔︎ Successful
- Astral Ruff (Static Code Analysis) - ✔︎ 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 [email protected].
Documentation & Help
Code Review Agent Run #744999Actionable Suggestions - 0Additional Suggestions - 3
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 |
sadpandajoe
left a comment
There was a problem hiding this comment.
PR Review: feat(mcp): add Big Number chart type support
Nice work extending the MCP service to support big_number charts. The implementation follows existing patterns well, the _resolve_viz_type DRY extraction is a good refactor, and test coverage is comprehensive. CI is green.
Two items worth addressing:
[minor] _resolve_viz_type inconsistent with map_big_number_config
_resolve_viz_type (chart_utils.py:645-646) checks only show_trendline:
return "big_number" if show_trendline else "big_number_total"But map_big_number_config (chart_utils.py:570-574) checks both show_trendline and temporal_column. If _resolve_viz_type is ever called on an unvalidated config, it would return "big_number" even without a temporal column. Suggest:
elif chart_type == "big_number":
show_trendline = getattr(config, "show_trendline", False)
temporal_column = getattr(config, "temporal_column", None)
return "big_number" if show_trendline and temporal_column else "big_number_total"[minor] header_only field is redundant
header_only defaults to True, gets overridden to False by validate_trendline_fields when show_trendline=True, but is never read in map_big_number_config — viz_type is determined entirely by show_trendline and temporal_column. This means a user can set header_only=False, show_trendline=False with no effect, which is a confusing API surface. Consider either removing header_only (it's derivable) or adding validation that header_only=False requires show_trendline=True.
Overall: 7.5/10 — solid implementation, these are minor issues that would improve robustness.
sadpandajoe
left a comment
There was a problem hiding this comment.
Correction on line references from my earlier comment (I cited diff-relative numbers instead of actual file lines):
[minor] _resolve_viz_type inconsistent with map_big_number_config
_resolve_viz_type at chart_utils.py:680 checks only show_trendline:
return "big_number" if show_trendline else "big_number_total"But map_big_number_config at chart_utils.py:576 checks both:
if config.show_trendline and config.temporal_column:If _resolve_viz_type is called on an unvalidated config, it would return "big_number" without a temporal column. Suggest aligning at chart_utils.py:678-680:
elif chart_type == "big_number":
show_trendline = getattr(config, "show_trendline", False)
temporal_column = getattr(config, "temporal_column", None)
return "big_number" if show_trendline and temporal_column else "big_number_total"[minor] header_only field is redundant
Defined at schemas.py:531, overridden at schemas.py:580 when show_trendline=True, but never read in map_big_number_config (chart_utils.py:573-620). viz_type is determined entirely by show_trendline and temporal_column. Consider removing it or adding validation that header_only=False requires show_trendline=True.
Code Review Agent Run #e09ccaActionable 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 #ba54caActionable 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 |
Sequence DiagramThis diagram shows how the MCP service now validates and maps big number chart configurations into Superset form data to create either a standalone big number or a big number with trendline. sequenceDiagram
participant Client
participant MCPService
participant Superset
Client->>MCPService: generate_chart with big_number config
MCPService->>MCPService: Pre-validate chart_type and big number metric
alt Trendline requested
MCPService->>MCPService: Map to form_data with viz_type big_number and granularity
else Header only
MCPService->>MCPService: Map to form_data with viz_type big_number_total
end
MCPService->>Superset: Submit form_data to create chart
Superset-->>MCPService: Return chart id and metadata
MCPService-->>Client: Return chart link and semantics
Generated by CodeAnt AI |
There was a problem hiding this comment.
Code Review Agent Run #f6f0f7
Actionable Suggestions - 1
-
superset/mcp_service/chart/chart_utils.py - 1
- Incorrect chart name when aggregate is None · Line 979-981
Additional Suggestions - 6
-
superset/mcp_service/chart/schemas.py - 1
-
Type annotation inconsistency · Line 734-734The filters field in BigNumberChartConfig uses lowercase 'list' while all other chart configs in this file use 'List' from the typing imports. For consistency with the existing codebase patterns, update to 'List[FilterConfig]'.
Code suggestion
@@ -737,3 +737,3 @@ - ) - filters: list[FilterConfig] | None = Field( - None, + ) + filters: List[FilterConfig] | None = Field( + None,
-
-
tests/unit_tests/mcp_service/chart/test_big_number_chart.py - 3
-
Weak capability test assertions · Line 322-338The analyze_chart_capabilities tests only check that result is not None, but do not assert the actual capability values. Per BITO rule [6262], tests claiming to verify behavior logic must directly validate the computed values. Add assertions like: assert result.supports_interaction is False; assert result.optimal_formats == ["url", "ascii", "table"]
-
Weak semantic test assertions · Line 344-351The test_big_number_total_semantics method only checks that result is not None and primary_insight is non-empty, but does not assert the specific insight content. Per BITO rule [6262], tests claiming to verify behavior logic must directly validate the computed values. Add: assert result.primary_insight == "Highlights a single key metric value as a prominent number"
-
Weak semantic test assertions · Line 353-361The test_big_number_trendline_semantics method only checks that result is not None and primary_insight is non-empty, but does not assert the specific insight content. Per BITO rule [6262], tests claiming to verify behavior logic must directly validate the computed values. Add: assert result.primary_insight == "Displays a key metric with a trendline showing how the value changes over time"
-
-
superset/mcp_service/chart/chart_utils.py - 1
-
Inconsistent filter access pattern · Line 1026-1026For consistency with other chart types in generate_chart_name, use config.filters directly instead of getattr(config, 'filters', None).
Code suggestion
@@ -1025,1 +1025,1 @@ - context = _summarize_filters(getattr(config, "filters", None)) + context = _summarize_filters(config.filters)
-
-
superset/mcp_service/chart/validation/schema_validator.py - 1
-
Unreachable return statement · Line 180-180The 'return True, None' statement is unreachable because the preceding 'return chart_type_validators[chart_type](config)' always executes first. This dead code should be removed to clean up the _pre_validate_chart_type method.
Code suggestion
@@ -178,4 +178,2 @@ - return chart_type_validators[chart_type](config) - - return True, None - + return chart_type_validators[chart_type](config) +
-
Review Details
-
Files reviewed - 5 · Commit Range:
f5672fa..645a3d0- superset/mcp_service/app.py
- superset/mcp_service/chart/chart_utils.py
- superset/mcp_service/chart/schemas.py
- superset/mcp_service/chart/validation/schema_validator.py
- tests/unit_tests/mcp_service/chart/test_big_number_chart.py
-
Files skipped - 0
-
Tools
- Whispers (Secret Scanner) - ✔︎ Successful
- Detect-secrets (Secret Scanner) - ✔︎ Successful
- MyPy (Static Code Analysis) - ✔︎ Successful
- Astral Ruff (Static Code Analysis) - ✔︎ 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 [email protected].
Documentation & Help
Code Review Agent Run #be51e4Actionable 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 |
Docker build failed with HTML error page (rate limit/network), not code.
When aggregate is None, the fallback f-string produced "None(col)" which is misleading. Now falls back to just the column name.
Convert time_range assignment to walrus operator pattern as required by the auto-walrus pre-commit hook.
Removes dead code `return True, None` after an existing return statement in `_pre_validate_chart_type`, as flagged by @kgabryje in code review.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
…nd temporal_column validation - Update instructions to note temporal_column is required with show_trendline=True - Write show_trend_line=True to form_data so Superset's frontend plugin explicitly enables the trendline - Add identifier pattern validation to temporal_column matching ColumnRef's pattern constraint - Use parentheses instead of en-dash in big number chart name fragment to avoid collision with generate_chart_name's context separator
Break the 158-char big number trendline instruction into two lines to satisfy the 88-char ruff line length limit.
- Add validation that compare_lag requires show_trendline=True - Add metric type validation in pre-validator (reject non-dict) - Strengthen filter test with operator/comparator assertions - Strengthen semantics test with content-specific assertions - Add tests for compare_lag and invalid metric type
…e test assertions - Remove time_range and filters additions from map_pie_config that don't belong in Big Number PR (will be addressed separately) - Replace weak `assert result is not None` with specific capability assertions in test_big_number_chart.py
Add temporal type validation before mapping Big Number trendline config. Non-temporal columns (e.g., integer year fields) would previously pass through and fail at query time with DATE_TRUNC errors. Now uses the same is_column_truly_temporal guard used by XY/mixed mappings.
Replace string-literal return type annotations with typing.Self in BigNumberChartConfig model validators, following Pydantic v2 best practices for model_validator(mode="after") methods.
Big Number charts use form_data["metric"] (singular) instead of form_data["metrics"] (plural). The compile check and preview utils were only looking at "metrics", resulting in "Empty query?" errors when trying to generate_chart with big_number config. Also adds granularity_sqla to query columns for Big Number trendline charts so the compile check can validate the temporal column.
Code Review Agent Run #5aeec4Actionable Suggestions - 0Additional Suggestions - 2
Filtered by Review RulesBito filtered these suggestions based on rules created automatically for your feedback. Manage rules.
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 |
…8403) Co-authored-by: Claude Opus 4.6 <[email protected]>
Co-authored-by: Claude Opus 4.6 <[email protected]> (cherry picked from commit 4245720)
|
🎪 ⚡ showtime-trigger-start |
…8403) Co-authored-by: Claude Opus 4.6 <[email protected]>
* fix: SQL Lab tab content padding (apache#38561) (cherry picked from commit bde48e5) * chore: CHANGELOG.md and UPDATING.md for 6.1.0 RC1 * fix(i18n): correct variable name for translated SQL Lab query message (apache#38494) Signed-off-by: hainenber <[email protected]> Co-authored-by: Evan Rusackas <[email protected]> (cherry picked from commit 31754a3) * fix(mcp): wrap LoggingMiddleware.on_message event_logger in try/except (apache#38560) (cherry picked from commit 6d7cfac) * fix(mcp): honor target_tab parameter when adding charts to tabbed dashboards (apache#38409) Co-authored-by: Claude Opus 4.6 <[email protected]> (cherry picked from commit 3bb9704) * fix(charts): set reasonable default y-axis title margin to prevent label overlap (apache#38389) Co-authored-by: Claude Opus 4.6 <[email protected]> (cherry picked from commit fe7f220) * fix(ag-grid): persist AG Grid column filters in explore permalinks (apache#38393) (cherry picked from commit 9215eb5) * fix(matrixify): Matrixify to not override slice id (apache#38515) Co-authored-by: Evan Rusackas <[email protected]> (cherry picked from commit 27197fa) * fix: support nested function calls in cache_key_wrapper (apache#38569) (cherry picked from commit a9def2f) * fix(embedded): prevent double RLS application in virtual datasets (apache#37395) (cherry picked from commit 09e9c6a) * fix: add embedded box sizing rule for layout (apache#38351) Co-authored-by: Joe Li <[email protected]> (cherry picked from commit 7f476a7) * fix: add parent_slice_id for multilayer charts to embed (apache#38243) (cherry picked from commit 95f61bd) * fix(mcp): replace uuid with url and changed_on_humanized in default list columns (apache#38566) Co-authored-by: Claude Opus 4.6 <[email protected]> (cherry picked from commit fc156d0) * fix(mcp): Improve validation errors and field aliases to reduce failed LLM tool calls (apache#38625) (cherry picked from commit d91b968) * fix(explore/dashboard): fix CSV/Excel downloads for legacy chart types (apache#38513) Co-authored-by: Diego Pucci <[email protected]> Co-authored-by: Claude Opus 4.6 <[email protected]> Co-authored-by: codeant-ai-for-open-source[bot] <244253245+codeant-ai-for-open-source[bot]@users.noreply.github.com> (cherry picked from commit 9516d1a) * fix(deckgl): polygon chart not rendering when boundary column contains nested geometry JSON (apache#38595) (cherry picked from commit 32a64d0) * fix(mcp): Support form_data_key without chart identifier for unsaved charts (apache#38628) (cherry picked from commit af5e05d) * fix(mcp): fix crashes in list tools, dataset info, chart preview, and add owner/favorite filters (apache#38277) Co-authored-by: Claude Opus 4.6 <[email protected]> (cherry picked from commit d5cf77c) * fix(extensions): fix gitignore template and bump version (apache#38614) (cherry picked from commit f538326) * fix(editor): implement missing methods, fix cursor position clearing (apache#38603) (cherry picked from commit 1867336) * fix(timeshiftcolor): Time shift color to match the original color (apache#38473) (cherry picked from commit f6106cd) * fix(ag-grid-table): fix AND filter conditions not applied (apache#38369) (cherry picked from commit ca2d26a) * fix(world-map): add fallback fill color when colorFn returns null (apache#38602) Co-authored-by: Claude Opus 4.6 <[email protected]> (cherry picked from commit ba7271b) * fix(mcp): return all statement results for multi-statement SQL queries (apache#38388) Co-authored-by: Claude Opus 4.6 <[email protected]> (cherry picked from commit b6c3b3e) * style(metadata-bar): use bold font weight for metadata bar title (apache#38608) (cherry picked from commit e8061a9) * fix(ag-grid-table): fix failing buildQuery test expectation (apache#38636) (cherry picked from commit 6e7d6a8) * fix(docs): use absolute API doc links in developer docs (apache#38649) (cherry picked from commit cc066b3) * fix(FilterBar): reduce padded space between filter header and first filter (apache#38646) Signed-off-by: hainenber <[email protected]> (cherry picked from commit afe093f) * fix(embedded): default to light theme instead of system preference (apache#38644) Co-authored-by: Claude Opus 4.6 <[email protected]> (cherry picked from commit aa5adb0) * fix(map-box): make opacity, lon, lat, and zoom controls functional (apache#38374) Co-authored-by: Claude Opus 4.6 <[email protected]> Co-authored-by: codeant-ai-for-open-source[bot] <244253245+codeant-ai-for-open-source[bot]@users.noreply.github.com> (cherry picked from commit 96705c1) * fix(ci): allow docs testing to run despite absence of db diagnostics data (apache#38655) Signed-off-by: hainenber <[email protected]> (cherry picked from commit ca403dc) * feat(mcp): auto-generate dashboard title from chart names when omitted (apache#38410) Co-authored-by: Claude Opus 4.6 <[email protected]> * feat(mcp): implement RBAC permission checking for MCP tools (apache#38407) Co-authored-by: Claude Opus 4.6 <[email protected]> * docs: move MCP deployment guide to admin docs, add user-facing AI guide (apache#38585) * fix(mcp): extract role names as strings in UserInfo serialization (apache#38612) * refactor(mcp): use serialize_user_object in get_instance_info (apache#38613) * feat(mcp): add extra_form_data param to get_chart_data for dashboard filters (apache#38531) Co-authored-by: Claude Opus 4.6 <[email protected]> * feat(mcp): add BM25 tool search transform to reduce initial context size (apache#38562) Co-authored-by: Claude Opus 4.6 <[email protected]> * feat(mcp): add save_sql_query tool for SQL Lab saved queries (apache#38414) Co-authored-by: Claude Opus 4.6 <[email protected]> * feat(mcp): Add tool annotations for MCP directory compliance (apache#38641) * feat: apply RLS conservatively (apache#38683) * fix(dashboard): overload issue in dashboard export to excel (apache#29418) Co-authored-by: Evan Rusackas <[email protected]> Co-authored-by: Claude <[email protected]> Co-authored-by: Claude Sonnet 4.6 <[email protected]> * fix: Simplify extension folder name (apache#38690) * fix(map-box): prevent clusters from being smaller than individual points (apache#38458) Co-authored-by: Claude Opus 4.6 <[email protected]> * fix(tests): restore 100% TypeScript coverage for core packages (apache#38682) Co-authored-by: Claude Code <[email protected]> Co-authored-by: Joe Li <[email protected]> * fix(mcp): expose individual tool parameters when MCP_PARSE_REQUEST_ENABLED=False (apache#38714) Co-authored-by: Claude Opus 4.6 <[email protected]> * fix: Row limit support for chart mcp tools (apache#38717) * fix(chart): prevent chart list from failing when a datasource lacks explore_url (apache#38721) * fix(dashboard): use inline theme data to prevent 403 for non-admin users (apache#38384) Co-authored-by: Claude Opus 4.6 <[email protected]> * fix(sql): remove WHERE 1 = 1 when temporal filter has "No filter" selected (apache#38704) * fix: Add aliases and groupby list to chart schemas (apache#38740) * fix(mcp): Chart schema followups - DRY extraction, template fix, alias and test gaps (apache#38746) Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]> * fix(firebolt): Firebolt SQL entered with EXCLUDE is rewritten to EXCEPT (apache#38742) * fix(theme): ensure colorLink follows colorPrimary when not explicitly set (apache#38517) * fix(dashboard): correct tab underline width for newly added dashboard tabs. (apache#38524) * fix(theme): persist local theme id so "Local" tag remains after navigation (apache#38527) * fix(timeseries-table): enable proper column sorting in timeseries-table chart (apache#38579) * fix(button): Theming configurations for button elements is not consistent (apache#38604) * fix(mcp): fix dashboard slug null and execute_sql encoding error (apache#38710) * fix(mcp): use correct permission class for save_sql_query tool (apache#38764) Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]> * fix(reports): validate nativeFilters on report create/update and deactivate on dashboard filter deletion (apache#38715) * fix(mcp): fix detached Slice instance error in chart/dashboard serialization (apache#38767) Co-authored-by: Claude Opus 4.6 <[email protected]> * feat(mcp): add horizontal bar chart orientation support to generate_chart (apache#38390) Co-authored-by: Claude Opus 4.6 <[email protected]> * fix(mcp): normalize call_tool proxy arguments to prevent encoding TypeError (apache#38775) (cherry picked from commit 0d57219) * fix(mcp): convert adhoc filters to QueryObject format before query compilation (apache#38774) (cherry picked from commit 44c2c76) * fix(sec): remove compromised Trivy actions (apache#38780) Signed-off-by: hainenber <[email protected]> (cherry picked from commit 7004369) * feat(sec): harden GHA ref by using its SHA ID to prevent accidental usage of compromised actions (apache#38782) Signed-off-by: hainenber <[email protected]> (cherry picked from commit 8382391) * fix(table): improve conditional formatting text contrast (apache#38705) (cherry picked from commit 02ffb52) * fix(DropdownContainer): add fresh to avoid stale data (apache#38702) (cherry picked from commit cc34d19) * feat(matrixify): Revamp control panel (apache#38519) * fix(AlertsReports): validate anchor_list is a list (apache#38723) (cherry picked from commit 100ad7d) * fix(MainNav): display all menu items on smaller screens (apache#38732) (cherry picked from commit fdcb942) * fix(explore): display actual data type instead of "column" in column tooltip (apache#38554) (cherry picked from commit e67bc5b) * fix(Matrixify): readd matrixify_enable guard missing (apache#38759) (cherry picked from commit 7222327) * fix(mcp): prevent encoding errors and fix tool bugs on MCP client transports (apache#38786) (cherry picked from commit ed3c528) * fix(sqllab): add authorization check to query cost estimation (apache#38648) Co-authored-by: Claude Sonnet 4.6 <[email protected]> (cherry picked from commit 962abf6) * fix(keys): Unsafe dict access in get_native_filters_params() crashes execution (apache#38272) (cherry picked from commit 89d1b80) * fix(mcp): fix generate_dashboard cross-session SQLAlchemy error (apache#38827) (cherry picked from commit 09594b3) * fix(sqllab): FilterText does not apply accordingly (apache#38813) (cherry picked from commit 7c9d75b) * fix(extensions-cli): remove publisher prefix from bundle filename (apache#38823) (cherry picked from commit 6852349) * feat(mcp): add Handlebars chart type support to MCP service (apache#38402) Co-authored-by: Claude Opus 4.6 <[email protected]> (cherry picked from commit c596df9) * fix(report): raise warning when filter type not recognized (apache#38676) (cherry picked from commit 37c4a36) * fix(models): correct TabState.latest_query_id column type to match FK target (apache#38837) Co-authored-by: Claude Opus 4.6 <[email protected]> (cherry picked from commit 4b26f8c) * fix(embedded-sdk): wire `hideTab` to actually hide the dashboard tab (apache#38846) (cherry picked from commit 3fb903f) * fix(echarts): prevent plain legend clipping in dashboards (apache#38675) (cherry picked from commit 12aca72) * fix(datasource): align access validation in legacy views (apache#38647) Co-authored-by: Claude Sonnet 4.6 <[email protected]> Co-authored-by: Daniel Vaz Gaspar <[email protected]> (cherry picked from commit a93e319) * fix(dashboard): larger JSON metadata editor for better editing UX (apache#38728) (apache#38745) (cherry picked from commit 403f4ad) * fix(ci): install missing `msgcat` used for Babel translation update (apache#38830) Signed-off-by: hainenber <[email protected]> (cherry picked from commit 3506773) * fix(mcp): detect unknown chart config fields and suggest correct ones (apache#38848) Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]> (cherry picked from commit 16f5a2a) * fix(mcp): add permission checks to generate_dashboard and update_chart tools (apache#38845) (cherry picked from commit 23a5e95) * fix(echart): multiple time shift line pattern (apache#38866) (cherry picked from commit e045f49) * fix(sqllab): inactive leftbar selector on empty state (apache#38833) (cherry picked from commit cfa1aba) * fix(mcp): add try/except around DAO re-fetch to handle session errors in multi-tenant (apache#38859) (cherry picked from commit 6dc3d7a) * fix: type probing (apache#38889) (cherry picked from commit 8983ede) * fix(dataset): add missing currency_code_column to DatasetPostSchema (apache#38853) (cherry picked from commit 9c288d6) * fix(reports): PUT with empty recipients list does not persist the change (apache#38711) (cherry picked from commit 40387d5) * fix(dataset): add email field to owners_data for Chart Explore path (apache#38836) (cherry picked from commit ac96f46) * fix(sqllab): long cell content overflooding (apache#38855) (cherry picked from commit 65eae02) * fix(explore): migrate from window.history to React Router history API (apache#38887) (cherry picked from commit fc705d9) * fix(Timeseries): dedup x axis labels (apache#38733) (cherry picked from commit f832f9b) * fix(sqllab): invalid treeview folder expansion (apache#38897) (cherry picked from commit a5d2324) * fix(mcp): remove @parse_request decorator for cleaner tool schemas (apache#38918) (cherry picked from commit d1903af) * fix(mcp): prevent GRID_ID injection into ROOT_ID on tabbed dashboards (apache#38890) Co-authored-by: Claude Opus 4.6 <[email protected]> (cherry picked from commit aa1a695) * fix(mcp): validate dataset exists in generate_explore_link before generating URL (apache#38951) (cherry picked from commit 89f7e5e) * fix(select): ensure filter dropdown matches input field width (apache#38886) (cherry picked from commit 41d401a) * fix(mcp): prevent PendingRollbackError from poisoned sessions after SSL drops (apache#38934) Co-authored-by: Claude Opus 4.6 <[email protected]> (cherry picked from commit d331a04) * feat(mcp): support saved metrics from datasets in chart generation (apache#38955) Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]> (cherry picked from commit 15bab22) * fix(mcp): enforce MAX_PAGE_SIZE limit on list tools to prevent oversized responses (apache#38959) (cherry picked from commit 2c9cf0b) * fix(charts): add X Axis Number Format control for numeric X-axis columns (apache#38809) Co-authored-by: codeant-ai-for-open-source[bot] <244253245+codeant-ai-for-open-source[bot]@users.noreply.github.com> (cherry picked from commit e0a0a22) * fix(pivot-table): safely cast numeric strings to numbers for date formatting (apache#38953) Co-authored-by: Claude Sonnet 4.6 <[email protected]> (cherry picked from commit f1cd1ae) * fix(AlteredSliceTag): not display undefined filter value for chart change record (apache#38883) Signed-off-by: hainenber <[email protected]> (cherry picked from commit 11f2140) * fix(echarts): adapt y-axis ticks and padding for compact timeseries charts (apache#38673) (cherry picked from commit f0b20dc) * feat(mcp): add Big Number chart type support to MCP service (apache#38403) Co-authored-by: Claude Opus 4.6 <[email protected]> (cherry picked from commit 4245720) * fix(mcp): add TEMPORAL_RANGE filter for temporal x-axis in generate_chart (apache#38978) (cherry picked from commit c37a3ec) * fix(mcp): batch fix for execute_sql crashes, null timestamps, and deck.gl errors (apache#38977) (cherry picked from commit daefede) * fix(bubble): Fix Bubble chart axis label rotation (apache#38917) (cherry picked from commit f6cd806) * fix(presto): Fix presto timestamp (apache#26467) Co-authored-by: Claude Code <[email protected]> Co-authored-by: Rui Zhao <[email protected]> Co-authored-by: Joe Li <[email protected]> (cherry picked from commit 53b1d10) * fix(dashboard): live CSS preview in PropertiesModal (apache#38960) Co-authored-by: Claude Sonnet 4.6 <[email protected]> (cherry picked from commit d4d2290) * fix(mixed-timeseries): apply same axis formatting options as timeseries charts (apache#38979) Co-authored-by: Claude Opus 4.6 <[email protected]> (cherry picked from commit 8559786) * fix(dashboard): dashboard filters not inherited in charts in Safari sometimes due to race condition (apache#38851) Co-authored-by: madhushree agarwal <[email protected]> (cherry picked from commit 1e2d0fa) * fix(query): pass datasource table to template processor for schema-aware Jinja rendering (apache#38984) Co-authored-by: Claude Opus 4.6 <[email protected]> (cherry picked from commit 94d8735) * fix(mcp): fix dashboard owners Pydantic crash and preserve chart preview filters (apache#38987) (cherry picked from commit 190f1a5) * fix(mcp): handle table chart raw mode in query builders and sanitize dashboard titles (apache#38990) (cherry picked from commit 0bae05d) * fix(dataset-editor): improve modal layout and fix Settings tab horizontal scroll (apache#39009) Co-authored-by: Claude Opus 4.6 <[email protected]> Co-authored-by: codeant-ai-for-open-source[bot] <244253245+codeant-ai-for-open-source[bot]@users.noreply.github.com> (cherry picked from commit 38f0dc7) * fix(echarts): fix stacked horizontal bar chart clipping and duplicate x-axis labels (apache#39012) (cherry picked from commit 0223428) * fix(ace-editor): fix cursor misalignment in markdown editor (apache#38928) (cherry picked from commit ff3b8d8) * fix(reports): log exception traceback in _get_csv_data (apache#39069) Co-authored-by: Claude Opus 4.6 <[email protected]> (cherry picked from commit 25eea29) * fix(mcp): Created dashboard should be in draft state by default (apache#39011) (cherry picked from commit 135e0f8) * fix(mcp): improve execute_sql response-too-large error to suggest limit parameter (apache#39003) (cherry picked from commit 851bbee) * fix(dashboard): remove opacity on filter dropdown (apache#39074) (cherry picked from commit c7d175b) * fix(mcp): handle stale SSL connections, heatmap duplicate labels, and session rollback (apache#39015) (cherry picked from commit b3a402d) * fix(SQL Lab): handle columns without names (apache#38986) (cherry picked from commit 12eb40d) * feat(mcp): add database connection listing and info tools (apache#39111) Co-authored-by: Claude Opus 4.6 <[email protected]> Co-authored-by: Amin Ghadersohi <[email protected]> (cherry picked from commit a62be68) * fix(migrations): check pre-existing foreign keys on create util (apache#39099) (cherry picked from commit 7c79b9a) * fix(security_manager): custom auth_view issue (apache#39098) (cherry picked from commit e56f8cc) * fix(mcp): fix form_data null, dataset URL, ASCII preview, and chart rename (apache#39109) (cherry picked from commit 7380a59) * fix(mcp): remove JWT ValueError g.user fallback in auth layer (apache#39106) (cherry picked from commit 9274724) * fix(mcp): add dynamic response truncation for oversized info tool responses (apache#39107) (cherry picked from commit 83ad1ec) * fix(mcp): add description and certification fields to default list tool columns (apache#39017) (cherry picked from commit 7be2acb) * fix(mcp): compress chart config schemas to reduce search_tools token usage (apache#39018) (cherry picked from commit bf9aff1) * feat(mcp): add get_chart_type_schema tool for on-demand schema discovery (apache#39142) (cherry picked from commit 5f9fc31) * fix(explore): handle boolean false values correctly in control rendering (apache#39172) Co-authored-by: Claude Opus 4.6 <[email protected]> (cherry picked from commit 6ba9096) * fix(filterReports): _generate_native_filter() crashes on null/empty filterValues (apache#38954) (cherry picked from commit 4f695e1) * fix(explore): Unnecessary scroll bars appearing on charts in Explore (apache#39160) Co-authored-by: Đỗ Trọng Hải <[email protected]> (cherry picked from commit 3a3a653) * fix(reports): propagate PlaywrightTimeout so execution transitions to ERROR state (apache#39176) Co-authored-by: Claude Sonnet 4.6 <[email protected]> (cherry picked from commit 587fe4a) * fix(sqllab): demote "Save as new" button from primary to secondary (apache#39179) Co-authored-by: Claude Opus 4.6 <[email protected]> (cherry picked from commit 140f000) * fix(explore): add left-indentation to control panel hierarchy (apache#39177) Co-authored-by: Claude Opus 4.6 <[email protected]> (cherry picked from commit a64609f) * fix(plugin-chart-handlebars): improve CSS sanitization tooltip and hide when not needed (apache#39180) Co-authored-by: Claude Opus 4.6 <[email protected]> (cherry picked from commit 36de05f) * fix(sqllab): use monospace font for SQL in database error messages (apache#39181) Co-authored-by: Claude Sonnet 4.6 <[email protected]> (cherry picked from commit ed65995) * fix(sqllab): Update style for code viewer container (apache#39075) (cherry picked from commit 4c2dd63) * fix: add template_processor so Jinja gets rendered before SQLGlot parse (apache#39207) (cherry picked from commit 2e80f2a) * fix(sqllab): fix table navigator schema list, pin/unpin UX, copy actions, icons, and toolbar colors (apache#39173) Co-authored-by: Claude Opus 4.6 <[email protected]> (cherry picked from commit d5017e6) * fix(ace-editor): style bracket matching to blend with theme (apache#39182) Co-authored-by: Claude Opus 4.6 <[email protected]> (cherry picked from commit b8b2bde) * fix(frontend): fix loading spinner positioning in Save modal and filters panel (apache#39205) Co-authored-by: Claude Opus 4.6 <[email protected]> Co-authored-by: yousoph <[email protected]> (cherry picked from commit d63308c) * fix(mcp): resolve null fields in list_datasets, list_databases, and save_sql_query (apache#39206) (cherry picked from commit 1bde6f3) * fix(explore): constrain Edit Dataset modal height to prevent footer cutoff (apache#39211) Co-authored-by: Claude Opus 4.6 <[email protected]> (cherry picked from commit bad5a35) * fix(tags): fix Bulk tag modal dropdown clipping and stale tag cache (apache#39210) Co-authored-by: Claude Opus 4.6 <[email protected]> (cherry picked from commit d915e4f) * fix(AlertsReports): untie filters from alerts reports tabs flag (apache#38722) Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]> (cherry picked from commit 5263abd) * fix(reports): escape SQL LIKE wildcards in find_by_extra_metadata (apache#38738) Co-authored-by: Mehmet Salih Yavuz <[email protected]> (cherry picked from commit 6649f35) * fix(mcp): handle OAuth-authenticated databases in execute_sql (apache#39166) (cherry picked from commit 68067d7) * fix: Drill to Detail for Embedded (apache#39214) Co-authored-by: Maxime Beauchemin <[email protected]> Co-authored-by: Claude Opus 4.6 <[email protected]> (cherry picked from commit c7955a3) * fix(sql-lab): apply access check in SqlExecutionResultsCommand (apache#38952) Co-authored-by: Claude Sonnet 4.6 <[email protected]> (cherry picked from commit f49310b) * fix(mcp): wire up compact schema serialization for search_tools results (apache#39229) (cherry picked from commit e17cf3c) * fix(mcp): strip json_metadata and position_json from get_dashboard_info response (apache#39101) (cherry picked from commit 680cef0) * fix: implement native browser fullscreen for dashboard charts (apache#38819) Signed-off-by: Venkateshwaran Shanmugham <[email protected]> Co-authored-by: Michael S. Molina <[email protected]> Co-authored-by: Mehmet Salih Yavuz <[email protected]> Co-authored-by: Richard Fogaça <[email protected]> Co-authored-by: Richard Fogaca Nienkotter <[email protected]> (cherry picked from commit e39dd1a) * fix(dashboard): Vertical filter bar gradient is extending past the filter bar area (apache#39204) Co-authored-by: Mike Bridge <[email protected]> (cherry picked from commit 8bcc90c) * fix(table): cross-filtering breaks after renaming column labels via Custom SQL (apache#38858) (cherry picked from commit aba7e6d) * fix(ag-grid): jpeg export of ag-grid tables (apache#38781) (cherry picked from commit 69c8eef) * fix(echarts): prevent tooltip crash during dashboard auto-refresh (apache#39277) Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]> (cherry picked from commit e9911fb) * fix(SqlLab): improve SQL diff modal — responsive width, padding, tabs, and copy button (apache#39246) Co-authored-by: Claude Opus 4.6 <[email protected]> (cherry picked from commit 450701e) * fix(dataset-editor): fix SQL expression editor extra spaces and height expansion (apache#39248) Co-authored-by: Claude Opus 4.6 <[email protected]> (cherry picked from commit 0aa8cac) * fix(tests): improve ShareMenuItems test isolation to fix intermittent suite failure (apache#39280) Co-authored-by: Claude Opus 4.6 <[email protected]> (cherry picked from commit 9814625) * fix(dashboard): allow filter list to scroll in filter config modal sidebar (apache#39203) Co-authored-by: Mike Bridge <[email protected]> (cherry picked from commit 7a243d3) * fix(dashboard): hide "Filters out of scope" section when empty (apache#39201) Co-authored-by: Mike Bridge <[email protected]> (cherry picked from commit eea3557) * fix(tests): fix async teardown leak in FiltersConfigModal.test.tsx (apache#39281) Co-authored-by: Claude Opus 4.6 <[email protected]> (cherry picked from commit de40b58) * fix(explore): replace TableView with virtualized GridTable, add row limit controls, restore sample filters (apache#39212) Co-authored-by: Claude Opus 4.6 <[email protected]> (cherry picked from commit fa1f12a) * fix(dashboard): Ensure screenshot downloads always generate fresh images/pdfs (apache#38880) (cherry picked from commit 1462ac9) * fix(dashboard): preserve dynamic group by column order (apache#39333) (cherry picked from commit 0f417f0) * fix(explore): Prevent error toast when navigating away from Explore page (apache#39065) (cherry picked from commit 66a9e2e) * fix(select): select all button cutoff (apache#39005) (cherry picked from commit 5138aa2) * fix(popup): Dropdown popup width doesn't match input width when tags collapse in oneLine mode (apache#39136) (cherry picked from commit c2a35e2) * fix(native-filter): infinite filter loading by deps (apache#39175) (cherry picked from commit 499e27e) * fix(native-filters): prevent infinite recursion in filter scope tree traversal (apache#39355) (cherry picked from commit 86575e1) * fix(MCP): fix MCP logs (apache#39159) (cherry picked from commit ffcc6e8) * fix(sqllab): show schema refresh icon only on hover (apache#39367) Co-authored-by: Claude Sonnet 4.6 <[email protected]> (cherry picked from commit ddcb9be) * fix: `do_ping` takes a connection, not engine (apache#39013) (cherry picked from commit 84f7b4a) * feat(mcp): add create_virtual_dataset tool to save SQL queries as datasets (apache#39279) (cherry picked from commit 18d6feb) * fix(explore): dispatch onChange immediately on NumberControl stepper arrow clicks (apache#39220) Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]> (cherry picked from commit 44e77fd) * fix(table): fix cross-filter not clearing on second click in Interactive Table (apache#39253) Co-authored-by: Claude Opus 4.6 <[email protected]> (cherry picked from commit c2d96e0) * fix(dashboard): apply dynamic groupby display controls to scoped charts (apache#39356) (cherry picked from commit c3a0f27) * fix(css-templates): add missing height to CSS editor in CssTemplateModal (apache#39221) Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]> (cherry picked from commit 8471e82) * fix(table): use column label instead of SQL expression for orderby in downloads (apache#39332) Co-authored-by: Claude Opus 4.6 <[email protected]> (cherry picked from commit b3e88db) * fix(ListView): empty state not filling available width (apache#39387) Co-authored-by: Claude Sonnet 4.6 <[email protected]> (cherry picked from commit 998b9e3) * fix(i18n): typo in fr language (apache#36982) Co-authored-by: Sam Firke <[email protected]> (cherry picked from commit b11d4f3) * fix(EmptyState): prevent SVG cropping in empty state images (apache#37287) Co-authored-by: Joe Li <[email protected]> (cherry picked from commit eaccb2e) * fix(mcp): update instructions to use correct request wrapper and identifier params (apache#39392) (cherry picked from commit 838ee87) * fix(mcp): always push fresh app context per tool call to prevent g.user race (apache#39385) (cherry picked from commit e7b9fb2) * fix(sqllab): format_sql to apply db dialect by database_id (apache#39393) (cherry picked from commit 0b51e9c) * fix: add comments to SQL clause validation (apache#39167) (cherry picked from commit 0b419a0) * fix(SelectFilter): auto clear search input (apache#39157) (cherry picked from commit 7c76fd3) * feat(mcp): add a preview flow to mcp chart updates (apache#39383) Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]> (cherry picked from commit 69f062b) * chore: Bump core packages to 0.1.0 RC2 (apache#39406) (cherry picked from commit e5820b6) * fix(parallel-coordinates): improve dark mode visibility for labels, axis text, and data lines (apache#39415) (cherry picked from commit f850c6b) * fix(mcp): prevent LLM from creating new dashboard instead of adding chart to existing one (apache#39353) (cherry picked from commit c289731) * fix(mcp): replace inputSchema with parameters_hint in search_tools results by default (apache#39411) (cherry picked from commit e5b3a9c) * fix(mcp): support explicit query_mode in TableChartConfig (apache#39412) (cherry picked from commit 2e0d482) * fix(sqllab): Relocate schema display on table preview (apache#39420) (cherry picked from commit 4bdc8d4) * Revert "fix(embedded-sdk): wire `hideTab` to actually hide the dashboard tab (apache#38846)" This reverts commit 9619fa2. * fix(sqllab): enhance table explore tree with schema pinning, column sorting, and table schema refresh (apache#39396) Co-authored-by: Michael S. Molina <[email protected]> (cherry picked from commit be68040) * chore: CHANGELOG.md for 6.1.0 RC2 * perf(sql-lab): debounce schema browser search (apache#39489) Co-authored-by: Claude Sonnet 4.6 <[email protected]> (cherry picked from commit 9fe3f63) * fix(table): ensure dimensions appear before metrics in column order (apache#39346) Co-authored-by: Claude Opus 4.6 <[email protected]> (cherry picked from commit 4f19bc4) * docs: Superset 6.1 documentation catch-up — batch 5 (apache#39454) Co-authored-by: Superset Dev <[email protected]> Co-authored-by: Claude Sonnet 4.6 <[email protected]> (cherry picked from commit e1ed500) * fix(sql-lab): show table expand/collapse arrow only on hover (apache#39627) Co-authored-by: Claude Sonnet 4.6 <[email protected]> (cherry picked from commit d6bbe6d) * fix(sqllab): explore to chart is disabled (apache#39630) (cherry picked from commit 78950fc) * fix(explore): ensure unsaved-changes dialog renders above View SQL modal (apache#39569) Co-authored-by: yousoph <[email protected]> Co-authored-by: Claude Sonnet 4.6 <[email protected]> (cherry picked from commit 7c4b2b1) * fix(table chart): fix rerender bug that continuously cleared search box (apache#39707) (cherry picked from commit 3395620) * fix(query-history): enable sorting by Duration column (apache#39637) Co-authored-by: Claude Sonnet 4.6 <[email protected]> (cherry picked from commit c4a8b34) * fix(theme): set color-scheme on html to fix dark mode scrollbars (apache#39704) Co-authored-by: Claude Sonnet 4.6 <[email protected]> (cherry picked from commit 7bee2af) * fix(dashboard): apply full transitive ancestor chain for dependent filters (apache#39504) (cherry picked from commit 18d89f2) * fix(chart): use categorical axis for bar charts with numeric x-axis (apache#39141) Co-authored-by: Enzo Martellucci <[email protected]> (cherry picked from commit 171414f) * fix(dashboard): escape emoji in position_json before saving to prevent truncation (apache#39737) Co-authored-by: Michael S. Molina <[email protected]> (cherry picked from commit 54f1e32) * docs(mcp): update MCP server docs for 6.1 (apache#39422) Co-authored-by: Superset Dev <[email protected]> Co-authored-by: Claude Sonnet 4.6 <[email protected]> (cherry picked from commit fe074c0) * docs: Superset 6.1 documentation catch-up — batch 2 (apache#39441) Co-authored-by: Superset Dev <[email protected]> Co-authored-by: Claude Sonnet 4.6 <[email protected]> (cherry picked from commit 2b623fd) * docs: Superset 6.1 documentation catch-up — batch 3 (apache#39445) Co-authored-by: Superset Dev <[email protected]> Co-authored-by: Claude Sonnet 4.6 <[email protected]> Co-authored-by: Michael S. Molina <[email protected]> (cherry picked from commit b4f5959) * chore(build): remove thread-loader from webpack build (apache#39763) (cherry picked from commit 6ce3885) * docs: Superset 6.1 documentation catch-up — batch 4 (apache#39446) Co-authored-by: Superset Dev <[email protected]> Co-authored-by: Claude Sonnet 4.6 <[email protected]> Co-authored-by: Michael S. Molina <[email protected]> (cherry picked from commit 979f60a) * fix(drill-to-detail): drill to detail by correctly filtering by metric (apache#39766) Co-authored-by: Michael S. Molina <[email protected]> (cherry picked from commit df396aa) * chore: Bump core packages to 0.1.0 RC3 (apache#39823) (cherry picked from commit d23b0ca) * chore: CHANGELOG.md for 6.1.0 RC3 * SUP-176 : feat - fixes * SUP-176 : feat - fixes * fix(ci): grant actions:read for private deploy action resolution The feature environment deploy job failed to resolve webgains/action-generate-dotenv because GITHUB_TOKEN lacked actions:read and packages:read permissions required for private org actions. Co-authored-by: Cursor <[email protected]> * fix(ci): vendor generate-dotenv action for feature deploys Webgains/superset cannot resolve the private webgains/action-generate-dotenv action even with actions:read. Vendor the composite action locally so PR feature environment deploys do not depend on cross-repo action access. Co-authored-by: Cursor <[email protected]> * fix(ci): checkout vendored dotenv action before CDK repo The deploy job checks out superset-service into the workspace, which removed the local generate-dotenv action. Check out the action via sparse-checkout first and place CDK code under cdk/. Co-authored-by: Cursor <[email protected]> * SUP-176 : feat - fix filter & builder * SUP-176 : feat - server error fix * SUP-176 : feat - cursor comments * SUP-176 : feat - cursor comments * SUP-176 : feat - checks * SUP-176 : precomit fixes * SUP-176 : feat - fixed complexity * SUP-176 : feat - cursor comments fixes * SUP-176 : feat - translations fix * SUP-176 : feat - translations fix * SUP-176 : feat - filters fix * SUP-176 : feat - filters fix * SUP-176 : feat - pr comments --------- Signed-off-by: hainenber <[email protected]> Signed-off-by: Venkateshwaran Shanmugham <[email protected]> Co-authored-by: Michael S. Molina <[email protected]> Co-authored-by: Michael S. Molina <[email protected]> Co-authored-by: Đỗ Trọng Hải <[email protected]> Co-authored-by: Evan Rusackas <[email protected]> Co-authored-by: Amin Ghadersohi <[email protected]> Co-authored-by: Claude Opus 4.6 <[email protected]> Co-authored-by: amaannawab923 <[email protected]> Co-authored-by: Alexandru Soare <[email protected]> Co-authored-by: Ville Brofeldt <[email protected]> Co-authored-by: Yuriy Krasilnikov <[email protected]> Co-authored-by: Mehmet Salih Yavuz <[email protected]> Co-authored-by: Joe Li <[email protected]> Co-authored-by: Kamil Gabryjelski <[email protected]> Co-authored-by: Enzo Martellucci <[email protected]> Co-authored-by: Diego Pucci <[email protected]> Co-authored-by: codeant-ai-for-open-source[bot] <244253245+codeant-ai-for-open-source[bot]@users.noreply.github.com> Co-authored-by: Rafael Benitez <[email protected]> Co-authored-by: Luiz Otavio <[email protected]> Co-authored-by: Mayank Aggarwal <[email protected]> Co-authored-by: João Pedro Alves Barbosa <[email protected]> Co-authored-by: Beto Dealmeida <[email protected]> Co-authored-by: mcdogg17 <[email protected]> Co-authored-by: Claude <[email protected]> Co-authored-by: Levis Mbote <[email protected]> Co-authored-by: Shaitan <[email protected]> Co-authored-by: JUST.in DO IT <[email protected]> Co-authored-by: Richard Fogaca Nienkotter <[email protected]> Co-authored-by: Daniel Vaz Gaspar <[email protected]> Co-authored-by: Krishna Chaitanya <[email protected]> Co-authored-by: Jessica Morris <[email protected]> Co-authored-by: Rui Zhao <[email protected]> Co-authored-by: Rui Zhao <[email protected]> Co-authored-by: madhushreeag <[email protected]> Co-authored-by: madhushree agarwal <[email protected]> Co-authored-by: Rayan Salhab <[email protected]> Co-authored-by: Geidō <[email protected]> Co-authored-by: Sam Firke <[email protected]> Co-authored-by: Maxime Beauchemin <[email protected]> Co-authored-by: Elizabeth Thompson <[email protected]> Co-authored-by: yousoph <[email protected]> Co-authored-by: Vitor Avila <[email protected]> Co-authored-by: venkateshwaran shanmugham <[email protected]> Co-authored-by: Richard Fogaça <[email protected]> Co-authored-by: Mike Bridge <[email protected]> Co-authored-by: Mike Bridge <[email protected]> Co-authored-by: Gabriel Torres Ruiz <[email protected]> Co-authored-by: Abdul Rehman <[email protected]> Co-authored-by: Grégoire Gailly <[email protected]> Co-authored-by: innovark <[email protected]> Co-authored-by: Superset Dev <[email protected]> Co-authored-by: Jean Massucatto <[email protected]> Co-authored-by: Cursor <[email protected]>
User description
SUMMARY
Add support for creating Big Number charts via the MCP service. This enables AI assistants to create single-metric display charts with two variants:
The implementation includes:
BigNumberChartConfigPydantic schema with validators for metric aggregates and trendline requirementsmap_big_number_config()for converting simplified config to Superset's form_data format_resolve_viz_type()helper for centralized viz_type resolution across chart typesSchemaValidatorwith user-friendly error messages and codesSupported features:
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
N/A - Backend MCP service changes only
TESTING INSTRUCTIONS
generate_chart(dataset_id=1, config={"chart_type": "big_number", "metric": {"name": "revenue", "aggregate": "SUM"}})generate_chart(dataset_id=1, config={"chart_type": "big_number", "metric": {"name": "revenue", "aggregate": "SUM"}, "temporal_column": "ds", "show_trendline": true})ADDITIONAL INFORMATION
MCP Testing (via localhost MCP service)
health_check→ confirmed service healthyget_dataset_info(39)→ confirmed birth_names dataset has temporal columndsand numeric columnnumgranularity_sqla(notx_axis) for temporal columns, matching Superset's big_number visualization expectationsMCP Testing Results (localhost, 2026-03-13)
Comprehensive testing via localhost MCP tools on branch
amin/mcp-big-number-chart:Unit Tests
test_big_number_chart.py)Live MCP Tool Testing
health_check→ healthy (Python 3.12.11)get_instance_info→ admin user, 109 charts, 42 datasets, 18 dashboardslist_charts(viz_type in [big_number, big_number_total])→ found 12 existing big_number chartsget_chart_info(14)→ "World's Population" (big_number) on wb_health_population datasetget_chart_data(14)→ returned 5 rows with country_code and sum__SP_POP_TOTL columnsget_dataset_info(39)→ birth_names dataset with temporaldscolumn and numericnumcolumngenerate_chart(line, bar, pie, pivot_table, mixed_timeseries) → all workinggenerate_explore_link(mixed_timeseries) → explore URL generatedexecute_sql→ SQL queries executing correctlyget_schema(chart)→ schema discovery working with full column/filter metadataEdge Cases Tested
column_not_founderror with suggestionsdataset_not_founderrorgenerate_preview=False, save_chart=False→ proper validation error (no-op rejected)MCP Tool Testing Results (2026-03-13)
Tested against local Superset MCP service (port 5008) with all tools passing.
health_check
health_check()(no params){"status": "healthy", "service": "Superset OSS MCP Service", "version": "0.0.0-dev", "python_version": "3.12.11"}get_instance_info
get_instance_info({})current_userproperly serialized with roles["Admin"].feature_availability.accessible_menusreturns 25 menu items.list_charts
list_charts({"page": 1, "page_size": 3, "order_column": "changed_on", "order_direction": "desc"})list_dashboards
list_dashboards({"page": 1, "page_size": 3, "order_column": "changed_on", "order_direction": "desc"})execute_sql
execute_sql({"database_id": 1, "sql": "SELECT table_name FROM information_schema.tables WHERE table_schema = 'public' LIMIT 5"})CodeAnt-AI Description
Add Big Number chart support for single-value displays and trendlines
What Changed
Impact
✅ Single-metric dashboards✅ Fewer invalid chart requests✅ Clearer chart setup errors💡 Usage Guide
Checking Your Pull Request
Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.
Talking to CodeAnt AI
Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
Preserve Org Learnings with CodeAnt
You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
Check Your Repository Health
To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.