-
Notifications
You must be signed in to change notification settings - Fork 391
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Implement contest settings short display #1732
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1732 +/- ##
==========================================
- Coverage 46.52% 46.45% -0.07%
==========================================
Files 221 222 +1
Lines 12461 12505 +44
==========================================
+ Hits 5797 5809 +12
- Misses 6664 6696 +32
Continue to review full report at Codecov.
|
fe9643a
to
d4e2a5b
Compare
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.
Potential i18n problems are pain~~
**self.object.contest_problems | ||
.annotate( | ||
partials_enabled=F('partial').bitand(F('problem__partial')), | ||
pretests_enabled=F('is_pretested').bitand(F('contest__run_pretests_only')), |
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.
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.
This unfortunately won't be correct after systests, but I don't see any way to correctly grab that information after the settings are unchecked. FWIW this is also how it was done in #700, so it might be fine (?)
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.
This is a defect in the design of the pretest system. What we really want is two different booleans, but that's out of scope here.
d4e2a5b
to
15925c4
Compare
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.
There is a typo for penalties: Each submission before the first maximum score submission with incur a **penalty of %d minute**.
. It should be will incur
instead of with incur
.
Markdown is not capitalized: Returns a generator of markdown strings
.
A is not supposed to be capitalized: :return A generator, where each item is an individual line.
The scoreboard will be **hidden** for the duration of the contest.
seems vague.
Roger's potential replacement: the entire duration of the contest
.
15925c4
to
26a931b
Compare
Fixed.
Fixed.
The
Updated |
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.
Looks good, will deploy after current rated contest finishes.
26a931b
to
5fa23a8
Compare
Rebased migration. |
5fa23a8
to
98008de
Compare
Rebased migration again. |
This fixes #695 and supercedes #700.
We add an option to turn off this short display so that information is not duplicated for existing contests.
Todo: