Skip to content
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: Redirect Range Report page to Hot Ranges page #104677

Merged
merged 1 commit into from
Jun 15, 2023

Conversation

gtr
Copy link
Contributor

@gtr gtr commented Jun 9, 2023

Fixes: #102377.

Previously, when a user selected a range ID from the Hot Ranges page,
the left side menu would switch to Advanced Debug and the back button
would also redirect to the Advanced Dedug page. This commit ensures that
when a range ID is selected, the left side menu will stay on the Hot
Ranges page and also changes the back button to redirect back to the
Hot Ranges page.

image

Release note (ui change): The Range Report page (route
/reports/range/:rangeID) shows the "Hot Ranges" menu item as
highlighted in the left side menu. The back button in the Range Report
page redirects back to the Hot Ranges page.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@gtr gtr requested review from a team and j82w June 9, 2023 18:58
@gtr
Copy link
Contributor Author

gtr commented Jun 9, 2023

One thing about this change is that since this link (/reports/range/:rangeId) is still accessible from the Advanced Debug page, when a user enters this page from there, they will still see "Hot Ranges" as the back button link. I don't think it's a big deal since the Range Report is related to Hot Ranges but WDYT @j82w?

@gtr gtr marked this pull request as ready for review June 9, 2023 19:03
@gtr gtr requested a review from a team June 9, 2023 19:03
Fixes: cockroachdb#102377.

Previously, when a user selected a range ID from the Hot Ranges page,
the left side menu would switch to Advanced Debug and the back button
would also redirect to the Advanced Dedug page. This commit ensures that
when a range ID is selected, the left side menu will stay on the Hot
Ranges page and also changes the back button to redirect back to the
Hot Ranges page.

Release note (ui change): The Range Report page (route
`/reports/range/:rangeID`) shows the "Hot Ranges" menu item as
highlighted in the left side menu. The back button in the Range Report
page redirects back to the Hot Ranges page.
@gtr gtr force-pushed the hot-ranges-range-report branch from 4f4b932 to 0d33de9 Compare June 9, 2023 19:30
Copy link
Contributor

@j82w j82w left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @gtr)

@gtr
Copy link
Contributor Author

gtr commented Jun 15, 2023

TFTR!
bors r+

@maryliag maryliag added the backport-23.1.x Flags PRs that need to be backported to 23.1 label Jun 15, 2023
@craig
Copy link
Contributor

craig bot commented Jun 15, 2023

Build succeeded:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-23.1.x Flags PRs that need to be backported to 23.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ui: hot ranges redirects to advanced debug on node select
4 participants