Skip to content

Conversation

vmcj
Copy link
Member

@vmcj vmcj commented Sep 23, 2025

This is helpful for when:
You have a shared DOMjudge instance with 2 different contests
The contests are not open to all teams but limited by categories (or directly assigned).
When you're a jury member in one of the contests you would still see all teams (union of both contests) in the send clarification page.

I do wonder if this is duplicated somewhere, and if we shouldn't let a dedicated Service handle the teams. The other reasonable place is the Contest itself but as that's an Entity it doesn't have an easy way of exposing which teams are in the contest when the contest is open to all teams (as you would need to query the database).
If there would be a TeamService we can change all queries to there and make sure we always get the consistent set without having to do this logic everywhere. For example I first tried this with the Contest->getTeams() which would return nothing in normal cases (but I would say is reasonable without this background knowledge).

@vmcj vmcj force-pushed the limited_clar_teams branch from 9f6fbe3 to f7261e7 Compare September 23, 2025 19:49
When you have shared DOMjudge instance with 2 different contests with teams
limited by categories (or directly assigned) we would still show all known
teams (even teams not in that contest). We now let the DOMjudge service handle
this.
@vmcj vmcj force-pushed the limited_clar_teams branch from 14e6966 to 063106a Compare September 24, 2025 18:43
@vmcj vmcj enabled auto-merge September 24, 2025 18:44
@vmcj vmcj added this pull request to the merge queue Sep 24, 2025
Merged via the queue into DOMjudge:main with commit da2dbec Sep 24, 2025
36 checks passed
@vmcj vmcj deleted the limited_clar_teams branch September 24, 2025 19:23
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.

3 participants