-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ui: fix 3rd click on sorting table column #75473
Conversation
Previously, when a user clicked the 3rd time on the same column, the page was crashing (Only happening on Statement and Transaction pages). This would happen because on those two pages we need to update when we switch tabs, and the value of sort being set to null was causing the componentDidUpdate being called constantly. Since we always have a sort happening on the table, this commit removes the 3rd option of blank selection. This commit also updates the Session tab to be properly updating the query params when the tab is switched. Fixes cockroachdb#74440 Release note (bug fix): Fix SQL Activity pages crashing when a column was sorted by the 3rd time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, null
s is so scary. Is there anywhere we can test this?
Reviewable status: complete! 0 of 0 LGTMs obtained
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we the change there is not way to test the previous behaviour
Reviewable status: complete! 0 of 0 LGTMs obtained
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
*with this change
Reviewable status: complete! 0 of 0 LGTMs obtained
bors r+ |
Build failed (retrying...): |
Build succeeded: |
Previously, when a user clicked the 3rd time on the same
column, the page was crashing (Only happening on
Statement and Transaction pages). This would happen
because on those two pages we need to update when we switch
tabs, and the value of sort being set to null was
causing the componentDidUpdate being called constantly.
Since we always have a sort happening on the table, this
commit removes the 3rd option of blank selection.
This commit also updates the Session tab to be properly
updating the query params when the tab is switched.
Fixes #74440
Release note (bug fix): Fix SQL Activity pages crashing when
a column was sorted by the 3rd time.