This is an automated email from the ASF dual-hosted git repository.
erikrit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
The following commit(s) were added to refs/heads/master by this push:
new 3efdfc5 Infer SQL_LAB QuerySource from referrer (#9181)
3efdfc5 is described below
commit 3efdfc53456aa702d01fee90c17b79ba9531c9b8
Author: Erik Ritter <[email protected]>
AuthorDate: Thu Feb 20 13:38:47 2020 -0800
Infer SQL_LAB QuerySource from referrer (#9181)
---
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