EBoisseauSierra opened a new pull request #16606:
URL: https://github.com/apache/superset/pull/16606


   ### SUMMARY
   
   NB: We're here discussing the `import-dashboards` CLI with the 
`VERSIONED_EXPORT` feature flag *turned ON* — cf. #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. #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.
   
   ### TESTING INSTRUCTIONS
   <!--- Required! What steps can be taken to manually verify the changes? -->
   
   WIP — help required
   
   ### ADDITIONAL INFORMATION
   <!--- Check any relevant boxes with "x" -->
   <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
   - [x] Has associated issue: #16395 
   - [x] Required feature flags: `"VERSIONED_EXPORT": True`
   - [ ] Changes UI
   - [ ] Includes DB Migration (follow approval process in 
[SIP-59](https://github.com/apache/superset/issues/13351))
     - [ ] Migration is atomic, supports rollback & is backwards-compatible
     - [ ] Confirm DB migration upgrade and downgrade tested
     - [ ] Runtime estimates and downtime expectations provided
   - [ ] Introduces new feature or API
   - [ ] Removes existing feature or API
   


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

To unsubscribe, e-mail: [email protected]

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