-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ordering of waitlist in API route
Bjorn pointed out a weird side effect where after setting `manual_order` on a waitlist, *new* signups (which will have a null manual order) can end up earlier on the waiting list, when they should instead appear at the end of the waitlist. We've been properly handling that in the Django-based views into waitlist ordering, but we've been reporting a totally different ordering for the API-based view of trips. In short, this happened because we were expecting the waitlist models to define their own ordering, but we explicitly use the *preferred* ordering elsewhere. Also, let's fix the API route to start returning JSON responses when the user lacks permissions.
- Loading branch information
Showing
4 changed files
with
199 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters