-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[#11843] Create FeedbackSessionLog entity and cron job action #12895
Conversation
src/main/java/teammates/storage/sqlentity/FeedbackSessionLog.java
Outdated
Show resolved
Hide resolved
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.
Great and fast work, thanks!
src/main/java/teammates/storage/sqlentity/FeedbackSessionLog.java
Outdated
Show resolved
Hide resolved
List<FeedbackSessionLogEntry> logEntries = logsProcessor.getFeedbackSessionLogs(null, null, | ||
startTime.toEpochMilli(), endTime.toEpochMilli(), null); |
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.
Correctness of this action relies on the ordering added in this method. Would it be better if there's some indication about needing the ordering? I'm thinking getOrderedFeedbackSessionLogs
, it's not great, open if there's better suggestions also
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.
Hmm thats a good point, I think your suggestion should work fine since there is no downside to having it be ordered and in the future if there is a need to retrieve ordered logs the method can be easily found
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.
Nice work! LGTM
src/test/java/teammates/sqlui/webapi/UpdateFeedbackSessionLogsActionTest.java
Show resolved
Hide resolved
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, thanks!
Part of #11843
Outline of Solution
Create FeedbackSessionLog Entity
Create UpdateFeedbackSessionLogsAction