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

Make API /calendar endpoint mark slot status correctly #31

Open
amcewen opened this issue Mar 1, 2021 · 0 comments
Open

Make API /calendar endpoint mark slot status correctly #31

amcewen opened this issue Mar 1, 2021 · 0 comments
Labels
api Issues relating to the API server component

Comments

@amcewen
Copy link
Member

amcewen commented Mar 1, 2021

At present, although it runs a query on the bookings table, the API returns all slots as having the status available. It should check that actual bookings and set the status to available or booked.

AC:

  • If there is an entry in the bookings table for a certain time, all slots that overlap with that time should have their status marked as booked (i.e. for laser bookings where there are parallel full-day and half-day slots, a booking in one should also result in the corresponding slot being marked as booked)
  • Slots which don't overlap with the times of any bookings should have the status available
@amcewen amcewen added the api Issues relating to the API server component label Apr 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Issues relating to the API server component
Projects
None yet
Development

No branches or pull requests

1 participant