Skip to content

Sync the UI Dags list applied sort rule with URL query param - #73622

Merged
bbovenzi merged 1 commit into
apache:mainfrom
Andrushika:sync-sort-url-param
Sep 25, 2026
Merged

bbovenzi merged 1 commit into
apache:mainfrom
Andrushika:sync-sort-url-param

Conversation

@Andrushika

Copy link
Copy Markdown
Contributor

Why

Follow-up of #72558.
UI tables keep the current sort in the sort URL param, and also save it in localStorage on every change. stateToSearchParams drops sort from the URL when it equals the saved sort. So after you sort a column and go to page 2, the URL is only ?offset=1 while the table is still sorted.

What

Always write the applied sort to the URL, so a shared link shows the same order. A page opened with only a saved sort still has no sort in the URL until the table changes, and I left that for a separate PR.

related: #72558


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

Generated-by: Claude Code (Opus 5.5) following the guidelines

stateToSearchParams dropped the sort param when it equalled the sort
saved in localStorage. Since apache#50720 the saved sort is updated on every
change, so after sorting a column and paging, the URL lost the sort
while the table still applied it.
@boring-cyborg boring-cyborg Bot added the area:UI Related to UI/UX. For Frontend Developers. label Sep 23, 2026
@Andrushika Andrushika changed the title Keep the table sort in the URL when it matches the saved sort Keep the Dags list sort URL query parameter in sync Sep 23, 2026
@Andrushika Andrushika changed the title Keep the Dags list sort URL query parameter in sync Sync the UI Dags list applied sort rule with URL query param Sep 23, 2026
@bbovenzi bbovenzi added this to the Airflow 3.4.0 milestone Sep 25, 2026
@bbovenzi
bbovenzi merged commit dd2c7fd into apache:main Sep 25, 2026
89 checks passed
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.

2 participants