gather-community / gather

The App for Community
https://info.gather.coop
MIT License
30 stars 6 forks source link

Unable to signup for "the last meal slot" (or more) #1011

Closed willn closed 11 months ago

willn commented 11 months ago

When a meal has set a limit, it appears that we are unable to sign up for the last meal possible.

This was reported to me by our neighbor Hope for our Halloween meal. The signups are listed as "49/50", when she clicked through, she could not sign up, instead she saw the message:

Your Order You have not signed up for this meal.

So she's puzzled why she can't get that 50th entry. I was puzzled by this as well, and then I replicated it myself, with a meal scheduled for Nov 02 2023. The signups are displaying as "34/35". I have included a screenshot below showing both the list view for this meal and the detailed view.

I'm making an assumption that the algorithm might be checking "less than" rather than "less than or equal to" when determining whether there's room in the meal. If the meal really is full, then I would have expected to have seen a message state something like "Sorry, this meal is full." Instead, the message is inviting the user to sign up for something that they cannot.

limited_meal_signup
willn commented 11 months ago

I have found a meal where it's 2 under the limit and I'm unable to signup. I realize that I'm currently less than 24 hours away from this meal, but this was true a couple days ago as well.

Screenshot 2023-11-05 at 10 19 36 AM