Skip to content

Commit 4401424

Browse files
KevinjilmeisterT
authored andcommitted
Ignore the map-info event in the event feed
Similarly to the other ignored event types, we need to drop this event to successfully parse the event feed of external sources.
1 parent b75260c commit 4401424

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
@@ -12,6 +12,7 @@ enum EventType: string
1212
case JUDGEMENTS = 'judgements';
1313
case JUDGEMENT_TYPES = 'judgement-types';
1414
case LANGUAGES = 'languages';
15+
case MAP_INFO = 'map-info';
1516
case ORGANIZATIONS = 'organizations';
1617
case PERSONS = 'persons';
1718
case PROBLEMS = 'problems';

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::AWARDS, EventType::TEAM_MEMBERS, EventType::ACCOUNTS, EventType::PERSONS => $this->ignoreEvent(...),
626+
EventType::ACCOUNTS, EventType::AWARDS, EventType::MAP_INFO, EventType::PERSONS, 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)