phanikumv commented on code in PR #32883:
URL: https://github.com/apache/airflow/pull/32883#discussion_r1284134678
##########
airflow/utils/scheduler_health.py:
##########
@@ -35,12 +37,12 @@ def do_GET(self):
if self.path == "/health":
try:
with create_session() as session:
- scheduler_job = (
- session.query(Job)
+ scheduler_job = session.scalars(
Review Comment:
fixed
##########
airflow/www/security.py:
##########
@@ -563,11 +561,11 @@ def add_homepage_access_to_custom_roles(self) -> None:
def get_all_permissions(self) -> set[tuple[str, str]]:
"""Returns all permissions as a set of tuples with the action and
resource names."""
return set(
- self.appbuilder.get_session.query(self.permission_model)
- .join(self.permission_model.action)
- .join(self.permission_model.resource)
- .with_entities(self.action_model.name, self.resource_model.name)
- .all()
+ self.appbuilder.get_session.execute(
+ select(self.action_model.name, self.resource_model.name)
+ .join(self.permission_model.action)
+ .join(self.permission_model.resource)
+ ).all()
Review Comment:
fixed
--
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]