Fix peer review badge to show green when reviews are completed with real-time updates#129
Conversation
Co-authored-by: alexeygrigorev <875246+alexeygrigorev@users.noreply.github.com>
|
@copilot can you verify that we update "reviewed_enough_peers" field every time somebody submits a review? add more tests to cover the end to end scenario - first 3 incimpelte reviews -> red, review 1 -> red, review 2 -> red, review 3 -> switches to green |
…tests Co-authored-by: alexeygrigorev <875246+alexeygrigorev@users.noreply.github.com>
I've verified the implementation and added comprehensive end-to-end tests as requested. Key findings:
All tests pass with no regressions. |
The peer review badge remained red after students completed their required reviews, causing confusion about review status.
Changes
bg-success) with "Review completed" when student has submitted all required reviewsbg-danger) with "Review" when reviews are still incompletetest_peer_review_badge.pywith full progression testingreviewed_enough_peersfield is correctly updated during the scoring phaseHow It Works
During Peer Review Phase:
After Peer Review Period:
score_project()function updates thereviewed_enough_peersdatabase fieldTesting
Original prompt
<issue_description>Now it's always red even when it's completed, so it's confusing for the students
Comments on the Issue (you are @copilot in this section)
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.