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

Update score and rank of all teams of the contest after rejudging. #2127

Merged

Conversation

nickygerritsen
Copy link
Member

This makes sure the rank and first to solve of all teams are correctly set.
Fixes #2105.

This makes sure the rank and first to solve of all teams are correctly set.
Fixes DOMjudge#2105.
// Finally, get the scoreboard again and test if the first to solve changed
$scoreboard = $scoreboardService->getScoreboard($contest, true);

static::assertFalse($scoreboard->solvedFirst($team1, $contestProblem));
Copy link
Member

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.

Copy link
Member Author

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.

Copy link
Member

@vmcj vmcj left a 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.

Copy link
Member

@meisterT meisterT left a 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?

@nickygerritsen
Copy link
Member Author

But the rank of teams can also change right?

@meisterT
Copy link
Member

True. How did we never run into this issue then?

@nickygerritsen
Copy link
Member Author

True. How did we never run into this issue then?

🤷‍♂️

@nickygerritsen nickygerritsen merged commit 3bb5530 into DOMjudge:main Aug 28, 2023
18 checks passed
@nickygerritsen nickygerritsen deleted the rejudging-update-scorecache branch August 28, 2023 16:50
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.

First to solve rejudging
3 participants