Skip to content

Commit 79f30fd

Browse files
vmcjmeisterT
authored andcommitted
Ignore 'start-status' as shadow
Those are imported for the humans, but have nothing todo with shadowing a contest. Note that these are only sent by the CDS and not part of the spec. (cherry picked from commit 8e78b10)
1 parent 0576250 commit 79f30fd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

webapp/src/DataTransferObject/Shadowing/EventType.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ enum EventType: string
1818
case PROBLEMS = 'problems';
1919
case RUNS = 'runs';
2020
case STATE = 'state';
21+
case START_STATUS = 'start-status';
2122
case SUBMISSIONS = 'submissions';
2223
case TEAMS = 'teams';
2324
case TEAM_MEMBERS = 'team-members';

webapp/src/Service/ExternalContestSourceService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ public function importEvent(Event $event, array $eventsToSkip): void
623623

624624
// Note the @vars here are to make PHPStan understand the correct types.
625625
$method = match ($event->type) {
626-
EventType::ACCOUNTS, EventType::AWARDS, EventType::MAP_INFO, EventType::PERSONS, EventType::TEAM_MEMBERS => $this->ignoreEvent(...),
626+
EventType::ACCOUNTS, EventType::AWARDS, EventType::MAP_INFO, EventType::PERSONS, EventType::START_STATUS, EventType::TEAM_MEMBERS => $this->ignoreEvent(...),
627627
EventType::STATE => $this->validateState(...),
628628
EventType::CONTESTS => $this->validateAndUpdateContest(...),
629629
EventType::JUDGEMENT_TYPES => $this->importJudgementType(...),

0 commit comments

Comments
 (0)