Repository navigation
chore: freeze the UUID of examples DB - #15724
Merged
Merged
Conversation
betodealmeida
force-pushed
the
set_examples_db_uuid
branch
from
July 15, 2021 22:05
b9aff5e to
0a4bc13
Compare
betodealmeida
commented
Jul 15, 2021
| python_date_format: null | ||
| version: 1.0.0 | ||
| database_uuid: 566ca280-3da8-967e-4aa4-4b349218736a | ||
| database_uuid: a2dc77af-e654-49bb-b321-40f6b559a1ee |
Member
Author
There was a problem hiding this comment.
Other datasets inside superset/examples/configs/datasets/examples already had the UUID set to this, so I kept it and updated this one.
Codecov Report
@@ Coverage Diff @@
## master #15724 +/- ##
==========================================
+ Coverage 76.91% 76.94% +0.02%
==========================================
Files 983 983
Lines 51583 51641 +58
Branches 6979 6994 +15
==========================================
+ Hits 39673 39733 +60
+ Misses 11688 11682 -6
- Partials 222 226 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
betodealmeida
force-pushed
the
set_examples_db_uuid
branch
from
July 20, 2021 15:40
0a4bc13 to
02b5057
Compare
betodealmeida
force-pushed
the
set_examples_db_uuid
branch
from
July 20, 2021 16:04
02b5057 to
83e6e0c
Compare
eschutho
approved these changes
Jul 27, 2021
EBoisseauSierra
added a commit
to EBoisseauSierra/superset
that referenced
this pull request
Sep 6, 2021
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 <[email protected]>
opus-42
pushed a commit
to opus-42/incubator-superset
that referenced
this pull request
Nov 14, 2021
cccs-RyanS
pushed a commit
to CybercentreCanada/superset
that referenced
this pull request
Dec 17, 2021
QAlexBall
pushed a commit
to QAlexBall/superset
that referenced
this pull request
Dec 29, 2021
cccs-rc
pushed a commit
to CybercentreCanada/superset
that referenced
this pull request
Mar 6, 2024
qfcwell
pushed a commit
to qfcwell/superset
that referenced
this pull request
May 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SUMMARY
Currently when we run
load-examplesthe examples DB is created with a random UUID. This makes it hard to move across instances datasets/charts/dashboards that reference the examples DB, since the UUID doesn't match.This PR freezes the UUID of the examples DB.
There's one gotcha. If the user has created the examples DB before this PR, but runs
load-examplesafter this patch we won't find the examples DB by searching for the frozen UUID. Instead, we need to search by name. This is how currently theload-examplesprocess works. I kept the logic for when we can't find the examples DB via the UUID.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Loaded examples:
Then checked the UUID of the examples DB created:
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION