-
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
[#12048] Add seed and verification scripts for feedback chain #13074
[#12048] Add seed and verification scripts for feedback chain #13074
Conversation
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 on this PR! Could you add some count checks to VerifyCourseEntityAttributes. Left some comments which I'm curious about
src/client/java/teammates/client/scripts/sql/DataMigrationForCourseEntitySql.java
Outdated
Show resolved
Hide resolved
feedbackQuestion.setCreatedAt(getRandomInstant()); | ||
feedbackQuestion.setLastUpdate(getRandomInstant()); | ||
|
||
ofy().save().entities(feedbackQuestion).now(); |
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.
Does the seed take long? Else we could try to persist all the questions at once
src/client/java/teammates/client/scripts/sql/VerifyCourseEntityAttributes.java
Outdated
Show resolved
Hide resolved
src/client/java/teammates/client/scripts/sql/VerifyCourseEntityAttributes.java
Show resolved
Hide resolved
src/client/java/teammates/client/scripts/sql/VerifyCourseEntityAttributes.java
Show resolved
Hide resolved
src/client/java/teammates/client/scripts/sql/VerifyCourseEntityAttributes.java
Show resolved
Hide resolved
src/client/java/teammates/client/scripts/sql/VerifyCourseEntityAttributes.java
Show resolved
Hide resolved
src/client/java/teammates/client/scripts/sql/VerifyCourseEntityAttributes.java
Show resolved
Hide resolved
src/client/java/teammates/client/scripts/sql/DataMigrationForCourseEntitySql.java
Outdated
Show resolved
Hide resolved
…ammates into verify-feedback-chain
src/client/java/teammates/client/scripts/sql/VerifyCourseEntityAttributes.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! 👍
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!
Part of #12048
Outline of Solution
FeedbackTextQuestions
, withgiverType = STUDENTS
, andrecipientType = INSTRUCTORS
MAX_RESPONSE_COUNT
values of -1 and 1000