Skip to content

Conversation

@bmatvey
Copy link
Contributor

@bmatvey bmatvey commented Dec 7, 2025

Updated submission freeze logic to only block submissions for teams that are currently eligible for an active tournament. Also blocks teams for changing their own eligibility criteria while any tournaments are active. Changed permissions, added tests for new behavior.
closes #916

@bmatvey bmatvey requested a review from lowtorola December 14, 2025 18:38
Submission freeze restricted, eligibility changing rules changed.

Updated IsEpisodeMutableForTeam permission

Added more test cases for submission freezes

Fixed test cases
@lowtorola lowtorola marked this pull request as ready for review December 14, 2025 21:53
@lowtorola lowtorola force-pushed the submission_freeze_limit_to_elig_users branch from ee529e8 to 5d045dc Compare December 14, 2025 21:53
Copy link
Contributor

@lowtorola lowtorola left a comment

Choose a reason for hiding this comment

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

LGTM! but let's wait to ship until after the season starts since this is not urgent and we have some big behemoths coming thru (crossplay anyone?)

return True


class IsEpisodeMutable(permissions.BasePermission):
Copy link
Contributor

Choose a reason for hiding this comment

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

did we want to remove this? or is it still in use

self.assertFalse(m.matches.exists())


class TeamEligibilityFreezeTestCase(TestCase):
Copy link
Contributor

Choose a reason for hiding this comment

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

very cool! we looooove testing our code omg 😎

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.

Submission Freeze for eligible users only

3 participants