Skip to content

calendar list returns cancelled/deleted events #358

@econosopher

Description

@econosopher

Bug

gog calendar list returns events with status: cancelled alongside active events. This causes phantom events to appear in calendar listings that don't match what the user sees in Google Calendar UI.

Steps to Reproduce

  1. Create a calendar event
  2. Delete/cancel it
  3. Run gog calendar list --from <date> --to <date>
  4. The deleted event still appears in the output

Expected Behavior

Cancelled/deleted events should be filtered out by default. The Google Calendar API supports showDeleted=false (which is actually the default per the API docs), but it appears gog may be passing showDeleted=true or not properly filtering the response.

Actual Behavior

Deleted events appear in list results with no indication they're cancelled. This leads to incorrect calendar analysis when automating scheduling.

Example

gog calendar get primary "<event-id>" --account user@example.com
# Shows: status: cancelled
# But this event appeared in the list output as if active

Suggested Fix

Either:

  • Ensure showDeleted=false is passed to the Calendar API (should be default)
  • Or filter out events where status == "cancelled" from list results
  • Or add a --show-deleted flag that defaults to false

Environment

  • gog v0.11.0
  • macOS (arm64)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions