You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9ceb6fa
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: UPDATING.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,7 @@ assists people when migrating to a new version.
25
25
## Next
26
26
27
27
-`SAMPLES_ROW_LIMIT` is now the default for `/datasource/samples` requests without a valid explicit `per_page`, rather than a hard per-request ceiling; explicit limits are honored up to the existing global row-limit ceiling, matching `/chart/data` SAMPLES requests.
28
+
- The `cockroachdb` extra (`pip install apache-superset[cockroachdb]`) now installs `sqlalchemy-cockroachdb` instead of the abandoned `cockroachdb` package, whose SQLAlchemy dialect could not be imported under SQLAlchemy 2.0. Existing environments with the old package installed should `pip uninstall cockroachdb && pip install sqlalchemy-cockroachdb` (or simply reinstall the extra) to restore CockroachDB connectivity.
Copy file name to clipboardExpand all lines: docs/admin_docs/configuration/alerts-reports.mdx
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,20 @@ Users can configure automated alerts and reports to send dashboards or charts to
14
14
15
15
Alerts and reports are disabled by default. To turn them on, you'll need to change configuration settings and install a suitable headless browser in your environment.
16
16
17
+
## Content Format Options
18
+
19
+
When scheduling an alert or report, you can choose the format used to deliver the dashboard or chart:
20
+
21
+
-**PDF** – a full-page screenshot rendered as a PDF attachment. Available for both dashboards and charts.
22
+
-**PNG** – a screenshot delivered as an attachment. Emails embed the image inline in the message body; Slack and webhook recipients receive it as an uploaded file. Available for both dashboards and charts.
23
+
-**CSV** – chart data attached as a `.csv` file. Available for charts only.
24
+
-**XLSX (Excel)** – chart data attached as a `.xlsx` file. Available for charts only. If the chart's data spans multiple server-paginated files, email delivery detects the bundle and renames the attachment to `.zip`; Slack and webhook deliveries always name the file with an `.xlsx` extension even when the contents are a multi-file ZIP archive.
25
+
-**Text** – chart data embedded directly in the email or Slack message body. Available only for charts using a text-based visualization type (e.g. Table, Pivot Table, Paired t-test).
26
+
27
+
Dashboard reports and alerts are limited to the PDF and PNG formats; the CSV, XLSX, and Text options are only available when scheduling a report or alert for an individual chart.
28
+
29
+
For alerts (not scheduled reports), PNG/PDF screenshots and chart CSV/XLSX data are only generated when the `ALERTS_ATTACH_REPORTS`[feature flag](/admin-docs/configuration/configuring-superset#feature-flags) is enabled (the default); with it disabled, an alert notification is still sent, but without the attachment.
If the specified user does not exist, the command fails immediately with an error rather than
104
+
importing the assets without an owner.
105
+
86
106
## Dashboard Import Overwrite Behavior
87
107
88
108
When importing a dashboard ZIP with the **overwrite** option enabled, any existing charts that are part of the dashboard are **replaced** rather than duplicated. This applies to:
Copy file name to clipboardExpand all lines: docs/admin_docs/configuration/mcp-server.mdx
+35Lines changed: 35 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -505,6 +505,8 @@ All MCP settings go in `superset_config.py`. Defaults are defined in `superset/m
505
505
| `MCP_DEV_USERNAME` | -- | Superset username for development mode (no auth) |
506
506
| `MCP_RBAC_ENABLED` | `True` | Enforce Superset's role-based access control on MCP tool calls. When `True`, each tool checks that the authenticated user has the required FAB permission before executing. Disable only for testing or trusted-network deployments. |
507
507
| `MCP_DISABLED_TOOLS` | `set()` | Set of tool names to remove from the MCP server at startup. Disabled tools are never advertised to AI clients during tool discovery. Useful when a custom extension tool should replace a built-in Superset tool. See [Disabling built-in tools](#disabling-built-in-tools). |
508
+
| `MCP_DISABLED_CHART_PLUGINS` | `frozenset()` | Set of chart type plugin names (e.g. `"handlebars"`) to hide from `generate_chart`. Does not affect `get_chart_type_schema`. See [Disabling chart type plugins](#disabling-chart-type-plugins). |
509
+
| `MCP_CHART_PLUGIN_ENABLED_FUNC` | `None` | Callable `(chart_type: str) -> bool` evaluated per registry lookup for dynamic enable/disable decisions. Takes precedence over `MCP_DISABLED_CHART_PLUGINS` when set. See [Disabling chart type plugins](#disabling-chart-type-plugins). |
Specifying a tool name that does not exist logs a warning at startup and is otherwise ignored — it will not prevent the server from starting.
894
896
:::
895
897
898
+
## Disabling chart type plugins
899
+
900
+
The `generate_chart` tool dispatches per chart type (`xy`, `table`, `pie`, `pivot_table`, `mixed_timeseries`, `handlebars`, `big_number`, `histogram`, `box_plot`, `waterfall`) to a registered chart type plugin. Two settings let operators enable or disable individual chart type plugins at runtime, without a code deploy.
901
+
902
+
### Static deny-list
903
+
904
+
Set `MCP_DISABLED_CHART_PLUGINS` in your `superset_config.py` to a set of chart type names:
905
+
906
+
```python
907
+
# superset_config.py
908
+
909
+
# Emergency kill switch: hide "handlebars" from all callers
910
+
MCP_DISABLED_CHART_PLUGINS = {"handlebars"}
911
+
```
912
+
913
+
Disabled chart types stay registered but are filtered out at lookup time: they're never listed in `generate_chart`'s supported chart types, and `generate_chart` calls for them are rejected. `get_chart_type_schema` consults its own static schema/example map rather than the registry filter, so a disabled chart type's schema remains queryable through that tool even though `generate_chart` will reject it.
914
+
915
+
### Dynamic predicate
916
+
917
+
For per-request control (A/B tests, gradual rollout, entitlement checks), set `MCP_CHART_PLUGIN_ENABLED_FUNC` to a callable. It's evaluated as `enabled_func(chart_type: str) -> bool` on every registry lookup, and it takes precedence over `MCP_DISABLED_CHART_PLUGINS` when set:
The callable must be cheap and in-process (consult already-loaded feature flags or request-local context) -- do not perform network I/O per call. If it raises, the registry fails closed (the plugin is hidden) and logs a warning.
930
+
896
931
## Security Best Practices
897
932
898
933
- **Use TLS** for all production MCP endpoints -- place the server behind a reverse proxy with HTTPS
Copy file name to clipboardExpand all lines: docs/admin_docs/configuration/theming.mdx
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,6 +88,27 @@ THEME_DARK = {
88
88
# - OS preference detection is automatically enabled
89
89
```
90
90
91
+
### Default Theme Mode
92
+
93
+
By default, Superset mimics the visitor's OS/browser preference (light or dark) for
94
+
sessions that don't have a saved user preference. Use `THEME_DEFAULT_MODE` to override
95
+
that starting point instance-wide for the standard application:
96
+
97
+
```python
98
+
# Default theme mode for sessions without a saved user preference.
99
+
# One of "default" (always light), "dark" (always dark), or "system" (mimic OS preference).
100
+
THEME_DEFAULT_MODE="dark"
101
+
```
102
+
103
+
-`"system"` (the default) preserves the existing behavior of following the OS/browser
104
+
preference, provided a dark theme is configured (`THEME_DARK` is not `None`). If no dark
105
+
theme is available, Superset always starts in light mode regardless of this setting.
106
+
-`"default"` or `"dark"` forces that starting mode for first-time visitors; users can still switch themes manually afterward if both `THEME_DEFAULT` and `THEME_DARK` are available.
107
+
- A user's own saved preference, once they toggle the theme switcher, always takes precedence over `THEME_DEFAULT_MODE`.
108
+
-`THEME_DEFAULT_MODE` has no effect on embedded dashboards: the embed SDK sets the
109
+
starting mode via its own `themeMode` URL parameter, which takes precedence and falls
110
+
back to light mode when the parameter is absent.
111
+
91
112
### App Branding
92
113
93
114
The application name shown in the browser title bar and navigation can be
0 commit comments