-
Notifications
You must be signed in to change notification settings - Fork 155
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
Reset date range does not update the since and until date hashes #1044
Comments
It seems to be working fine on mine. |
@Tejas2805 can you try to following the steps to see if the same bug can be reproduced?
|
I believe this bug only happens you do not specify the since and until date in the command line to generate the report, which as a result sets the I can do a PR to remove the check below, but I believe we can remove the |
The code here did serve a purpose. It stores the date range and help restore the page when refresh. Pls dont remove it. |
Oops I mean removing the if() statements.
We can change it to
|
I believe that the |
I feel we should not add the hash if there is no need to do so. Maybe you should change the reset date function to rectify the behavior. |
Thanks for the suggestion. I implemented a simple fix (#1044) that would solve the issue but I feel that it's not very maintainable.
@jamessspanggg Can you help verify this? I'm not too certain if this is the case. The code was authored by you in #757 |
@0blivious is correct. The purpose of |
Resetting the date range would occasionally not change the date hashes in the URL, causing a refresh of the page to load the outdated filter date range. This bug occurs when until or since date is not specified on generating the report. Let's make sure that the date hashes gets updated all the time.
* 'master' of https://github.com/reposense/RepoSense: [reposense#1047] v_summary: simplify toDisplay user logic (reposense#1051) [reposense#658] Modify checkstyle configuration (reposense#1094) Add commit message length configuration border (reposense#1048) [reposense#1061] build.gradle: remove unused dependency (reposense#1095) [reposense#1044] Update date hashes on reset date range (reposense#1068)
To reproduce: modify the link since/until date url hashes. Reload the page. Click the reset date range button. Reload again to see that the dates are not updated. link
The text was updated successfully, but these errors were encountered: