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

@@ -959,7 +959,7 @@ def _export_data_as_csv(
chart_id=chart.id,
chart_name=chart.slice_name or f"Chart {chart.id}",
chart_type=chart.viz_type or "unknown",
columns=[], # Not needed for CSV export
columns=[], # Column names are embedded in CSV content
data=[], # CSV content is in csv_data field
row_count=len(data),
total_rows=len(data),
@@ -1114,7 +1114,7 @@ def _create_excel_chart_data(
chart_id=chart.id,
chart_name=chart_name,
chart_type=chart.viz_type or "unknown",
columns=[],
columns=[], # Column names are embedded in the Excel file
data=[],
row_count=len(data),
total_rows=len(data),
@@ -1147,7 +1147,7 @@ def _create_excel_chart_data_xlsxwriter(
chart_id=chart.id,
chart_name=chart_name,
chart_type=chart.viz_type or "unknown",
columns=[],
columns=[], # Column names are embedded in the Excel file
data=[],
row_count=len(data),
total_rows=len(data),