This is an automated email from the ASF dual-hosted git repository. erikrit pushed a commit to branch erik-ritter--sqllab-querysource in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
commit f8d4ee95fbfb180015647f66d29085caae5ece15 Author: Erik Ritter <[email protected]> AuthorDate: Thu Feb 20 13:19:04 2020 -0800 Infer SQL_LAB QuerySource from referrer --- superset/models/core.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/superset/models/core.py b/superset/models/core.py index 769250f..eee8550 100755 --- a/superset/models/core.py +++ b/superset/models/core.py @@ -319,6 +319,8 @@ class Database( source = utils.QuerySource.DASHBOARD elif "/superset/explore/" in request.referrer: source = utils.QuerySource.CHART + elif "/superset/sqllab/" in request.referrer: + source = utils.QuerySource.SQL_LAB sqlalchemy_url, params = DB_CONNECTION_MUTATOR( sqlalchemy_url, params, effective_username, security_manager, source
