Skip to content

✨ Feat: add support for UPDATING INSTANCE and STANDALONE events#366

Merged
tyler-dane merged 6 commits intomainfrom
feat/363-UPSERT-ONE
Apr 21, 2025
Merged

✨ Feat: add support for UPDATING INSTANCE and STANDALONE events#366
tyler-dane merged 6 commits intomainfrom
feat/363-UPSERT-ONE

Conversation

@tyler-dane
Copy link
Copy Markdown
Contributor

@tyler-dane tyler-dane commented Apr 20, 2025

Closes #363

Summary

Primary changes include:

  1. Adding a new event repository for regular event updates, with this first upsert method: updateInstance
  2. Triggering that method from the gcal processor after an instance change, for new instances and existing
  3. Cleaning up test files

✅ DELETE ALL
✅ DELETE ONE
✅ UPDATE ONE REGULAR
✅ DELETE THIS AND FOLLOWING
✅ CREATE ALL
✅ UPDATE ONE INSTANCE (this PR)
❌ UPDATE ALL (future PR)
❌ UPDATE THIS AND FOLLOWING (future PR)

  • works for multiple updates

Includes failing tests, which will be fixed in the follow-up refactor PR.

@tyler-dane tyler-dane force-pushed the feat/363-UPSERT-ONE branch from e206e84 to 37e5eb3 Compare April 20, 2025 10:10
This is similar to the RecurringEventReposity, but is focused on operations that apply to regular events
@tyler-dane tyler-dane marked this pull request as ready for review April 20, 2025 11:37
@tyler-dane tyler-dane merged commit 36a91d2 into main Apr 21, 2025
2 of 3 checks passed
@tyler-dane tyler-dane deleted the feat/363-UPSERT-ONE branch April 21, 2025 12:59
that-one-arab pushed a commit that referenced this pull request Jun 5, 2025
* ♻️ Refactor: rename mock gcal utils for clarity

* ♻️ Refactor: skip tracking standalone events in map during full import

Tracking them in the map was unnecessary, because were won't come back again in subsequent passes (because there's only one)

* ♻️ Refactor: move mock event untils inside @backend

* ✨ Feat: add support for UPDATING and INSTANCE

* ✨ Feat: setup the EventRepository

This is similar to the RecurringEventReposity, but is focused on operations that apply to regular events

* ✨ Feat: add support for UPSERTING a new or existing standalone event
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.

✨ Add UPDATE ONE support to gcal notification

1 participant