krsnik93 opened a new issue #14067:
URL: https://github.com/apache/superset/issues/14067
I am exporting and then importing back the Examples database by using
Superset's REST API.
I am able to use the same process to export/import back charts, dashboards
and datasets, but not databases.
### Expected results
Expect to be able to import back.
### Actual results
```
{"message":{"datasets/examples/video_game_sales.yaml":{"params":["Not a
valid mapping type."]}}}
```
#### Screenshots
If applicable, add screenshots to help explain your problem.
#### How to reproduce the bug
1. `curl --cookie "session=<cookie>"
https://<hostname>/api/v1/database/export/?q=[1] --output database_1.yaml`
2. `curl -X 'POST' --cookie "session=<cookie>"
'https://<hostname>/api/v1/database/import/' -H 'accept: application/json'
-H 'Content-Type: multipart/form-data' -F 'formData=@database_1.yaml'
-F'overwrite=true' --header "X-CSRFToken: <csrf_token>" -H "Referer:
https://<hostname>/api/v1/database/import/"`
### Environment
(please complete the following information):
- superset version: 1.0.0
- python version: 3.8
### Checklist
Make sure to follow these steps before submitting your issue - thank you!
- [x] I have checked the superset logs for python stacktraces and included
it here as text if there are any.
- [x] I have reproduced the issue with at least the latest released version
of superset.
- [x] I have checked the issue tracker for the same issue and I haven't
found one similar.
### Additional context
Add any other context about the problem here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]