justinpark commented on code in PR #25151:
URL: https://github.com/apache/superset/pull/25151#discussion_r1323412462


##########
superset/models/core.py:
##########
@@ -492,6 +492,8 @@ def _get_sqla_engine(
                     source = utils.QuerySource.DASHBOARD
                 elif "/explore/" in request.referrer:
                     source = utils.QuerySource.CHART
+                elif "/sqllab/" in request.referrer:
+                    source = utils.QuerySource.SQL_LAB
                 elif "/superset/sqllab" in request.referrer:

Review Comment:
   Good catch



-- 
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