betodealmeida commented on a change in pull request #15292:
URL: https://github.com/apache/superset/pull/15292#discussion_r660170131



##########
File path: superset/queries/saved_queries/commands/importers/v1/__init__.py
##########
@@ -58,7 +61,12 @@ def _import(
         database_ids: Dict[str, int] = {}
         for file_name, config in configs.items():
             if file_name.startswith("databases/") and config["uuid"] in 
database_uuids:
-                database = import_database(session, config, overwrite=False)
+                database = import_database(
+                    session,
+                    config,
+                    overwrite=False,
+                    requester_as_owner=requester_as_owner,

Review comment:
       Seems like most of the work in this PR is carrying this parameter 
through the stack. I think a simpler solution might be setting the owner 
attribute directly in the configs, so that we don't have to carry this boolean.




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to