Skip to content

Conversation

danvesga
Copy link
Contributor

@danvesga danvesga commented Oct 6, 2025

Description

Link to Ticket

This PR is about users registering and unregistering for events. This is important functionality for the central use of our app. When registering, a new registration is created. When unregistering, that registration is fed in, and gets changed to the status: "unregistered" from "upcoming"

Screenshot 2025-10-03 at 3 05 45 PM Screenshot 2025-10-05 at 1 18 53 PM

How Has This Been Tested?

I tried both endpoints on Swagger as a user with the volunteer type

Checklist

  • I have performed a self-review of my code
  • I have reached out to another developer to review my code
  • I have commented my code, particularly in hard-to-understand areas
  • New and existing unit tests pass locally with my changes


@router.post("/new", response_model=Registration)
async def create_registrion(
registration: Annotated[CreateRegistrationRequest, Body(...)],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might not need a whole CreateRegistrationRequest to just store the event_id but this is just a nit so no need to fix

@adammotts
Copy link
Contributor

See comments I left in Slack thread about upserting

@adammotts adammotts merged commit a00f5b5 into main Oct 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants