Skip to content

Support multi-column sort in the Dags list table - #72558

Merged
bbovenzi merged 2 commits into
apache:mainfrom
Andrushika:multisort-dags-list
Sep 23, 2026
Merged

bbovenzi merged 2 commits into
apache:mainfrom
Andrushika:multisort-dags-list

Conversation

@Andrushika

Copy link
Copy Markdown
Contributor

Why

Sorting the Dags list by latest run puts Dags without any run in reverse alphabetical order. The backend already accepts several order_by values since #53408, but the Dags list only sent the first one.

What

Send every sort from the table state as order_by, and write all of them to the URL. Shift-click on a column header adds a secondary sort.

Card view still has a single sort dropdown, so there is no way to set a secondary sort there. But a sort set in table view can still apply after switching to card view. I plan to add a secondary sort control to card view in a follow-up PR.

2026-09-05.6.43.53.mov

closes: #46383


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Fable 5.1)

Generated-by: Claude Code (Fable 5.1) following the guidelines

@boring-cyborg boring-cyborg Bot added the area:UI Related to UI/UX. For Frontend Developers. label Sep 5, 2026
@Andrushika Andrushika changed the title UI: Support multi-column sort in the Dags list table Support multi-column sort in the Dags list table Sep 5, 2026
Sorting by latest run with a single criterion leaves Dags without runs in
reverse alphabetical order, because the backend applies the primary key
tiebreak in the same direction as the primary sort. The backend already
accepts several order_by values, but the Dags list only sent the first one
and the URL serializer dropped every sort but the last.
@Andrushika

Copy link
Copy Markdown
Contributor Author

Hi @pierrejeambrun, could you please take a look at this when you have a chance? Thanks!

@Andrushika

Copy link
Copy Markdown
Contributor Author

Hi @bbovenzi, could you please take a look at this when you have a chance? Thanks!

@bbovenzi bbovenzi added this to the Airflow 3.4.0 milestone Sep 22, 2026
@Andrushika

Copy link
Copy Markdown
Contributor Author

Now we have a tooltip here!

image

@Andrushika
Andrushika marked this pull request as draft September 23, 2026 09:24
@Andrushika
Andrushika marked this pull request as ready for review September 23, 2026 09:24
@Andrushika
Andrushika marked this pull request as draft September 23, 2026 10:20
@Andrushika
Andrushika marked this pull request as ready for review September 23, 2026 10:20
@bbovenzi
bbovenzi merged commit 1f03df9 into apache:main Sep 23, 2026
207 of 211 checks passed
@Andrushika
Andrushika deleted the multisort-dags-list branch September 23, 2026 18:32
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AIP-84 | Add multisort to dags list request

2 participants