Skip to content

feat(mcp): add get_dashboard_data for bounded, filter-aware dashboard data - #44113

Merged
gabotorresruiz merged 1 commit into
apache:masterfrom
gabotorresruiz:feat/mcp-get-dashboard-data
Sep 15, 2026
Merged

gabotorresruiz merged 1 commit into
apache:masterfrom
gabotorresruiz:feat/mcp-get-dashboard-data

Conversation

@gabotorresruiz

Copy link
Copy Markdown
Contributor

SUMMARY

Adds a new MCP tool get_dashboard_data that returns compact, filter-aware data across a dashboard's charts in a single call, so an AI agent can answer analytical questions about a whole dashboard without fetching each chart separately.

  • Selects the dashboard's charts in layout reading order, so a bounded selection covers the most prominent charts first.
  • Reuses get_chart_data's query and guest-authorization path: its body is extracted into a shared, undecorated execute_chart_data, and get_chart_data becomes a thin wrapper (behavior unchanged).
  • Applies active dashboard filters per chart via applied_filters (keyed by chart id), so answers reflect the filtered view.
  • Returns a compact per-chart view: column names, a few sample rows, and row counts. Bounded by max_charts plus a soft time budget so a large or slow dashboard degrades gracefully instead of stalling; per-chart errors are surfaced, not fatal.
  • Guest-safe: built only on the ChartDataCommand path (no raw SQL), with raise_for_access intact on both dashboard resolution and each chart query, and added to MCP_GUEST_ALLOWED_TOOLS.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

N/A (MCP tool, no UI).

TESTING INSTRUCTIONS

  • pytest tests/unit_tests/mcp_service/dashboard/tool/test_get_dashboard_data.py
  • Via an MCP client: get_dashboard_data(request={"identifier": <dashboard id>}) returns per-chart columns, sample rows, and counts in layout order, bounded by max_charts.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
  • Introduces new feature or API
  • Removes existing feature or API

@codecov

codecov Bot commented Sep 9, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 99.20635% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 80.19%. Comparing base (eeafd65) to head (a3f9cd0).

Files with missing lines Patch % Lines
...t/mcp_service/dashboard/tool/get_dashboard_data.py 98.75% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #44113      +/-   ##
==========================================
+ Coverage   80.18%   80.19%   +0.01%     
==========================================
  Files        2925     2926       +1     
  Lines      172692   172817     +125     
  Branches    40090    40101      +11     
==========================================
+ Hits       138474   138598     +124     
  Misses      31623    31623              
- Partials     2595     2596       +1     
Flag Coverage Δ
hive 37.34% <46.03%> (+0.01%) ⬆️
mysql 56.84% <46.03%> (-0.02%) ⬇️
postgres 56.86% <46.03%> (-0.02%) ⬇️
presto 39.23% <46.03%> (+<0.01%) ⬆️
python 84.59% <99.20%> (+0.02%) ⬆️
sqlite 56.56% <46.03%> (-0.02%) ⬇️
unit 75.99% <99.20%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@gabotorresruiz
gabotorresruiz force-pushed the feat/mcp-get-dashboard-data branch 2 times, most recently from c45af2b to 5b988a5 Compare September 9, 2026 21:29
@gabotorresruiz
gabotorresruiz marked this pull request as ready for review September 9, 2026 22:03
@gabotorresruiz
gabotorresruiz requested review from EnxDev and aminghadersohi and removed request for EnxDev September 9, 2026 22:03
@gabotorresruiz
gabotorresruiz force-pushed the feat/mcp-get-dashboard-data branch 2 times, most recently from 4f2e5d5 to ec8dce0 Compare September 9, 2026 22:44
@bito-code-review

bito-code-review Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #5312ff

Actionable Suggestions - 0
Additional Suggestions - 3
  • superset/mcp_service/mcp_config.py - 1
    • Docs out of sync · Line 207-207
      The code default now includes `get_dashboard_data`, but the documented default allow-list in `docs/admin_docs/configuration/mcp-server.mdx` (lines 286-294) and `superset/mcp_service/CLAUDE.md` (lines 475-478) still omits it. Users copying the documented default won't get this tool enabled. Update both docs to keep them in sync with `MCP_GUEST_ALLOWED_TOOLS`.
  • superset/mcp_service/dashboard/schemas.py - 1
    • Misleading field description · Line 2547-2550
      The `charts_truncated` description only mentions the `max_charts` case, but `get_dashboard_data.py` sets it to `len(charts) < len(slices)`, which is also True when the `time_budget_seconds` deadline is hit (lines 129-133). The `time_budget_seconds` field description already says it "sets charts_truncated", so this doc is internally inconsistent and could mislead consumers about why truncation occurred.
  • superset/mcp_service/chart/tool/get_chart_data.py - 1
    • Too many return statements in function · Line 316-316
      The `execute_chart_data` function has 20 return statements, exceeding the limit of 6 (PLR0911). Consider refactoring into smaller helper functions to reduce the number of return paths and improve readability.
Review Details
  • Files reviewed - 7 · Commit Range: ec8dce0..ec8dce0
    • superset/mcp_service/app.py
    • superset/mcp_service/chart/tool/get_chart_data.py
    • superset/mcp_service/dashboard/schemas.py
    • superset/mcp_service/dashboard/tool/__init__.py
    • superset/mcp_service/dashboard/tool/get_dashboard_data.py
    • superset/mcp_service/mcp_config.py
    • tests/unit_tests/mcp_service/dashboard/tool/test_get_dashboard_data.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

AI Code Review powered by Bito Logo

@EnxDev EnxDev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for making the dashboard-wide path bounded and resilient per chart—the layout ordering and partial-error handling are thoughtful. I found three cases that need another pass before this is safe to rely on for analysis: the composed tool skips the Chart permission/scope gate, multi-query charts lose every layer after the first, and capped row counts are presented as full totals. I left concrete suggestions inline. I ran the dashboard and chart MCP unit suites together: 137 passed.

@gabotorresruiz
gabotorresruiz force-pushed the feat/mcp-get-dashboard-data branch from ec8dce0 to 8c3ac71 Compare September 10, 2026 18:33
@netlify

netlify Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for superset-docs-preview ready!

Name Link
🔨 Latest commit a3f9cd0
🔍 Latest deploy log https://app.netlify.com/projects/superset-docs-preview/deploys/6aa848e20dfd4c0008b30788
😎 Deploy Preview https://deploy-preview-44113--superset-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@bito-code-review

bito-code-review Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #ce1f8b

Actionable Suggestions - 0
Additional Suggestions - 4
  • superset/mcp_service/chart/tool/get_chart_data.py - 2
    • CWE-862: Missing Authorization · Line 316-324
      `execute_chart_data` is a public, undecorated function running the full chart query and guest-auth path with no internal permission check. It is invisible to `assert_all_tools_protected`, which only inspects `@tool`-registered functions via `_mcp_auth_protected`. The docstring invites other tools to reuse it; a future caller that skips `check_tool_permission(get_chart_data)` (as `get_dashboard_data` does) would bypass authorization. Consider making it private or moving the check inside. ([CWE-862](https://cwe.mitre.org/data/definitions/862.html))
    • Too many return statements in function · Line 316-316
      The function `execute_chart_data` contains 20 return statements, exceeding the configured limit of 6 (PLR0911). This makes the function difficult to follow and maintain. Consider refactoring by extracting smaller helper functions or using early returns more judiciously.
  • superset/mcp_service/dashboard/schemas.py - 1
    • Misleading field description · Line 2577-2577
      `charts_truncated` is set to `len(charts) < len(slices)` in `get_dashboard_data.py` (line 240), so it is also True when the time budget stops the loop, not only when `max_charts` is exceeded (see `test_stops_at_time_budget`). The description understates this and could mislead MCP agents. Consider wording that covers both causes.
  • superset/mcp_service/mcp_config.py - 1
    • Doc drift on guest allow-list · Line 207-207
      Adding `get_dashboard_data` to `MCP_GUEST_ALLOWED_TOOLS` is consistent with the other read-only dashboard tools and is safe: the tool itself gates via `check_tool_permission(get_chart_data)`, which honors the allow-list. However, the documented default lists in `CLAUDE.md`, `mcp-server.mdx`, and `SECURITY.md` still omit it, so operators reading the docs will believe guests cannot call it. Please sync the docs.
Review Details
  • Files reviewed - 7 · Commit Range: 8c3ac71..8c3ac71
    • superset/mcp_service/app.py
    • superset/mcp_service/chart/tool/get_chart_data.py
    • superset/mcp_service/dashboard/schemas.py
    • superset/mcp_service/dashboard/tool/__init__.py
    • superset/mcp_service/dashboard/tool/get_dashboard_data.py
    • superset/mcp_service/mcp_config.py
    • tests/unit_tests/mcp_service/dashboard/tool/test_get_dashboard_data.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

AI Code Review powered by Bito Logo

Comment thread superset/mcp_service/mcp_config.py Resolved

@EnxDev EnxDev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick follow-up. I verified that the Chart permission gate is restored, multi-query layers are preserved, and capped results now carry an explicit truncation signal. One count-contract edge remains: known source totals are overwritten when the returned row count is below the fetch cap, which can still make the dashboard summary undercount. I also noted the user/operator documentation that needs to move with this new guest-visible API. I ran the dashboard and chart MCP unit suites together on the updated head: 141 passed.

@gabotorresruiz
gabotorresruiz force-pushed the feat/mcp-get-dashboard-data branch from 8c3ac71 to 6303eb4 Compare September 11, 2026 14:21
@github-actions github-actions Bot added the doc Namespace | Anything related to documentation label Sep 11, 2026
@gabotorresruiz
gabotorresruiz force-pushed the feat/mcp-get-dashboard-data branch from 6303eb4 to 73e4f0b Compare September 11, 2026 14:33
@bito-code-review

bito-code-review Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #309886

Actionable Suggestions - 0
Additional Suggestions - 7
  • superset/mcp_service/dashboard/tool/get_dashboard_data.py - 2
    • False truncated flag · Line 67-70
      When an authoritative `source_total` equals `row_count` at the cap (e.g. exactly `fetch_row_limit` rows all returned), `capped = row_count >= limit` is True and `capped or source_total > row_count` forces `truncated=True` even though nothing was cut. Use only `source_total > row_count` when `source_total` is known; keep the cap heuristic for the `None` case.
    • Unused logger · Line 56-56
      `logger` is assigned at line 56 but never used; all logging goes through `event_logger` (line 183) and `ctx`. Remove the dead assignment to avoid confusion and lint noise.
  • superset/mcp_service/chart/tool/get_chart_data.py - 2
    • Unguarded core entry point · Line 316-324
      `execute_chart_data` is an undecorated entry point that performs the chart data query without the auth wrapper. Both current callers guard it (`get_chart_data` via `@tool`, `get_dashboard_data` via `check_tool_permission(get_chart_data)` at line 200), but the docstring explicitly invites reuse, making an unguarded future caller a real risk. Consider documenting the mandatory permission check or adding an internal guard.
    • Too many return statements · Line 316-316
      `execute_chart_data` has 20 return statements, exceeding the limit of 6. Consider refactoring into smaller helper functions to reduce complexity.
  • superset/mcp_service/dashboard/schemas.py - 2
    • Misleading field description · Line 2588-2593
      The `charts_truncated` description only mentions the `max_charts` case, but `get_dashboard_data` sets it to `len(charts) < len(slices)`, which is also true when the `time_budget_seconds` deadline is hit (see the `time_budget_seconds` field description in this same diff). Align the description so consumers don't misread the flag.
    • Exception type and message issues in raise · Line 2518-2518
      The `raise ValueError(...)` statement in `reject_bool_identifier` has three issues: TRY004 (should use `TypeError` for invalid type), TRY003 (avoid long messages outside exception class), and EM101 (assign string literal to variable first). Use `TypeError` with a variable-assigned message.
  • superset/mcp_service/mcp_config.py - 1
    • Doc drift in allow-list · Line 207-207
      Adding `get_dashboard_data` to the default allow-list is correct and safe: the tool exists and internally enforces `check_tool_permission(get_chart_data)`. However, the documented default list in `superset/mcp_service/CLAUDE.md` (lines 475-478) omits it, so docs now drift from the code. `docs/admin_docs/configuration/mcp-server.mdx` already lists it. Please update CLAUDE.md to keep the single source of truth consistent.
Review Details
  • Files reviewed - 9 · Commit Range: 73e4f0b..73e4f0b
    • docs/admin_docs/configuration/mcp-server.mdx
    • docs/docs/using-superset/using-ai-with-superset.mdx
    • superset/mcp_service/app.py
    • superset/mcp_service/chart/tool/get_chart_data.py
    • superset/mcp_service/dashboard/schemas.py
    • superset/mcp_service/dashboard/tool/__init__.py
    • superset/mcp_service/dashboard/tool/get_dashboard_data.py
    • superset/mcp_service/mcp_config.py
    • tests/unit_tests/mcp_service/dashboard/tool/test_get_dashboard_data.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

AI Code Review powered by Bito Logo

@EnxDev EnxDev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for addressing the previous pass. I verified the known-total regression, per-layer totals, boolean identifier guard, guest allow-list documentation, dual-permission documentation, and user-facing tool catalog. The authorization composition also remains aligned with Superset’s published security model. One production-shaped cap case still needs adjustment: the upstream rowcount is calculated after the imposed query limit, so equality with the cap is not an authoritative full total. I left that case inline. Focused dashboard and chart MCP suites pass: 143 tests.

@gabotorresruiz
gabotorresruiz force-pushed the feat/mcp-get-dashboard-data branch from 73e4f0b to 08e6916 Compare September 11, 2026 18:52

@EnxDev EnxDev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the careful follow-through. I verified the latest cap-handling fix: an upstream count equal to the imposed limit is treated as unknown, while a genuine larger total is preserved, and the production-shaped regression covers it. The earlier Chart permission, multi-query, count-contract, and documentation concerns are all addressed. I also rechecked the guest authorization path against Superset’s security model and found no remaining issues. Focused dashboard and chart MCP suites pass: 148 tests. Approving; a few repository-wide required CI jobs are still running.

@bito-code-review

bito-code-review Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #3c49f1

Actionable Suggestions - 0
Additional Suggestions - 6
  • superset/mcp_service/dashboard/tool/get_dashboard_data.py - 1
    • Misleading truncation flag · Line 268-268
      `charts_truncated=len(charts) < len(slices)` is True whenever `max_charts < len(slices)`, even if the time budget was never reached. This conflates `max_charts` selection limiting with budget truncation, so agents get a misleading "truncated" signal. Compare against `len(selected)` instead.
  • superset/mcp_service/dashboard/schemas.py - 1
    • Duplicated chart data fields · Line 2522-2570
      `DashboardChartQueryData` and `DashboardChartData` duplicate five identical fields (`columns`, `sample_data`, `row_count`, `total_rows`, `truncated`) in the same diff. If the semantics of one change (e.g. `total_rows` nullability) without the other, responses diverge. Consider a shared base model to keep the field contract in one place.
  • superset/mcp_service/mcp_config.py - 1
    • Stale documented default list · Line 207-207
      Adding `get_dashboard_data` to the default allow-list here is correct and safe (read-only, guest-scoped, and `get_dashboard_data` re-checks `check_tool_permission(get_chart_data)`). However `superset/mcp_service/CLAUDE.md` still documents the default `MCP_GUEST_ALLOWED_TOOLS` without it, so the config reference is now stale. `docs/admin_docs/configuration/mcp-server.mdx` already lists it. Update CLAUDE.md to keep the documented default in sync.
  • superset/mcp_service/chart/tool/get_chart_data.py - 2
    • Undecorated entry point risk · Line 316-316
      `execute_chart_data` is a public, undecorated entry point that runs the full data query without `mcp_auth_hook`. Today only `get_dashboard_data` calls it and it correctly enforces `check_tool_permission(get_chart_data)` first, so there is no current bypass. Consider a defensive guard or explicit contract so a future caller cannot skip the RBAC gate.
    • Function too complex with many returns · Line 316-316
      `execute_chart_data` exceeds complexity limits: 20 return statements (PLR0911), 58 branches (PLR0912), and 196 statements (PLR0915). Consider extracting chart lookup, query context building, and result processing into separate helper functions to reduce complexity.
  • tests/unit_tests/mcp_service/dashboard/tool/test_get_dashboard_data.py - 1
    • Disallowed Any type annotation · Line 79-79
      `total_rows: Any` violates ANN401. Use a more specific type such as `int | None` and replace the `_UNSET` sentinel with `None` in the default value and the comparison logic.
Review Details
  • Files reviewed - 9 · Commit Range: 08e6916..08e6916
    • docs/admin_docs/configuration/mcp-server.mdx
    • docs/docs/using-superset/using-ai-with-superset.mdx
    • superset/mcp_service/app.py
    • superset/mcp_service/chart/tool/get_chart_data.py
    • superset/mcp_service/dashboard/schemas.py
    • superset/mcp_service/dashboard/tool/__init__.py
    • superset/mcp_service/dashboard/tool/get_dashboard_data.py
    • superset/mcp_service/mcp_config.py
    • tests/unit_tests/mcp_service/dashboard/tool/test_get_dashboard_data.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

AI Code Review powered by Bito Logo

@aminghadersohi aminghadersohi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unit-tests-required is red only because unit-tests (current) hit the 30-min cap during the coverage step — the Python unit tests step itself passed. Rebasing picks up #44178 (xdist) and should clear it.

… data

Returns compact, filter-aware data across a dashboard's charts in one call so
an agent can answer analytical questions about a whole dashboard without
fetching each chart separately. Reuses get_chart_data's query and
guest-authorization path (extracted into a shared execute_chart_data), selects
charts in layout reading order, bounds output by max_charts plus a soft time
budget, and returns compact per-chart columns, sample rows, and row counts.
@gabotorresruiz
gabotorresruiz force-pushed the feat/mcp-get-dashboard-data branch from 08e6916 to a3f9cd0 Compare September 14, 2026 19:19
@bito-code-review

bito-code-review Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #2bb152

Actionable Suggestions - 0
Additional Suggestions - 2
  • superset/mcp_service/dashboard/schemas.py - 1
    • Inaccurate field description · Line 2588-2591
      The description only documents max_charts truncation, but `get_dashboard_data` sets `charts_truncated=len(charts) < len(slices)` (line 268), which is also true when the time budget is reached (lines 221-225). Since agents consume this schema description, clarify both truncation causes.
  • superset/mcp_service/chart/tool/get_chart_data.py - 1
    • Too many return statements · Line 331-331
      The function `execute_chart_data` has 21 return statements, exceeding the limit of 6. Consider refactoring into smaller functions to reduce complexity. This also relates to PLR0912 and PLR0915.
Review Details
  • Files reviewed - 9 · Commit Range: a3f9cd0..a3f9cd0
    • docs/admin_docs/configuration/mcp-server.mdx
    • docs/docs/using-superset/using-ai-with-superset.mdx
    • superset/mcp_service/app.py
    • superset/mcp_service/chart/tool/get_chart_data.py
    • superset/mcp_service/dashboard/schemas.py
    • superset/mcp_service/dashboard/tool/__init__.py
    • superset/mcp_service/dashboard/tool/get_dashboard_data.py
    • superset/mcp_service/mcp_config.py
    • tests/unit_tests/mcp_service/dashboard/tool/test_get_dashboard_data.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

AI Code Review powered by Bito Logo

@gabotorresruiz
gabotorresruiz merged commit ef4281d into apache:master Sep 15, 2026
76 checks passed
villebro added a commit that referenced this pull request Sep 22, 2026
get_dashboard_data (#44113) was never backported to 7.0, but the
cherry-pick of #43828's EXPECTED_TOOL_OUTPUT_FIELDS snapshot brought
in a stale entry for it, failing
test_all_registered_tools_have_complete_metadata's set-equality
assertion against the live tool registry.
villebro added a commit that referenced this pull request Sep 22, 2026
#44435's test called module.execute_chart_data, the undecorated core
that master's #44113 (never backported -- it's the feat that added
get_dashboard_data) split out of the @tool-wrapped get_chart_data. 7.0
only has the decorated function, which needs a live FastMCP Client
context to run at all. The fix itself is still covered by this file's
other four tests, which exercise dashboard_filter_context.py and
time_grain_utils.py directly.
villebro added a commit that referenced this pull request Sep 30, 2026
apply_dashboard_filters (#44096) and get_dashboard_data (#44113) were
never backported to 7.0, but the cherry-pick of #44575's tool inventory
test brought in budget entries for them, failing
test_inventory_budgets_cover_every_registered_tool's set-equality
assertion against the registered tools.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Namespace | Anything related to documentation size/XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants