-
Notifications
You must be signed in to change notification settings - Fork 526
AllTheThings PLC script / Pull review functionality #9490
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
Conversation
| module Plc::CoursesHelper | ||
| def options_for_user_enrollment_courses | ||
| Plc::Course.all.pluck(:name, :id).sort | ||
| Plc::Course.where.not(name: 'All Of The PLC Things').pluck(:name, :id).sort |
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 didn't want All Of The Things showing up in the dropdown for new enrollments because I didn't want anyone accidentally enrolling in it.
Peer reviewable levels should be submittable by teachers enrolled in plc courses
|
Have to fix one test as well |
a105563 to
c46a42d
Compare
c46a42d to
6ccd15c
Compare
| result: ActivityConstants::UNSUBMITTED_RESULT, | ||
| icon: '', | ||
| locked: false | ||
| } |
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'm a bit unclear what this is doing. It adds a new not_started entry to the returned list if the # of existing reviews < # required for the script and a review exists that can be reviewed? Is PeerReview.get_review_for_user called here to see if one is available? But this doesn't persist anything. It just shows the "Review a new submission" option?
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.
Summarize returns a list of summarized peer reviews for the purpose of rendering level progress dots. This is used on the client side to generate those dots, the same way they are generated for levels.
This part generates a line item that will show up as an empty progress dot that will redirect the user to the pull review path.
So you're right, it doesn't persist anything.
|
few small questions, otherwise LGTM (presuming green test run of course) |
Add functionality to now pull a review from the pool when there is one available for the user.
Since TeacherCon script is not ready for peer review, I made a scaled down copy that has peer review enabled.
How to test locally
rake seed:scripts