john-bodley commented on code in PR #25031:
URL: https://github.com/apache/superset/pull/25031#discussion_r1300817095


##########
superset/models/dashboard.py:
##########
@@ -414,13 +415,12 @@ def export_dashboards(  # pylint: disable=too-many-locals
                 "native_filter_configuration", []
             )
             for native_filter in native_filter_configuration:
-                session = db.session()

Review Comment:
   It's unclear why a new session was instantiated (and never closed) here. On 
line #433 the Flask-SQLAlchemy session is used and thus it seems prudent (and 
hopefully) safe to use `db.session`. 



-- 
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: notifications-unsubscr...@superset.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to