Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend API to "get first N attendees who booked package X" #232

Open
RakanHowls opened this issue Sep 22, 2024 · 1 comment
Open

Extend API to "get first N attendees who booked package X" #232

RakanHowls opened this issue Sep 22, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@RakanHowls
Copy link

RakanHowls commented Sep 22, 2024

Whenever we have some special item with limited availability (eg. the EF 28 - LED Badges), it is important to find out the first N attendees who booked a certain package.

Example: Towards the end of EF 28, we had less LED badges available than people who booked a super-sponsor package. The decision was made that the first N attendees who booked the package should get a reservation on the LED badge. This was basically turning the date-based reservation deadline into a count-based reservation threshold.

During EF 28, the only way to solve this was by repeatedly storing all supersponsors in a local file, and stopping when the threshold was reached. (status history was unavailable) This is bad for many reasons....

Simply checking the first N attendees with a package would not fit the requirement, since eg. reg number 1 could be the N+1-st upgrade.

Ideas for implementation:

  • Additional search option on the /find API's "AttendeeSearchSingleCriterion" to directly get the first N attendees who booked package X
    (and / or)
  • Additional field with a counter and / or date in the "package_list" entry of "AttendeeSearchResult" that specifies in which order / when the package was added.
@RakanHowls RakanHowls added the enhancement New feature or request label Sep 22, 2024
@Jumpy-Squirrel
Copy link
Contributor

As discussed in channel, this is complex for a number of reasons.

What if that attendee was cancelled in the meantime? Then reactivated? Do we want to go by booking timestamp or by payment timestamp? Especially in combination with the "allow multiple instances of a package" feature request, it amounts to adding a fully searchable history of package changes. And that is a lot of complexity.

So let me propose a different solution that may still give you what you want. We already have a historization of all changes of the due amount - the dues transactions in the payment service, which is the leading authority on dues and payments, being the source of our accounting. We can add an informational field to every dues transaction and record how it was calculated (which packages, how often, at which price, which additional booking amount). This would be exposed by the payment service API as an information only field.

See eurofurence/reg-payment-service#137

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants