mirror of
https://github.com/apache/superset.git
synced 2026-04-25 11:04:48 +00:00
fix(dash import): Ensure old datasource ids are not referenced in imported charts (#23582)
This commit is contained in:
@@ -565,6 +565,9 @@ class TestImportDashboardsCommand(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