Add per-debater opt-out from public speaker rankings#512
Draft
Add per-debater opt-out from public speaker rankings#512
Conversation
Agent-Logs-Url: https://github.com/MIT-Tab/mit-tab/sessions/de32131d-77c9-468b-a8b0-88463dc91021 Co-authored-by: JoeyRubas <46765074+JoeyRubas@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add per-debater opt outs for public speaker rankings page
Add per-debater opt-out from public speaker rankings
Mar 27, 2026
Member
|
@copilot varsity speaker rankings should include varsity or novice, novice speaker rankings should be just novices |
…ice) Agent-Logs-Url: https://github.com/MIT-Tab/mit-tab/sessions/d02ab4c5-ce22-4054-b657-e7d27522db2a Co-authored-by: JoeyRubas <46765074+JoeyRubas@users.noreply.github.com>
Contributor
Author
Member
|
@copilot add unit tests |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #512 +/- ##
==========================================
- Coverage 78.72% 78.68% -0.05%
==========================================
Files 122 123 +1
Lines 9316 9321 +5
==========================================
Hits 7334 7334
- Misses 1982 1987 +5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Agent-Logs-Url: https://github.com/MIT-Tab/mit-tab/sessions/46b8b652-4b1a-41b0-9f21-67ff19362890 Co-authored-by: JoeyRubas <46765074+JoeyRubas@users.noreply.github.com>
Contributor
Author
Added 4 unit tests in eb72f2d covering:
|
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.
Mirrors the existing per-team
ranking_publicopt-out mechanism for individual debaters on the public speaker rankings page.Changes
Debatermodel — addsranking_public = models.BooleanField(default=True), matching the same field onTeam0037_debater_ranking_public.pypublic_speaker_rankingsview — filters both varsity and novice speaker lists to exclude debaters withranking_public=Falsebefore building the public table. Varsity speaker rankings include all speakers (both varsity and novice); novice speaker rankings include only novices.DebaterForm— picks up the new field automatically since it already excludes onlytiebreakerTests
Added unit tests in
mittab/libs/tests/views/test_public_views.pycovering:ranking_public=Falseis excluded from varsity speaker rankingsranking_public=Falseis excluded from both sectionsranking_public=Trueappears in both the varsity and novice sections⌨️ Start Copilot coding agent tasks without leaving your editor — available in VS Code, Visual Studio, JetBrains IDEs and Eclipse.