nylas / sync-engine

:incoming_envelope: IMAP/SMTP sync system with modern APIs
https://nylas.com/docs/platform
GNU Affero General Public License v3.0
3.5k stars 354 forks source link

Deleted recurring events still return on the api #228

Open KartikTalwar opened 8 years ago

KartikTalwar commented 8 years ago

Hello,

I created a recurring event in September (via google calendar) to repeat every TTh and then deleted it last week. The deletion was for all following events, so there was ~2months of recurrence. However, when making the call on the /events endpoint, the deleted event still shows up on Tuesdays and Thursdays (vs gcal). I have multiple events in the calendar that were deleted this way and they are all returned in the api response.

Here is the event response from the api (using Arrow for convenience)

{'account_id': '<>',
 'busy': True,
 'calendar_id': None,
 'description': None,
 'id': '4hqss7jq2z1qp9v4guinkd1uw_20151117T193000Z',
 'location': 'RCH',
 'master_event_id': '<>',
 'object': 'event',
 'owner': 'Kartik Talwar',
 'participants': [],
 'read_only': True,
 'status': 'confirmed',
 'title': 'SCI 267',
 'when': {'end_time': <Arrow [2015-11-17T21:00:00+00:00]>,
          'object': 'timespan',
          'start_time': <Arrow [2015-11-17T19:30:00+00:00]>}}
khamidou commented 8 years ago

Hi Kartik,

Are you expanding recurring events here?

Karim

KartikTalwar commented 8 years ago

Hey @khamidou, yes expand_recurring is set to True