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: preserve time window selection on window reload #86157

Conversation

koorosh
Copy link
Collaborator

@koorosh koorosh commented Aug 15, 2022

This patch fixes recently introduced regression when
selected time window on SQL Activity or Metrics pages
was not preserved after window reload.
Now, every time timescale is changed, it's preserved
in session storage and restored on initialization of
TimeScale reducer.

Release note: None

Release justification: low risk, high benefit changes to existing functionality

Resolves: #85815

@koorosh koorosh requested review from maryliag and a team August 15, 2022 17:24
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@maryliag maryliag left a comment

Choose a reason for hiding this comment

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

thank you for looking into it!
:lgtm:

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

@koorosh koorosh force-pushed the ui-preserve-time-window-selection-on-page-reload branch from c917d5d to 879b537 Compare August 15, 2022 18:13
This patch fixes recently introduced regression when
selected time window on SQL Activity or Metrics pages
was not preserved after window reload.
Now, everytime timescale is changed, it's preserved
in session storage and restored on initialization of
TimeScale reducer.

Release note: None

Release justification: low risk, high benefit changes to existing functionality
@koorosh koorosh force-pushed the ui-preserve-time-window-selection-on-page-reload branch from 879b537 to 62a6b1e Compare August 15, 2022 19:25
@koorosh
Copy link
Collaborator Author

koorosh commented Aug 15, 2022

bors r+

@craig
Copy link
Contributor

craig bot commented Aug 15, 2022

Build succeeded:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ui: selected time window on Metrics page is not preserved in URL path
3 participants