-
Notifications
You must be signed in to change notification settings - Fork 8
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
Finally solved issue #1734 #1766
Conversation
Pull reviewers statsStats of the last 30 days for popstellar:
|
my bad for marking it as ready to review, forgot some tests are to come |
This PR is another way to solve issue #1734 (much much simpler than my previous attempt) : just let the day comparison go to -1 when comparing the start date of an event (in case midnight is just between start date and now). If this event is too far in the past, it will be handeled by computeTimeInSeconds() as Instant also contains the date. |
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.
LGTM!
Just 1 small comment
if (compareWithNowByDay(newDate) < 0) { | ||
// let the comparison go to -1 for cases where the time is just after midnight | ||
// this is handled just fine by computeTimeInSeconds() as an Instant also contains the date | ||
if (compareWithNowByDay(newDate) < -1) { |
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.
Refactor opportunity: this check appears twice (here and line 224), so it'd be better to extract it into a variable
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.
Yes, thanks for spotting that, I'll correct it
Quality Gate passed for 'PoP - PoPCHA-Web-Client'Issues Measures |
Quality Gate passed for 'PoP - Be1-Go'Issues Measures |
Quality Gate passed for 'PoP - Be2-Scala'Issues Measures |
Quality Gate passed for 'PoP - Fe2-Android'Issues Measures |
Quality Gate passed for 'PoP - Fe1-Web'Issues Measures |
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.
LGTM!
No description provided.