Repository navigation
Sync the UI Dags list applied sort rule with URL query param - #73622
Merged
Merged
Conversation
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.
Andrushika
requested review from
bbovenzi,
choo121600,
guan404ming,
pierrejeambrun,
ryanahamilton,
shubhamraj-git and
vatsrahul1001
as code owners
September 23, 2026 15:31
bbovenzi
approved these changes
Sep 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Follow-up of #72558.
UI tables keep the current sort in the
sortURL param, and also save it in localStorage on every change.stateToSearchParamsdropssortfrom the URL when it equals the saved sort. So after you sort a column and go to page 2, the URL is only?offset=1while 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
sortin 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?
Generated-by: Claude Code (Opus 5.5) following the guidelines