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:19:38 UTC
Re: [D] Exporting Dashboard exportes the current environment metadata [superset]
GitHub user dosubot[bot] edited a comment on the discussion: Exporting Dashboard exportes the current environment metadata
<!-- Answer -->
I found a similar closed issue regarding the export/import functionality in Apache Superset. The suggested solution was to modify the source code in the file "superset/dashboards/commands/importers/v1/__init__.py" by setting the "overwrite" parameter to True in functions like `import_chart`, `import_dataset`, etc. This allows the charts to be imported and overwritten. However, this is considered a temporary hack and not a permanent fix. It was noted that this issue might be specific to version 1.4.1 and may be addressed in version 1.5.0 <sup>[[1]](https://github.com/apache/superset/issues/19502)</sup>.
To export a dashboard with its charts and datasets while changing the environment metadata, you can use the `export_dashboards` command to generate a ZIP file containing the dashboard, charts, datasets, and database metadata. Modify these files to change the environment metadata before importing them into a new environment using the `import_dashboards` command <sup>[[2]](https://github.com/apache/superset/blob/master/tests/integration_tests/dashboards/commands_tests.py)</sup><sup>[[3]](https://github.com/apache/superset/blob/master/superset/cli/importexport.py)</sup>.
<!-- 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=0ea0b441-8d49-4e28-93a3-c54abfb56893) [](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/33418#discussioncomment-13128822
----
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