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

Child events of a cancelled master event shouldnt be returned #433

Open carolinelane10 opened 7 years ago

carolinelane10 commented 7 years ago

In Google calendar, I created a recurring event, cancelled a few instances of the event, and then cancelled the entire event. When I request events that were not cancelled using the API: GET https://api.nylas.com/events, I do not get the cancelled master event, but I still get all the child events representing the cancelled instances:

{
        "account_id": "...",
        "busy": true,
        "calendar_id": "...",
        "description": null,
        "id": "...",
        "location": null,
        "master_event_id": "...",
        "message_id": null,
        "object": "event",
        "original_start_time": 1488223800,
        "owner": "me <me@gmail.com>",
        "participants": [],
        "read_only": false,
        "status": "cancelled",
        "title": "recurring event 22",
        "when": {
            "end_time": 1488227400,
            "object": "timespan",
            "start_time": 1488223800
        }
    }