Skip to content
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

Full hidden scoreboard & Post-window own scoreboard #1843

Merged
merged 2 commits into from
Feb 22, 2022

Conversation

Riolku
Copy link
Contributor

@Riolku Riolku commented Feb 21, 2022

This adds support for a fully-hidden scoreboard type, i.e., one that is hidden even after the contest finishes.

In such a case, it is expected that it would be nice for users to be able to see their own participation, so the second commit allows users to see their own scoreboard if they have completed the contest.

@codecov-commenter
Copy link

codecov-commenter commented Feb 21, 2022

Codecov Report

Merging #1843 (ece53cd) into master (0516433) will increase coverage by 0.02%.
The diff coverage is 88.88%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1843      +/-   ##
==========================================
+ Coverage   46.09%   46.11%   +0.02%     
==========================================
  Files         224      224              
  Lines       12876    12882       +6     
==========================================
+ Hits         5935     5941       +6     
  Misses       6941     6941              
Impacted Files Coverage Δ
judge/views/api/api_v2.py 47.79% <ø> (ø)
judge/views/problem.py 24.53% <0.00%> (ø)
judge/views/submission.py 32.17% <ø> (ø)
judge/models/contest.py 95.55% <100.00%> (+0.01%) ⬆️
judge/models/tests/test_contest.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0516433...ece53cd. Read the comment docs.

Copy link
Member

@Ninjaclasher Ninjaclasher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise LGTM.

judge/views/submission.py Outdated Show resolved Hide resolved
This new scoreboard type allows a contest's scoreboard to be permanently
hidden to the public.
To provide a better UX, especially for fully-hidden contests, 
contestants can now see their own participation after they have 
completed the contest.
@quantum5 quantum5 merged commit 7c05b2f into DMOJ:master Feb 22, 2022
@Riolku Riolku deleted the full-hidden-scoreboard branch February 22, 2022 04:46
Riolku added a commit to Riolku/online-judge that referenced this pull request Feb 22, 2022
After DMOJ#1843, because of a misplaced bracket, users can't see submissions 
from contests with visible scoreboards.
Riolku added a commit to Riolku/online-judge that referenced this pull request Feb 22, 2022
After DMOJ#1843, because of a misplaced bracket, users can't see submissions 
from contests with visible scoreboards.
kiritofeng pushed a commit that referenced this pull request Feb 22, 2022
After #1843, because of a misplaced bracket, users can't see submissions 
from contests with visible scoreboards.
Riolku added a commit to Riolku/online-judge that referenced this pull request Feb 24, 2022
After DMOJ#1843, because of a misplaced bracket, users can't see submissions 
from contests with visible scoreboards.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants