You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/10/07 20:40:11 UTC

[GitHub] [superset] EBoisseauSierra commented on pull request #16606: fix(import-dashboards): Match db via name not UUID

EBoisseauSierra commented on pull request #16606:
URL: https://github.com/apache/superset/pull/16606#issuecomment-938139484


   With hindsight, it might be an XY problem I've been trying to solve.
   
   Indeed, what we eventually want to achieve is to “clone” one dev instance into production — with the slight difference that our (assuming only) database on dev would be connected to `postgresql://devuser:Tr0ub4dor&3@dev.acme.org/mock_data`, while on  prod it would query `postgresql://produser:correcthorsebatterystaple@prod.acme.org/client_data`.
   
   Our process so far is:
   
   * on dev:
     1. `superset export-dashboards`
     2. `git push`
   * on prod:
     1. `superset set-database-uri -d foobar -u postgresql://produser:correcthorsebatterystaple@prod.acme.org/client_data`
     2. `git pull`
     3. `superset import-dashboards`
     
     … and we'd like the import to use the already existing `foobar` db connection (i.e. to the prod db), rather than using the URI found in the export (which is pointing to the dev db) — using only the db name (`foobar`) as the matching key (and without having to manually tinker with the URI in the export archive, so that all can be automated nicely).
     
    (I know this should rather be a new Issue, I'll format it as such in the upcoming days.) 


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org