-
Notifications
You must be signed in to change notification settings - Fork 1
Scheduling api #39
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
Merged
Merged
Scheduling api #39
Conversation
This file contains hidden or 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
lint lint
…/uwblueprint/llsc into janealsh/LLSC-24-schedules-model
To Do: - add relationship for Schedule (time_blocks field)
boiler plate code
id should be integers, not uuid
update schedule_state to schedule_status
- add input validation - add duplicate checks for createavailability - add delete endpoint - add timezone to TimeBlock definition
add match route to server.py add new line to match route
ebwu95
approved these changes
Jun 16, 2025
emilyniee
approved these changes
Jun 16, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Notion ticket link
Scheduling API
Implementation description
First a volunteer defines their availability. This defines time blocks that they are available for, and are reused across all matches.
Upon matching, the participant will receive the volunteer's availability. They have two options:
TimeBlocks are defined as 30 minute intervals. On creation and deletion, only hourly intervals can be specified.
ex. Creating a TimeBlock from 1:00-2:00pm will create a 1:00pm timeblock and a 1:30pm timeblock.
More details:
https://docs.google.com/document/d/1QYDSE_e6GRQzN06uyrLwHkJ6iZxr30GgwbMxQJNGg4o/edit?tab=t.0
Steps to test
Testing Availability
Expected Response the first time:
Expected Response if TimeBlocks already exist for those times + for that user (ex. running the same request a second time)
In the database, you should see the TimeBlocks created in the TimeBlocks table:

And also the Availability created in the availability table, connecting your user id and the time block ids:

http://localhost:8000/availability?user_id=c42beb3c-17c1-4f00-87c9-17caba9bfc2dTesting Suggested Times
TODO - FILL THIS IN
Next Steps:
What should reviewers focus on?
Checklist