You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by je...@apache.org on 2022/09/26 15:09:16 UTC
[airflow] 07/13: Resolve warning about DISTINCT ON query on dags view (#26608)
This is an automated email from the ASF dual-hosted git repository.
jedcunningham pushed a commit to branch v2-4-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
commit e436cb95f441312f69eaf62153a2c57903f950ad
Author: Daniel Standish <15...@users.noreply.github.com>
AuthorDate: Fri Sep 23 01:52:26 2022 -0700
Resolve warning about DISTINCT ON query on dags view (#26608)
Closes #26607
(cherry picked from commit 55d11464c047d2e74f34cdde75d90b633a231df2)
---
airflow/www/views.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/airflow/www/views.py b/airflow/www/views.py
index 65e825510d..cc85e23b11 100644
--- a/airflow/www/views.py
+++ b/airflow/www/views.py
@@ -707,7 +707,7 @@ class Airflow(AirflowBaseView):
else:
dag.can_delete = (permissions.ACTION_CAN_DELETE, dag_resource_name) in user_permissions
- dagtags = session.query(DagTag.name).distinct(DagTag.name).all()
+ dagtags = session.query(func.distinct(DagTag.name)).all()
tags = [
{"name": name, "selected": bool(arg_tags_filter and name in arg_tags_filter)}
for name, in dagtags