Skip to content
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

Revert subscription eventTypes change #688

Merged
merged 1 commit into from
Feb 27, 2024
Merged

Conversation

squeaky-pl
Copy link
Contributor

@squeaky-pl squeaky-pl commented Feb 27, 2024

Originally in #664 we starting passing eventTypes. Today when I was doing unrelated changes I realized that the changes aren't arriving close to realtime and the webhooks about changes in the calendar are not delivered anymore. I think Google jinxed themselves and the webhooks API is not working correctly with their new APIs.

Through several manual tests I confirmed that fetching the events works while filtering with eventTypes, but webhooks are not delivered (although the subscription is created successfully) with the new parameter.

The rest of the logic will keep working as expected because we only update a timestamp in the database in the API pods, and then in the SYNC pods we fetch changes between the time we last synced and that timestamp. Since sync pods filter out by eventTypes even if we receive webhook about changes we are not interested we will just fetch empty resultset from Google.

@squeaky-pl squeaky-pl changed the title Revert subscription change Revert subscription eventTypes change Feb 27, 2024
@squeaky-pl
Copy link
Contributor Author

BTW it kept working so-so because sync-engine will resync every hour even if we don't receive a webhook 😅

@squeaky-pl squeaky-pl merged commit 503b9fb into master Feb 27, 2024
6 checks passed
@wojcikstefan wojcikstefan deleted the revert-subscription-change branch February 27, 2024 17:24
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