alfio-event / alfio-event/alf.io

Refactoring: do not preallocate tickets if not necessary

Open
#334 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
1.6k
Forks
396
PR merge metrics
No merged PRs in 30d

Description

Currently "limited seats" ticket category pre-allocates tickets in order to ensure that the number of seats chosen won't be taken by other categories.
That was a good mechanism in the past, but since the introduction of the "admin reservation" is become obsolete and could mislead the organizer.

The solution would be to apply a "best effort" allocation strategy, instead of pre-allocating the tickets. As a result, since we need to count already reserved tickets in order to avoid overbooking, a lock on the category (select for update) would be required before reserving tickets

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.