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

Refactor contest join checks #1886

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Riolku
Copy link
Contributor

@Riolku Riolku commented Mar 7, 2022

As suggested, merge the access checks into one. Some tests had to be changed, because the old checks didn't check the dates.

@Riolku Riolku force-pushed the refactor-join-check branch from 9c79d6a to dba4438 Compare March 7, 2022 04:35
@codecov-commenter
Copy link

codecov-commenter commented Mar 7, 2022

Codecov Report

Base: 46.46% // Head: 46.49% // Increases project coverage by +0.03% 🎉

Coverage data is based on head (4dab995) compared to base (966b37d).
Patch coverage: 75.67% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1886      +/-   ##
==========================================
+ Coverage   46.46%   46.49%   +0.03%     
==========================================
  Files         236      236              
  Lines       13114    13118       +4     
==========================================
+ Hits         6093     6099       +6     
+ Misses       7021     7019       -2     
Impacted Files Coverage Δ
judge/views/contests.py 29.18% <0.00%> (-0.06%) ⬇️
judge/models/contest.py 95.72% <91.30%> (-0.48%) ⬇️
judge/models/tests/test_contest.py 100.00% <100.00%> (ø)
django_2_2_pymysql_patch.py 42.85% <0.00%> (-42.86%) ⬇️
judge/views/register.py 48.05% <0.00%> (-2.66%) ⬇️
judge/utils/raw_sql.py 28.57% <0.00%> (-1.28%) ⬇️
judge/forms.py 44.26% <0.00%> (-0.07%) ⬇️
dmoj/settings.py 97.68% <0.00%> (-0.02%) ⬇️
dmoj/urls.py 89.47% <0.00%> (ø)
judge/comments.py 40.86% <0.00%> (ø)
... and 12 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Riolku
Copy link
Contributor Author

Riolku commented Mar 7, 2022

@Ninjaclasher since you suggested this can I get your review?

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/contests.py Show resolved Hide resolved
@Riolku Riolku force-pushed the refactor-join-check branch 3 times, most recently from 85d0f1b to 9c2b2a8 Compare March 9, 2022 02:18
@Riolku
Copy link
Contributor Author

Riolku commented Mar 9, 2022

As mentioned in the comment under Ninjaclasher's review, it was noted that there's a regression, introduced in 8b04126, that forced people to enter access codes when spectating. It has been fixed here. Some useless code also deleted, as requested.

@Riolku Riolku force-pushed the refactor-join-check branch from 9c2b2a8 to f9d811e Compare May 23, 2022 18:40
@Riolku Riolku force-pushed the refactor-join-check branch from f9d811e to 3ae3d44 Compare May 23, 2022 20:08
judge/models/tests/test_contest.py Outdated Show resolved Hide resolved
judge/models/tests/test_contest.py Show resolved Hide resolved
judge/views/contests.py Outdated Show resolved Hide resolved
judge/views/contests.py Outdated Show resolved Hide resolved
@Riolku Riolku force-pushed the refactor-join-check branch from 3ae3d44 to ac0adab Compare May 23, 2022 21:52
@Riolku Riolku force-pushed the refactor-join-check branch from ac0adab to 1d74d52 Compare May 24, 2022 00:45
Copy link
Contributor

@int-y1 int-y1 left a comment

Choose a reason for hiding this comment

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

lgtm

judge/views/contests.py Outdated Show resolved Hide resolved
@Riolku Riolku force-pushed the refactor-join-check branch from 1d74d52 to 6533c2a Compare October 30, 2022 23:18
As suggested, merge the access checks into one. Some tests had to be
changed, because the old checks didn't check the dates.
@Riolku Riolku force-pushed the refactor-join-check branch from 6533c2a to 4dab995 Compare October 30, 2022 23:20
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.

5 participants