Skip to content

Conversation

vmcj
Copy link
Member

@vmcj vmcj commented Jul 23, 2024

I think this method of solving is actually wrong as we normally have another behaviour.

#contests Cookie selected Normally shown Current behaviour balloonspage
0 -1 Nothing Same
2 1 All of contest 1 Same
2 -1 All of all contests Nothing

I can see the usecase for having 2 contests like the PacNW situation with divisions where you would still want to hand out balloons to both contests so I think we should refactor to also have the same behavior here (when selectedContest=-1 -> display everything from all active contests).

Copy link

sentry-io bot commented Jul 23, 2024

🔍 Existing Issues For Review

Your pull request is modifying functions with the following pre-existing issues:

📄 File: webapp/src/Service/DOMJudgeService.php

Function Unhandled Issue
App\Service\DOMJudgeService::getUpdates Error: Call to a member function getCid() on null /src/Service/DOMJudgeService.php in App\Service\DOMJudgeService::getUpdate...
Event Count: 80

Did you find this useful? React with a 👍 or 👎

->andWhere('b.done = 0');

if (!(bool)$this->config->get('show_balloons_postfreeze')) {
$balloonsQuery->andWhere('s.submittime < co.freezetime');
Copy link
Member

Choose a reason for hiding this comment

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

If there is no freeze, what does this do?

Copy link
Member Author

Choose a reason for hiding this comment

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

That's a good question. I would say we wouldn't handout balloons at all. I'll check for that (or just use the old code again).

@vmcj vmcj force-pushed the symfony_error_no_contest branch from de6bb42 to a094543 Compare July 24, 2024 07:22
@vmcj vmcj requested a review from nickygerritsen July 28, 2024 14:45
@vmcj vmcj added this pull request to the merge queue Jul 28, 2024
Merged via the queue into DOMjudge:main with commit e8ddc5e Jul 28, 2024
26 checks passed
@vmcj vmcj deleted the symfony_error_no_contest branch July 28, 2024 15:45
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.

2 participants