-
Notifications
You must be signed in to change notification settings - Fork 12
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
GH-158 - Report the number of engagement reports submitted within a given time frame #232
Conversation
search component
One commit probably refers to the wrong issue (should be #158). |
} | ||
|
||
public boolean getIncludeEngagementDayOfWeek() { | ||
return (includeEngagementDayOfWeek == null) ? false : includeEngagementDayOfWeek; |
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.
Better to use:
return Boolean.TRUE.equals(includeEngagementDayOfWeek);
(should actually be changed elsewhere in the file as well).
@@ -15,6 +15,8 @@ | |||
Integer authorId; | |||
DateTime engagementDateStart; | |||
DateTime engagementDateEnd; | |||
Integer engagementDayOfWeek; | |||
Boolean includeEngagementDayOfWeek; |
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.
I prefer to make new fields private
(at some point [e.g. when we have decided on a Checkstyle profile] we should consider changing them all).
@@ -37,6 +37,7 @@ | |||
DateTime releasedAt; | |||
|
|||
DateTime engagementDate; | |||
Integer engagementDayOfWeek; |
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.
I prefer to make new fields private
(at some point [e.g. when we have decided on a Checkstyle profile] we should consider changing them all).
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.
done
true on get methods
} | ||
|
||
if (value.end !== null) { | ||
this.updateDate("endDate", moment(value.end)) |
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.
Fixed input to value.end
No description provided.