Skip to content

Update Compass DB after a user changes recurring event(s) in Google Calendar #323

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

Open
tyler-dane opened this issue Mar 23, 2025 · 0 comments
Assignees

Comments

@tyler-dane
Copy link
Contributor

tyler-dane commented Mar 23, 2025

Feature Description

Functionality

  1. Signup/login for compass
  2. Make change in compass or gcal
  3. Wait a few seconds
  4. Event is updated in Compass

Use Case

Additional Context

Acceptance Criteria

Implementation

Gcal will submit a notification saying something changed, and the Compass backend will need to determine whether the change included recurring events and, if so call the correct event service method (from #321)

  • Determine if Compass already has the most recent event data in its database or not. This is the key step that could improve performance. Because if the user made the change in Compass, then we know that Compass has the most up-to-date data in its database already and can thus ignore the google notification to avoid recreating the same data we already have. This would save network requests and time.
    • Keep in mind, though, that determining where the event came from might be tricky. If it becomes too complicated, then ignore this requirement. It's acceptable to let us rewrite the same data for this PR if needed. In the future we can optimize.
  • After determining whether to process the change or not, check if the new event data from gcal already exists in the Compass database. You can probably do this by looking up the google event id.
  • If it does exist in our database already, then update it with the new data. This will likely involve making a new call to gcal API, as the gcal notification response doesn't include the full payload for the updated event(s)
  • If it doesn't exist in our database, that means the user created a new event in google calendar. In this case, create a new document in the compass database.
@tyler-dane tyler-dane self-assigned this Mar 23, 2025
@tyler-dane tyler-dane changed the title Update Compass DB after a user changes their recurring events in Google Calendar Update Compass DB after a user changes recurring event(s) in Google Calendar Mar 23, 2025
@tyler-dane tyler-dane moved this to Backlog in 🏗 Compass Roadmap Mar 23, 2025
@tyler-dane tyler-dane moved this from Backlog to Ready in 🏗 Compass Roadmap Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready
Development

No branches or pull requests

1 participant