Skip to content

ui: Redirect Range Report page to Hot Ranges page#104677

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
gtr:hot-ranges-range-report
Jun 15, 2023
Merged

ui: Redirect Range Report page to Hot Ranges page#104677
craig[bot] merged 1 commit intocockroachdb:masterfrom
gtr:hot-ranges-range-report

Conversation

@gtr
Copy link
Copy Markdown

@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
Copy Markdown
Member

This change is Reviewable

@gtr gtr requested review from a team and j82w June 9, 2023 18:58
@gtr
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Author

gtr commented Jun 15, 2023

TFTR!
bors r+

@maryliag maryliag added the backport-23.1.x PAST MAINTENANCE SUPPORT: 23.1 patch releases via ER request only label Jun 15, 2023
@craig
Copy link
Copy Markdown
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 PAST MAINTENANCE SUPPORT: 23.1 patch releases via ER request only

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