betodealmeida commented on issue #13914:
URL: https://github.com/apache/superset/issues/13914#issuecomment-812047635


   @krsnik93, this is not "completely broken", and I feel that that language is 
disrespectful.
   
   The new export produces a ZIP file. The contents of the ZIP file include 
related objects needed to fully import what was exported. For a dashboard, that 
means charts, datasets and databases. This is described in 
https://github.com/apache/superset/issues/11167.
   
   The reason why the filename includes the date is to help differentiate 
between exports. Exports can contain multiple objects (you could export 100 
dashboards with all the associated charts, datasets and databases, and it would 
still be a single file), so we can't name the file based on the exported object.
   
   The ZIP is an atomic bundle. You're not supposed to unzip it and import 
individual YAML files. You have to import the whole ZIP either in the UI or in 
the command line.
   
   The reason why you can import YAML in the command line and UI is because in 
the original export/import we would use JSON for dashboards, and YAML for 
datasets.
   
   This is the expected behavior:
   
   1. The filename should have the `.zip` extension, so that's a bug.
   2. If you export a ZIP file from the command line you should be able to 
import that unmodified file, either from the UI or from the CLI. If it doesn't 
work, it's a bug.
   3. If you try to import an old JSON or YAML file it should work, both from 
the UI as well as CLI. If it doesn't work it's a bug.


-- 
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]

Reply via email to