fix: actually write changes on "superset import-datasources" (#14817)

This commit is contained in:
Régis Behmo 2024-06-25 17:25:38 +02:00 committed by GitHub
parent 160cece017
commit 5ffa616d98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -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