GitHub user illaaa added a comment to the discussion: Import dashboard with 
overwriting all related objects (charts and datasets)

> @illaaa Thanks for the interesting insight, would it possible to share some 
> examples how you have structured the objects in the zip file? I am facing a 
> similar issue as yours related to importing charts

The objects are structured the same as they are when you export each separate 
entity, i.e. dashboard package should look like that:
|--archive.zip
|--|--any_folder_name
|--|--|--**metadata.yaml**
|--|--|--**dashboards**
|--|--|--|--my_dashboard_1.yaml
|--|--|--**charts**
|--|--|--|--my_chart_1.yaml
|--|--|--|--my_chart_2.yaml
|--|--|--**databases**
|--|--|--|--my_database_1.yaml
|--|--|--**datasets**
|--|--|--|--my_database_1
|--|--|--|--|--my_dataset_1.yaml

For charts the structure is the same but without **dashboards** folder, and 
etc. for other import packages. And keep in mind the "type" attribute in 
metadata.yaml, it's different for each different "package type".

Also, if you want to import a few entities of the same type (i.e. 5 
dashboards), you can put everything in one package and import it once.

GitHub link: 
https://github.com/apache/superset/discussions/31306#discussioncomment-12830808

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