From 5ffa616d98695645cace5a8a713714628d3735d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Behmo?= Date: Tue, 25 Jun 2024 17:25:38 +0200 Subject: [PATCH] fix: actually write changes on "superset import-datasources" (#14817) --- superset/commands/dataset/importers/v0.py | 1 + 1 file changed, 1 insertion(+) diff --git a/superset/commands/dataset/importers/v0.py b/superset/commands/dataset/importers/v0.py index 14be54174a..acfe4a2c91 100644 --- a/superset/commands/dataset/importers/v0.py +++ b/superset/commands/dataset/importers/v0.py @@ -260,6 +260,7 @@ class ImportDatasetsCommand(BaseCommand): ) dataset["database_id"] = database.id SqlaTable.import_from_dict(dataset, sync=self.sync) + db.session.commit() def validate(self) -> None: # ensure all files are YAML