-
Notifications
You must be signed in to change notification settings - Fork 256
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
Update score and rank of all teams of the contest after rejudging. #2127
Update score and rank of all teams of the contest after rejudging. #2127
Conversation
e432211
to
62a0645
Compare
This makes sure the rank and first to solve of all teams are correctly set. Fixes DOMjudge#2105.
62a0645
to
c579c43
Compare
// Finally, get the scoreboard again and test if the first to solve changed | ||
$scoreboard = $scoreboardService->getScoreboard($contest, true); | ||
|
||
static::assertFalse($scoreboard->solvedFirst($team1, $contestProblem)); |
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.
Before this failed right? We would have 2 teams with solvedFirst
.
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.
Exactly, this is the line that failed.
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.
Based on the test I would say this is correct. But I think someone else should take a look and give approval.
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.
Can we easily identify which teams to update (the teams who currently are first to solve for these problems) instead of all teams in a contest?
But the rank of teams can also change right? |
True. How did we never run into this issue then? |
🤷♂️ |
This makes sure the rank and first to solve of all teams are correctly set.
Fixes #2105.