Skip to content

Fix sorting of tags#31553

Merged
pierrejeambrun merged 4 commits into
apache:mainfrom
arjunanan6:arjunanan6/fix-sorting-tags
May 26, 2023
Merged

Fix sorting of tags#31553
pierrejeambrun merged 4 commits into
apache:mainfrom
arjunanan6:arjunanan6/fix-sorting-tags

Conversation

@arjunanan6

Copy link
Copy Markdown
Contributor

Closes: #31547

Added a sort to the tags that are to be displayed.

@boring-cyborg boring-cyborg Bot added area:UI Related to UI/UX. For Frontend Developers. area:webserver Webserver related Issues labels May 25, 2023
@arjunanan6

Copy link
Copy Markdown
Contributor Author

@ashb @pierrejeambrun Sorry about the mess, but could you check this again?

@malthe

malthe commented May 25, 2023

Copy link
Copy Markdown
Contributor
>   {% for tag in tags.sort() %}
E   TypeError: '<' not supported between instances of 'dict' and 'dict'

I guess tags are sometimes a list of dicts, not strings?

@pierrejeambrun pierrejeambrun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed tags can be a dict, example in the homepage here

Comment thread airflow/www/templates/airflow/dags.html Outdated
@pierrejeambrun pierrejeambrun merged commit 24e52f9 into apache:main May 26, 2023
@eladkal eladkal added this to the Airflow 2.6.2 milestone May 26, 2023
@eladkal eladkal added the type:bug-fix Changelog: Bug Fixes label May 26, 2023
@arjunanan6 arjunanan6 deleted the arjunanan6/fix-sorting-tags branch May 27, 2023 06:20
eladkal pushed a commit that referenced this pull request Jun 8, 2023
* Fix sorting of tags

* Change sorting in views.py

* Add ordering into query

(cherry picked from commit 24e52f9)
eladkal pushed a commit that referenced this pull request Jun 9, 2023
* Fix sorting of tags

* Change sorting in views.py

* Add ordering into query

(cherry picked from commit 24e52f9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers. area:webserver Webserver related Issues type:bug-fix Changelog: Bug Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tag filter doesn't sort tags alphabetically

7 participants