Judge Conflicts form
Related to hq-tech/backend!225 (merged)
Judges need to report their conflicts in terms of teams and time (judging session blocks):
-
Have judging.igem.org/my-conflicts an endpoint that requires login -
Team Conflicts -
Based on GET /teams/year/:year
, show the list of teams -
Fetch current conflicts from GET /judges/:uuid/team-conflicts
and set based on teamID -
The user can mark teams as conflict with PUT /judges/:uuid/team-conflicts
body{ teamID: number }
-
The user cannot remove a team conflict
-
-
Block Conflicts -
Based on GET /jamboree/judging-session-blocks/:competitionUUID
, show the list of blocks -
Show list of blocks, sorted by date-time -
Fetch current conflicts from GET /judges/:uuid/block-conflicts
and set based on blockUUID -
The user can mark blocks as conflict with PUT /judges/:uuid/block-conflicts
body{ blockUUID: string }
-
The user can remove a block conflict with DELETE /judges/:uuid/block-conflicts
body{ blockUUID: string }
-
Relevant DTOs:
export class JudgeTeamConflictDTO {
judgeUUID: string
teamID: number
type: JudgeTeamConflictType
competitionUUID: string
}
export class JudgingSessionBlockDTO {
uuid: string
day: number
block: number
startTime: Date
competitionUUID: string
}
export class JudgeBlockConflict {
judgeUUID: string
blockUUID: string
}
Edited by Kamile Liucija Vainiute