-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Prefill period selector comparison values from URL hash #21242
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
Conversation
@mneudert please either remove the Needs review label if the PR is still draft or move the PR from draft to 'full', at the moment I'm not sure if it's ready for review or not. |
e630b2c
to
085db93
Compare
95166d1
to
4ce4f76
Compare
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.
Thanks for completing the suggestions, nice work 🎉
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.
Haven't run this locally but the code changes look good to me.
@mneudert feel free to merge once the conflicts were resolved by rebasing and rebuilding the vue files... |
Co-authored-by: caddoo <matthew.caddoo@gmail.com>
4ce4f76
to
d98107c
Compare
Description:
The period selector does not keep information about the last selected comparison type (e.g "previous year" or "custom") across page reloads. Adding a new parameter containing the last type selection solves this issue without guessing the type based on the values of
compareDates
orcomparePeriods
(or introducing custom period parsers).Fixes #20321.
Review