Open justetz opened 8 years ago
I kind-of solved this issue in 3350cf1.
My solution was to completely disallow guests on the wait-list, period.
If a shuttle currently has an outstanding wait-list, I simply disallow guests to be added until the wait-list clears up completely.
I figured that if a shuttle has a wait-list, there's quite a high demand for it, and it'd be in our best interest to only allow RPI students to use it. Allowing guests is simply a luxury that can't be really afforded at that time. It also eliminates the corner case I outlined above, and that makes me happy. 😄
What happens in the circumstance in which a user and their guest are both at the front of the waitlist?
When a spot opens, I wouldn't want to separate the user and their guest, but I don't want to inhibit other users on the waitlist from moving to the signup list.
Unless two spots open simultaneously, the user and their guest will NEVER get off the waitlist, and this could be an issue.
My only solution would be completely removing the option for a guest once the shuttle is full at least once. Ideas?