benjreinhart opened a new pull request #14742: URL: https://github.com/apache/superset/pull/14742
### SUMMARY **TLDR:** this change should enable async queries for public/anonymous users. The async queries experience runs queries in Celery workers instead of during the web request. Queries check some state against the requesting user (e.g., `can_access`) and assumes the presence of a `flask.g.user` object. The Celery workers therefore need to set the user on `flask.g` which today they do for requests that were initiated by a logged in user. However, it is broken for anonymous users since there is no user id to pass to the Celery workers. ### TESTING INSTRUCTIONS Manual ### Notes I didn't seem to find a cleaner way to grab a reference to an anonymous user. Interested to know if there's a better approach than reaching into flask login for this. @dpgaspar maybe? cc @robdiciuccio @dpgaspar -- 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. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
