Skip to content

fix(mcp): honor target_tab parameter when adding charts to tabbed dashboards - #38409

Merged
sadpandajoe merged 12 commits into
apache:masterfrom
aminghadersohi:amin/fix-target-tab-placement
Mar 10, 2026
Merged

sadpandajoe merged 12 commits into
apache:masterfrom
aminghadersohi:amin/fix-target-tab-placement

Conversation

@aminghadersohi

@aminghadersohi aminghadersohi commented Mar 4, 2026 •

Copy link
Copy Markdown
Contributor

User description

SUMMARY

When adding charts to a dashboard that uses tabs via the add_chart_to_existing_dashboard MCP tool, the target_tab parameter was accepted without error but completely ignored. Charts were always placed in the first tab or under GRID_ID at the root level, where they become invisible ghost entries — registered in the dashboard metadata but never rendered in the UI.

Root causes fixed:

  1. target_tab was never passed to _find_tab_insert_target() — the parameter was accepted but silently discarded
  2. TABS search only checked GRID_ID children — Superset dashboards can place TABS under ROOT_ID (which is the common pattern), so TABS were never found
  3. Exact tab name matching failed with emoji — tab text like 🧭 Exploratory wouldn't match when user passes "Exploratory", added flexible emoji-stripped case-insensitive matching

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

N/A — backend logic change, no UI modifications.

TESTING INSTRUCTIONS

  1. Create a dashboard with multiple tabs (e.g., "Sales Overview", "Exploratory")
  2. Call add_chart_to_existing_dashboard with target_tab set to the second tab's name (without emoji)
  3. Verify the chart appears inside the specified tab (not the first tab, and not invisible under GRID_ID)
  4. Call without target_tab — chart should still land in the first tab (backward compat)

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

MCP Testing (via localhost MCP service on branch amin/fix-target-tab-placement)

Test 1: Target tab with emoji text — "Exploratory" matches "🧭 Exploratory"

  • get_dashboard_info(6) → Sales Dashboard has tabs: "🎯 Sales Overview" (TAB-d-E0Zc1cTH) and "🧭 Exploratory" (TAB-4fthLQmdX)
  • add_chart_to_existing_dashboard(dashboard_id=6, chart_id=2, target_tab="Exploratory")
  • Result: CHART-2 parents = ["ROOT_ID", "TABS-e5Ruro0cjP", "TAB-4fthLQmdX", ...] — correctly placed in Exploratory tab ✅

Test 2: Target tab with emoji text — "Sales Overview" matches "🎯 Sales Overview"

  • add_chart_to_existing_dashboard(dashboard_id=6, chart_id=3, target_tab="Sales Overview")
  • Result: CHART-3 parents = ["ROOT_ID", "TABS-e5Ruro0cjP", "TAB-d-E0Zc1cTH", ...] — correctly placed in Sales Overview tab ✅

Test 3: ROOT_ID TABS search (bug found & fixed)

  • Before fix: TABS under ROOT_ID were missed because _find_tab_insert_target only searched GRID_ID children
  • After fix: Both ROOT_ID and GRID_ID children are searched for TABS components ✅

Test 4: Unit tests

  • pytest tests/unit_tests/mcp_service/dashboard/ -x -q → 45 passed ✅

CodeAnt-AI Description

Respect target_tab when adding charts to tabbed dashboards

What Changed

  • When adding a chart to a dashboard, the requested target_tab (by display name or component ID) is honored and the chart is placed inside that tab instead of the first tab or under GRID_ID.
  • Tab name matching is flexible: matches by exact ID, exact display text, or case-insensitive display text after stripping common emoji prefixes (e.g., "🧭 Exploratory" can be targeted with "Exploratory").
  • The tool now searches for TABS placed under both ROOT_ID and GRID_ID so tabs are found regardless of dashboard layout; if no target_tab is provided or no match is found, placement falls back to the first tab.
  • New unit tests cover placing charts into a specified tab by name and ensure charts are not left invisible under GRID_ID.

Impact

✅ Charts land in the intended dashboard tab
✅ No invisible/ghost charts under GRID_ID
✅ Tab selection works with emoji-prefixed tab names

💡 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:

@codeant-ai ask: Your question here

This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

Example

@codeant-ai ask: Can you suggest a safer alternative to storing this secret?

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:

@codeant-ai: Your feedback here

This helps CodeAnt AI learn and adapt to your team's coding style and standards.

Example

@codeant-ai: Do not flag unused imports.

Retrigger review

Ask CodeAnt AI to review the PR again, by typing:

@codeant-ai: review

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.

@bito-code-review

bito-code-review Bot commented Mar 4, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #46cae8

Actionable Suggestions - 0
Review Details
  • Files reviewed - 2 · Commit Range: 4f1ef5a..4f1ef5a
    • superset/mcp_service/dashboard/tool/add_chart_to_existing_dashboard.py
    • tests/unit_tests/mcp_service/dashboard/tool/test_dashboard_generation.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

AI Code Review powered by Bito Logo

@dosubot dosubot Bot added the change:backend Requires changing the backend label Mar 4, 2026
@netlify

netlify Bot commented Mar 4, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for superset-docs-preview ready!

Name Link
🔨 Latest commit df5e0b5
🔍 Latest deploy log https://app.netlify.com/projects/superset-docs-preview/deploys/69afeb8f2585200008afce2c
😎 Deploy Preview https://deploy-preview-38409--superset-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@codecov

codecov Bot commented Mar 4, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 15.21739% with 39 lines in your changes missing coverage. Please review.
✅ Project coverage is 64.42%. Comparing base (0cfd760) to head (e507d16).
⚠️ Report is 5 commits behind head on master.

Files with missing lines Patch % Lines
.../dashboard/tool/add_chart_to_existing_dashboard.py 15.21% 39 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #38409      +/-   ##
==========================================
- Coverage   65.02%   64.42%   -0.60%     
==========================================
  Files        1817     2529     +712     
  Lines       72267   128812   +56545     
  Branches    23017    29685    +6668     
==========================================
+ Hits        46989    82993   +36004     
- Misses      25278    44376   +19098     
- Partials        0     1443    +1443     
Flag Coverage Δ
hive 40.79% <15.21%> (?)
mysql 61.95% <15.21%> (?)
postgres 62.02% <15.21%> (?)
presto 40.80% <15.21%> (?)
python 63.64% <15.21%> (?)
sqlite 61.65% <15.21%> (?)
unit 100.00% <ø> (?)

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

☔ View full report in Codecov by Sentry.
📢 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.

@bito-code-review

bito-code-review Bot commented Mar 4, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #9001ca

Actionable Suggestions - 0
Review Details
  • Files reviewed - 2 · Commit Range: def55b1..1f48535
    • superset/mcp_service/dashboard/tool/add_chart_to_existing_dashboard.py
    • tests/unit_tests/mcp_service/dashboard/tool/test_dashboard_generation.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

AI Code Review powered by Bito Logo

@bito-code-review

bito-code-review Bot commented Mar 4, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #c68503

Actionable Suggestions - 0
Review Details
  • Files reviewed - 1 · Commit Range: 1f48535..2f45396
    • superset/mcp_service/dashboard/tool/add_chart_to_existing_dashboard.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

AI Code Review powered by Bito Logo

@bito-code-review

bito-code-review Bot commented Mar 5, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #9e6756

Actionable Suggestions - 0
Review Details
  • Files reviewed - 2 · Commit Range: 6226e66..77af2d2
    • superset/mcp_service/dashboard/tool/add_chart_to_existing_dashboard.py
    • tests/unit_tests/mcp_service/dashboard/tool/test_dashboard_generation.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

AI Code Review powered by Bito Logo

@codeant-ai-for-open-source codeant-ai-for-open-source Bot added the size:L This PR changes 100-499 lines, ignoring generated files label Mar 5, 2026

@bito-code-review bito-code-review Bot 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.

Code Review Agent Run #141bf2

Actionable Suggestions - 1
  • superset/mcp_service/dashboard/tool/add_chart_to_existing_dashboard.py - 1
Review Details
  • Files reviewed - 2 · Commit Range: 71afcd8..0707512
    • superset/mcp_service/dashboard/tool/add_chart_to_existing_dashboard.py
    • tests/unit_tests/mcp_service/dashboard/tool/test_dashboard_generation.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

AI Code Review powered by Bito Logo

Comment on lines +72 to +74
r"[\U0001F300-\U0001F9FF\U00002600-\U000027BF\U0000FE00-\U0000FE0F"
r"\U0001FA00-\U0001FA6F\U0001FA70-\U0001FAFF\U00002702-\U000027B0"
r"\U0000200D\U0000FE0F]+",

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.

Incorrect emoji regex pattern

The regex in _normalize_tab_text uses incorrect Unicode escape syntax with double backslashes (\\U), which matches literal strings like '\U0001F300' instead of actual emoji characters. This prevents proper emoji stripping for flexible tab matching. The pattern should use single backslashes in a regular string to enable Unicode character matching.

Code suggestion
Check the AI-generated fix before applying
 -    r"[\\U0001F300-\\U0001F9FF\\U00002600-\\U000027BF\\U0000FE00-\\U0000FE0F"
 -        r"\\U0001FA00-\\U0001FA6F\\U0001FA70-\\U0001FAFF\\U00002702-\\U000027B0"
 -        r"\\U0000200D\\U0000FE0F]+",
 +    "[\U0001F300-\U0001F9FF\U00002600-\U000027BF\U0000FE00-\U0000FE0F"
 +        "\U0001FA00-\U0001FA6F\U0001FA70-\U0001FAFF\U00002702-\U000027B0"
 +        "\U0000200D\U0000FE0F]+",

Code Review Run #141bf2


Should Bito avoid suggestions like this for future reviews? (Manage Rules)

  • Yes, avoid them

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Great catch! Fixed in d7a4665 — removed the raw string prefix so Python processes the \U escapes as proper Unicode code points instead of matching literal characters.

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.

Great! The fix removes the raw string prefix, allowing Python to process \U escapes as Unicode code points instead of literals. This ensures the regex correctly matches emoji characters for tab text normalization.

superset/mcp_service/dashboard/tool/add_chart_to_existing_dashboard.py

"[\U0001F300-\U0001F9FF\U00002600-\U000027BF\U0000FE00-\U0000FE0F"
        "\U0001FA00-\U0001FA6F\U0001FA70-\U0001FAFF\U00002702-\U000027B0"
        "\U0000200D\U0000FE0F]+",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for confirming the fix.

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.

This question isn’t related to the pull request. I can only help with questions about the PR’s code or comments.

@sadpandajoe

Copy link
Copy Markdown
Member

nit: didn't see tests with emojis or tabs under ROOT_ID, but if you tested these manually should be good to go. May want to consider adding them later to ensure things are working properly.

@aminghadersohi

Copy link
Copy Markdown
Contributor Author

Good point! I'll add unit tests for emoji tab names and tabs under ROOT_ID in a follow-up. The manual testing covered those cases, but having them in the test suite would be the right thing to do. Thanks for the review!

@codeant-ai-for-open-source codeant-ai-for-open-source Bot added size:L This PR changes 100-499 lines, ignoring generated files and removed size:L This PR changes 100-499 lines, ignoring generated files labels Mar 6, 2026
"""Strip emoji and extra whitespace from tab text for flexible matching."""
import re

# Remove emoji characters (Unicode emoji ranges)

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.

Suggestion: If a tab's meta.text value is null in the stored JSON (which becomes None after json.loads), _match_tab_in_children will pass None into _normalize_tab_text, causing re.sub to raise a TypeError and breaking the tool for those dashboards; adding a small guard in _normalize_tab_text to handle None avoids this runtime failure without changing behavior for valid strings. [type error]

Severity Level: Major ⚠️
- ❌ MCP add_chart_to_existing_dashboard crashes for dashboards with null tab text.
- ⚠️ Users cannot programmatically add charts to affected tabbed dashboards.
Suggested change
# Remove emoji characters (Unicode emoji ranges)
if text is None:
return ""
Steps of Reproduction ✅
1. Start Superset with this PR code and ensure MCP tools are enabled so
`add_chart_to_existing_dashboard` in
`superset/mcp_service/dashboard/tool/add_chart_to_existing_dashboard.py` is callable.

2. Create or modify a dashboard whose `position_json` (loaded in
`add_chart_to_existing_dashboard` around the layout parsing block) contains a TAB
component under `ROOT_ID` or `GRID_ID` whose JSON has `"meta": {"text": null}`; after
`json.loads` this becomes `meta["text"] is None`.

3. Invoke the MCP tool `add_chart_to_existing_dashboard` with a non-empty `target_tab` (so
`_find_tab_insert_target` at ~line 140 is called with `target_tab` and
`_collect_tabs_groups` at lines 107–125 finds the TABS group containing the TAB whose
`meta.text` is `None`).

4. During the loop in `_match_tab_in_children` at lines 82–104, `tab_text` is set to
`None`, then `_normalize_tab_text(tab_text)` at line 102 calls `re.sub(..., text=None)`
(function at lines 66–79), causing `TypeError: expected string or bytes-like object`; this
bubbles up to the outer `except` in `add_chart_to_existing_dashboard`, which logs an error
and returns an `AddChartToDashboardResponse` with `error="Failed to add chart to
dashboard: expected string or bytes-like object"`.
Prompt for AI Agent 🤖
This is a comment left during a code review.

**Path:** superset/mcp_service/dashboard/tool/add_chart_to_existing_dashboard.py
**Line:** 70:70
**Comment:**
	*Type Error: If a tab's `meta.text` value is `null` in the stored JSON (which becomes `None` after `json.loads`), `_match_tab_in_children` will pass `None` into `_normalize_tab_text`, causing `re.sub` to raise a `TypeError` and breaking the tool for those dashboards; adding a small guard in `_normalize_tab_text` to handle `None` avoids this runtime failure without changing behavior for valid strings.

Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
👍 | 👎

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good catch — if a tab's meta.text is null in the stored JSON, we'd pass None into _normalize_tab_text and re.sub would crash. I'll add a guard to handle None text values before passing to the regex. Thanks.

@bito-code-review

bito-code-review Bot commented Mar 6, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #9c7045

Actionable Suggestions - 0
Review Details
  • Files reviewed - 2 · Commit Range: 71afcd8..d7a4665
    • superset/mcp_service/dashboard/tool/add_chart_to_existing_dashboard.py
    • tests/unit_tests/mcp_service/dashboard/tool/test_dashboard_generation.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

AI Code Review powered by Bito Logo

@codeant-ai-for-open-source codeant-ai-for-open-source Bot added size:L This PR changes 100-499 lines, ignoring generated files and removed size:L This PR changes 100-499 lines, ignoring generated files labels Mar 6, 2026
# Not exhaustive (omits flags, skin-tone modifiers, etc.) but sufficient for
# flexible matching of dashboard tab labels.
_EMOJI_RE = re.compile(
"[\U0001f300-\U0001f9ff\U00002600-\U000027bf\U0000fe00-\U0000fe0f"

Check warning

Code scanning / CodeQL

Overly permissive regular expression range Medium

Suspicious character range that overlaps with \ufffd-\ufffd in the same character class.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed — replaced broad Unicode ranges with specific block ranges (Misc Symbols, Emoticons, Transport, Dingbats, etc.) to avoid overlapping character ranges.

# Not exhaustive (omits flags, skin-tone modifiers, etc.) but sufficient for
# flexible matching of dashboard tab labels.
_EMOJI_RE = re.compile(
"[\U0001f300-\U0001f9ff\U00002600-\U000027bf\U0000fe00-\U0000fe0f"

Check warning

Code scanning / CodeQL

Overly permissive regular expression range Medium

Suspicious character range that overlaps with \u2702-\u27b0 in the same character class.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed — replaced broad Unicode ranges with specific block ranges (Misc Symbols, Emoticons, Transport, Dingbats, etc.) to avoid overlapping character ranges.

# Not exhaustive (omits flags, skin-tone modifiers, etc.) but sufficient for
# flexible matching of dashboard tab labels.
_EMOJI_RE = re.compile(
"[\U0001f300-\U0001f9ff\U00002600-\U000027bf\U0000fe00-\U0000fe0f"

Check warning

Code scanning / CodeQL

Overly permissive regular expression range Medium

Suspicious character range that overlaps with \ufffd-\ufffd in the same character class.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed — replaced broad Unicode ranges with specific block ranges (Misc Symbols, Emoticons, Transport, Dingbats, etc.) to avoid overlapping character ranges.

@bito-code-review

bito-code-review Bot commented Mar 9, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #e05178

Actionable Suggestions - 0
Review Details
  • Files reviewed - 2 · Commit Range: c460563..8ff7d67
    • superset/mcp_service/dashboard/tool/add_chart_to_existing_dashboard.py
    • tests/unit_tests/mcp_service/dashboard/tool/test_dashboard_generation.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

AI Code Review powered by Bito Logo

@bito-code-review

bito-code-review Bot commented Mar 9, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #33581e

Actionable Suggestions - 0
Review Details
  • Files reviewed - 2 · Commit Range: 76c11cd..77efc45
    • superset/mcp_service/dashboard/tool/add_chart_to_existing_dashboard.py
    • tests/unit_tests/mcp_service/dashboard/tool/test_dashboard_generation.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

AI Code Review powered by Bito Logo

…hboards

The target_tab parameter on add_chart_to_existing_dashboard was accepted
but silently ignored, causing charts to always land in the first tab (or
under GRID_ID where they become invisible).  _find_tab_insert_target now
resolves target_tab by display name or component ID before falling back
to the first tab.
Previously the tab selection helper returned the fallback from the first
TABS container without searching later groups, causing charts to be
placed in the wrong tab when the target only exists in a later group.
Two bugs fixed in add_chart_to_existing_dashboard:

1. Tab search only checked GRID_ID children for TABS components, but
   Superset dashboards can place TABS under ROOT_ID. Now searches both
   ROOT_ID and GRID_ID children.

2. Tab name matching was exact-only, failing when tab text contains
   emoji prefixes (e.g., "🧭 Exploratory"). Added flexible matching
   that strips emoji and compares case-insensitively.
aminghadersohi and others added 6 commits March 10, 2026 05:59
Raw string prefix r"..." prevents Python from processing \U Unicode
escapes, so the regex matched literal characters instead of actual
emoji ranges. Remove the r prefix so Python processes \U0001F300 etc.
as proper Unicode code points.
Previous CI run failed with "Broken pipe" in helm-docs setup step.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@codeant-ai-for-open-source codeant-ai-for-open-source Bot added size:L This PR changes 100-499 lines, ignoring generated files and removed size:L This PR changes 100-499 lines, ignoring generated files labels Mar 10, 2026
@codeant-ai-for-open-source

Copy link
Copy Markdown
Contributor

Sequence Diagram

This PR updates the add_chart_to_existing_dashboard MCP tool so that the optional target_tab parameter is honored by resolving the correct tab (by ID or flexible name match from ROOT_ID and GRID_ID) before inserting the chart into the dashboard layout.

sequenceDiagram
    participant Caller
    participant MCPTool as MCP tool
    participant Dashboard as Dashboard backend

    Caller->>MCPTool: add_chart_to_existing_dashboard with dashboard id, chart id, target_tab
    MCPTool->>Dashboard: Load dashboard layout and chart
    Dashboard-->>MCPTool: Return layout and chart
    MCPTool->>MCPTool: Resolve target tab from layout using target_tab (ID or normalized name, fallback to first tab)
    MCPTool->>Dashboard: Update layout to add chart under resolved tab
    Dashboard-->>MCPTool: Save and return updated dashboard
    MCPTool-->>Caller: Return success with new chart position
Loading

Generated by CodeAnt AI

- Guard against None meta.text in _normalize_tab_text to prevent TypeError
- Remove overlapping Unicode ranges in emoji regex pattern (fixes CodeQL alerts)

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@bito-code-review

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

Copy link
Copy Markdown
Contributor

Code Review Agent Run #8385d4

Actionable Suggestions - 0
Review Details
  • Files reviewed - 2 · Commit Range: a8af79a..cd35c58
    • superset/mcp_service/dashboard/tool/add_chart_to_existing_dashboard.py
    • tests/unit_tests/mcp_service/dashboard/tool/test_dashboard_generation.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

AI Code Review powered by Bito Logo

Replace overly permissive Unicode ranges with specific block ranges
to address CodeQL security warnings about suspicious character range
overlaps.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@bito-code-review

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

Copy link
Copy Markdown
Contributor

Code Review Agent Run #9c7592

Actionable Suggestions - 0
Review Details
  • Files reviewed - 1 · Commit Range: cd35c58..e507d16
    • superset/mcp_service/dashboard/tool/add_chart_to_existing_dashboard.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

AI Code Review powered by Bito Logo

@sadpandajoe
sadpandajoe merged commit 3bb9704 into apache:master Mar 10, 2026
76 checks passed
bschreder pushed a commit to bschreder/superset that referenced this pull request Mar 11, 2026
michael-s-molina pushed a commit that referenced this pull request Mar 17, 2026
…hboards (#38409)

Co-authored-by: Claude Opus 4.6 <[email protected]>
(cherry picked from commit 3bb9704)
MallikarjunaReddyN pushed a commit to MallikarjunaReddyN/superset that referenced this pull request Mar 18, 2026
qfcwell pushed a commit to qfcwell/superset that referenced this pull request May 12, 2026
hassan-webgains added a commit to Webgains/superset that referenced this pull request Jun 23, 2026
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:backend Requires changing the backend size/L size:L This PR changes 100-499 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants