You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2024/06/25 15:25:45 UTC
(superset) branch master updated: fix: actually write changes on "superset import-datasources" (#14817)
This is an automated email from the ASF dual-hosted git repository.
rusackas pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 5ffa616d98 fix: actually write changes on "superset import-datasources" (#14817)
5ffa616d98 is described below
commit 5ffa616d98695645cace5a8a713714628d3735d2
Author: Régis Behmo <gi...@behmo.com>
AuthorDate: Tue Jun 25 17:25:38 2024 +0200
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