GitHub user dosubot[bot] added a comment to 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 continue talking to [Dosu](https://dosu.dev), mention @dosu.*

---
<sup>Help Dosu learn! Give it feedback: [Great 
Response](https://app.dosu.dev/response-feedback/0ea0b441-8d49-4e28-93a3-c54abfb56893?feedback_type=great_response)
 | [Irrelevant 
Answer](https://app.dosu.dev/response-feedback/0ea0b441-8d49-4e28-93a3-c54abfb56893?feedback_type=irrelevant_answer)
 | [Incorrect 
Sources](https://app.dosu.dev/response-feedback/0ea0b441-8d49-4e28-93a3-c54abfb56893?feedback_type=incorrect_sources)
 | [Too 
Verbose](https://app.dosu.dev/response-feedback/0ea0b441-8d49-4e28-93a3-c54abfb56893?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/0ea0b441-8d49-4e28-93a3-c54abfb56893?feedback_type=hallucination)
 | [Bug 
Report](https://app.dosu.dev/response-feedback/0ea0b441-8d49-4e28-93a3-c54abfb56893?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/0ea0b441-8d49-4e28-93a3-c54abfb56893?feedback_type=other)</sup>


GitHub link: 
https://github.com/apache/superset/discussions/33418#discussioncomment-13128822

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to