You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "dosubot[bot] (via GitHub)" <gi...@apache.org> on 2026/05/02 03:15:33 UTC
Re: [D] superset 6 [superset]
GitHub user dosubot[bot] edited a comment on the discussion: superset 6
<!-- Answer -->
The pivoted excel/csv download options are **not appearing** for your custom plugin because Superset uses a **hardcoded array check** based on the `viz_type` string, not plugin registration.
The [`VIZ_TYPES_PIVOTABLE` array](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/src/explore/components/useExploreAdditionalActionsMenu/index.jsx#L72) only contains `'pivot_table_v2'`:
```javascript
const VIZ_TYPES_PIVOTABLE = [VizType.PivotTable];
```
Your `'smsrc-custom-pivot'` plugin isn't in this array, so the UI doesn't show the pivoted download options.
**To fix this, you need to modify two files:**
**1. Explore View** - Edit `superset-frontend/src/explore/components/useExploreAdditionalActionsMenu/index.jsx` [line 72](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/src/explore/components/useExploreAdditionalActionsMenu/index.jsx#L72):
```javascript
const VIZ_TYPES_PIVOTABLE = [VizType.PivotTable, 'smsrc-custom-pivot'];
```
**2. Dashboard View** - Edit `superset-frontend/src/dashboard/components/SliceHeaderControls/index.tsx` [line 456](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/src/dashboard/components/SliceHeaderControls/index.tsx#L456):
```javascript
const isPivotTable =
slice.viz_type === VizType.PivotTable ||
slice.viz_type === 'smsrc-custom-pivot';
```
After these changes, rebuild the frontend and your custom pivot plugin will have the same pivoted export options as the built-in pivot table. This allows you to keep both plugins in your project with the download functionality working for each.
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fsuperset).*
---
Docs are dead. Just use [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-tagline&utm_term=apache%2Fsuperset).
[](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-feedback&utm_term=apache%2Fsuperset&message_id=5f5dd077-3d83-4aa1-9dbe-c3ed44d02a05) [](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-ask-repo&utm_term=apache%2Fsuperset) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-share-team&utm_term=apache%2Fsuperset)
GitHub link: https://github.com/apache/superset/discussions/38578#discussioncomment-16082259
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org