Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(import-datasources): Use "admin" user as default for importing datasources #27154

Merged
merged 7 commits into from
Feb 27, 2024
2 changes: 2 additions & 0 deletions superset/cli/importexport.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@
from superset.commands.dataset.importers.dispatcher import ImportDatasetsCommand
from superset.commands.importers.v1.utils import get_contents_from_bundle

g.user = security_manager.find_user(username="admin")

Check warning on line 179 in superset/cli/importexport.py

View check run for this annotation

Codecov / codecov/patch

superset/cli/importexport.py#L179

Added line #L179 was not covered by tests
ddxv marked this conversation as resolved.
Show resolved Hide resolved

if is_zipfile(path):
with ZipFile(path) as bundle:
contents = get_contents_from_bundle(bundle)
Expand Down
Loading