Skip to content

Conversation

@ryantrinh05
Copy link
Contributor

Updates the Event.save() method to handle the cases when access level changes during edits to an event.

Previously, the method would try to update a GCal event on the new calendar (e.g. Candidate Google Calendar) using the event id specific to the old calendar (e.g. Internal Google Calendar), resulting in no changes.

This PR addresses this by first checking if the access level changes in the update:

  • If it doesn't, it updates the GCal event the same.
  • If it does, it deletes the old GCal event and creates a new one in the new calendar, linking the new google_calendar_id to the Event model.

@ryantrinh05 ryantrinh05 merged commit 2848b8a into compserv:master Nov 7, 2025
2 checks passed
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.

1 participant