fix: allow change of event type when registrations exist#4097
Conversation
da90866 to
d84a5bf
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4097 +/- ##
==========================================
- Coverage 82.61% 82.60% -0.01%
==========================================
Files 359 359
Lines 12698 12700 +2
==========================================
+ Hits 10490 10491 +1
- Misses 2208 2209 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Nice, this seems logically correct. But there are some business-logic cases we need to be careful of:
The second point is pretty critical and there is currently no business-logic implemented to handle this |
Very good point. I was not aware of the waiting list issue. It would probably be safer to keep blocking the updates for now and let admins handle the registrations manually by admin-removing participants before changing the event type. I think it would be nice to work on a better fix for this but also event updates in general. |
Description
This change fixes the issue of not being able to update the event type to OPEN or TBA after registrations exist.
When registrations are referencing the pools they cannot be deleted, and the update failed for event types not using pools.
Testing
Tested locally by updating events with existing registrations to OPEN and TBA.
Resolves #4096