mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
fix(assets import): Ensure old datasource ids are not referenced in imported charts (#25086)
(cherry picked from commit b240b795b5)
This commit is contained in:
committed by
Michael S. Molina
parent
9ceba619c3
commit
f34e21be69
@@ -141,6 +141,9 @@ class TestImportAssetsCommand(SupersetTestCase):
|
||||
dataset = chart.table
|
||||
assert str(dataset.uuid) == dataset_config["uuid"]
|
||||
|
||||
assert chart.query_context is None
|
||||
assert json.loads(chart.params)["datasource"] == dataset.uid
|
||||
|
||||
database = dataset.database
|
||||
assert str(database.uuid) == database_config["uuid"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user