Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(import-dashboards): Match db via name not UUID
NB: We're here discussing the `import-dashboards` CLI with the `VERSIONED_EXPORT` feature flag *turned ON* — cf. apache#11349 Currently, `superset import-dashboards` looks up at the required databases (`export/databases/*.yaml`). If the db URI (`sqlalchemy_uri` key) contains a masked password, then the script looks up for already existing databases record. The match is currently done using db UUID. However, '<insert how UUIDs are generated>', the same db connection (same URI) might not have the same UUID on the export instance, and on the import one. (Cf. apache#16395) Thus, we propose to lookup for the db _name_ instead — this would also allow for updating the db URI between the export and the import instance. Note: this change should not be propagated for the demo db, as its UUID has been frozen in apache#15724. Signed-off-by: Étienne Boisseau-Sierra <etienne.boisseau-sierra@unipart.io>
- Loading branch information