john-bodley commented on code in PR #27154:
URL: https://github.com/apache/superset/pull/27154#discussion_r1496199538


##########
superset/cli/importexport.py:
##########
@@ -176,6 +176,8 @@ def import_datasources(path: str) -> None:
     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")

Review Comment:
   Please use the `override_user` context manager.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to