This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 04b1a45416 fix(security-manager): switch from deprecated get_session 
to session attribute (#35290)
04b1a45416 is described below

commit 04b1a4541626266b7ed2c2a786657d0bf75677f4
Author: Tran Ngoc Tuan <[email protected]>
AuthorDate: Sat Oct 4 04:47:35 2025 +0700

    fix(security-manager): switch from deprecated get_session to session 
attribute (#35290)
---
 superset/security/manager.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/superset/security/manager.py b/superset/security/manager.py
index caa6d559c2..fb7c71050e 100644
--- a/superset/security/manager.py
+++ b/superset/security/manager.py
@@ -623,7 +623,7 @@ class SupersetSecurityManager(  # pylint: 
disable=too-many-public-methods
             and form_data.get("slice_id") == 0
             and (chart_id := form_data.get("chart_id"))
             and (
-                slc := self.get_session.query(Slice)
+                slc := self.session.query(Slice)
                 .filter(Slice.id == chart_id)
                 .one_or_none()
             )
@@ -633,7 +633,7 @@ class SupersetSecurityManager(  # pylint: 
disable=too-many-public-methods
             and (
                 drillable_columns := {
                     row[0]
-                    for row in self.get_session.query(TableColumn.column_name)
+                    for row in self.session.query(TableColumn.column_name)
                     .filter(TableColumn.table_id == datasource.id)
                     .filter(TableColumn.groupby)
                     .all()

Reply via email to