This is an automated email from the ASF dual-hosted git repository.
pierrejeambrun pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 24e52f92bd Fix sorting of tags (#31553)
24e52f92bd is described below
commit 24e52f92bd9305bf534c411f9455460060515ea7
Author: Arjun Anandkumar <[email protected]>
AuthorDate: Fri May 26 18:31:37 2023 +0200
Fix sorting of tags (#31553)
* Fix sorting of tags
* Change sorting in views.py
* Add ordering into query
---
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 f2d027b512..54e9053638 100644
--- a/airflow/www/views.py
+++ b/airflow/www/views.py
@@ -865,7 +865,7 @@ class Airflow(AirflowBaseView):
dag.can_trigger = dag.can_edit and can_create_dag_run
dag.can_delete =
get_airflow_app().appbuilder.sm.can_delete_dag(dag.dag_id, g.user)
- dagtags = session.query(func.distinct(DagTag.name)).all()
+ dagtags =
session.query(func.distinct(DagTag.name)).order_by(DagTag.name).all()
tags = [
{"name": name, "selected": bool(arg_tags_filter and name in
arg_tags_filter)}
for name, in dagtags