From 80e66fbe0b239b019ff7ef1f9dc9e23f0d138b7f Mon Sep 17 00:00:00 2001 From: Michael Vasseur <14887731+vmcj@users.noreply.github.com> Date: Tue, 17 Sep 2024 20:23:02 +0500 Subject: [PATCH] Document the hot-fix as this breaks importing on live situations (cherry picked from commit d57f387945d893bdfde3d01ce68e55dc00b30df6) --- webapp/src/DataTransferObject/Shadowing/EventType.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/webapp/src/DataTransferObject/Shadowing/EventType.php b/webapp/src/DataTransferObject/Shadowing/EventType.php index 303823ae88..f486f054b5 100644 --- a/webapp/src/DataTransferObject/Shadowing/EventType.php +++ b/webapp/src/DataTransferObject/Shadowing/EventType.php @@ -29,6 +29,11 @@ public static function fromString(string $value): EventType return EventType::CONTESTS; } + // When encountering an error for an unknown event + // consider if we need to verify this as shadow or + // ignore it by adding the case in: + // webapp/src/DataTransferObject/Shadowing/EventType.php + // webapp/src/Service/ExternalContestSourceService.php return EventType::from($value); }