fix(mcp): fix crashes in list tools, dataset info, chart preview, and add owner/favorite filters (#38277)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Amin Ghadersohi
2026-03-13 12:46:52 +01:00
committed by GitHub
parent f458e2d484
commit d5cf77cd60
25 changed files with 297 additions and 72 deletions

View File

@@ -71,8 +71,8 @@ def calculate_dashboard_breakdown(
dashboards_with_charts = (
db.session.query(Dashboard).join(Dashboard.slices).distinct().count()
)
dashboards_without_charts = (
base_counts.get("total_dashboards", 0) - dashboards_with_charts
dashboards_without_charts = max(
0, base_counts.get("total_dashboards", 0) - dashboards_with_charts
)
return DashboardBreakdown(