Repository navigation
Let reviewers abstain on proposals and grants - #4864
Merged
Merged
Conversation
Reviewers can now press "Abstain and go to the next" on the proposal and grant review pages, for example when they know the speaker or applicant. An abstention is a vote with an empty score: the item counts as reviewed for that reviewer and doesn't come back in their queue, and picking a score later replaces it. Abstentions don't count where votes or scores are used: the "fewest votes first" queue order, the grant shortlist average, "Total votes" on the review page and the shortlist vote counts. The review page and both shortlists show "Abstained" with the reviewer's comment. The migration only drops the NOT NULL rule on UserReview.score, so it rewrites no rows. Reversing it fails once any abstention exists.
The review page and both shortlists read an annotated vote_count instead
of counting prefetched votes with the scored_votes filter, which is
removed. Every vote count uses Count("userreview__score"), which skips
abstentions because COUNT ignores NULLs.
…ew-requirements-c4e96a
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
Adds an "Abstain" option to proposal/grant reviews: No issues found. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4864 +/- ##
==========================================
+ Coverage 92.41% 92.61% +0.20%
==========================================
Files 360 360
Lines 10958 10960 +2
Branches 953 953
==========================================
+ Hits 10127 10151 +24
+ Misses 705 684 -21
+ Partials 126 125 -1 🚀 New features to boost your workflow:
|
This was referenced Nov 16, 2026
marcoacierno
approved these changes
Nov 22, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Reviewers can now press "Abstain and go to the next" on the proposal and grant review pages, for example when they know the speaker or applicant.
UserReview.scoreis now nullable). The item counts as reviewed for that reviewer and doesn't come back in their queue.Count("userreview__score"), which skips NULL scores.blank=Falsestays on the score field, so the generic Django admin form for a vote still requires a score. Abstaining is only possible from the review pages.Deploy and rollback
0009: drops NOT NULL onreviews_userreview.score_id; no rows are rewritten. Django also drops and re-adds the score foreign key, which checks every vote row under a short lock. The table is small, so this should be quick.0009has applied, pressing Abstain on new code returns a 500. Old processes still serving during the deploy show an abstention as "voted ()" and count it in the grant average.score IS NULLwould have to be deleted first, losing their comments.Out of scope
One vote per reviewer per item (a unique constraint plus merging existing duplicates) is a separate, later change. This PR doesn't make duplicates worse: abstaining goes through the same
update_or_createas voting.Testing
pytest reviews custom_admin: 97 passed, on Django 6.1.3 after mergingmain.user_reviewguard is removed from the template.