Event info table update - #178
Merged
Merged
Conversation
…to have url as a column
jbriones1
requested changes
Aug 28, 2026
jbriones1
left a comment
Contributor
There was a problem hiding this comment.
Thanks for the PR!
I think we'll need to a bit more work on the table to make it more ergonomic, but it's a good first pass. I'll make another issue with more endpoints we could use, but don't worry about it for now.
…ved validation for data recieved from a db
jbriones1
self-requested a review
August 29, 2026 08:47
jbriones1
approved these changes
Aug 29, 2026
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
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.
Summary
Adds three new endpoints for managing grouped events, along with a schema migration to
event_infothat replaces recurrence-based fields (frequency,repeat_start_date,repeat_end_date,start_time,end_time) with a group-based model (group_id) plus new metadata fields (location,organizer,status,url,image_id). Also refactorscrud.pyfor readability.New Endpoints
POST /event/groupCreates one or more events under the same group key.
Request body:
EventCreate[]Response:
PATCH /event/group/{group_id}Updates one or more events belonging to the given group.
Response:
DELETE /event/group/{group_id}Deletes one or more events belonging to the given group. Response follows the same shape as the endpoints above.
Response:
Database Changes
event_infoschemaMigration (
41152814ded4)Added:
start_datetime(timestamptz, not null)end_datetime(timestamptz, not null)group_id(uuid, nullable)location(text, nullable)organizer(text, nullable)status(enum:scheduled/cancelled, not null)url(text, nullable)image_id(int, nullable) + FK constraint toimage_asset.image_idAltered:
description: nowNOT NULLname:varchar(64)→textRemoved:
repeat_end_datestart_timeend_timefrequencyrepeat_start_dateRefactor
Broke down
crud.pyfunctions that previously did query + result handling + event formatting in a single line into separate, named steps (query → result → event format) for readability.