bug(calendar): multi-calendar events JSON uses the key CalendarID instead of calendarId
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
Research direction
Read internal/cmd/calendar_list.go, especially eventWithCalendar.CalendarID near line 90 and the calendarId JSON tag near line 208. Run the multi-calendar calendar events --json command using the project's relevant tests or a local Calendar API fake; done means event keys use the intended camelCase name and any compatibility choice is handled.
Written by the indexing model from the issue text.
Description
Summary
In calendar events --cal …/--calendars …/--all --json, each event has a CalendarID key. Every other key is camelCase, including calendarId in the same document's nextPageTokens.
Current (v0.47.1)
gog calendar events --cal 1 --cal 2 --json
# events[].CalendarID
# nextPageTokens[].calendarId
eventWithCalendar.CalendarID has no JSON tag (calendar_list.go#L90), so Go uses the field name; calendarEventsNextPage tags it calendarId (L208).
Suggested
Tag it json:"calendarId,omitempty". If existing consumers matter, emit both keys for a release and note the change.
Environment
gog v0.47.1 (main at 82e7fd6). Reproduced against a local fake of the Calendar API through GOG_GOOGLE_API_BASE_URL.
- Dominant language
- Go
- Stars
- 8.5k
- Forks
- 721
- Avg merge
- 20h 41m
- Merged PRs (30d)
- 57
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openclaw/gogcli
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P2
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
openclaw/gogcli#1283 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
feat(gmail): make gmail get --format raw text output the exact message, like drafts get --format rawOpenclawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster P3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
openclaw/gogcli#1276 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
bug(calendar): --sort start places all-day events at midnight UTC instead of the calendar's timezonePossibly taken @goutamadwant claimed this today. Openclawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P2
Difficulty 2/5 1-3 hours Newbie friendliness 25/100
openclaw/gogcli#1284 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
bug(calendar): events --page with several calendars sends one calendar's token to all of themPossibly taken @goutamadwant claimed this 1 day ago. Openclawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P2
Difficulty 3/5 1-2 days Newbie friendliness 25/100
openclaw/gogcli#1281 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P2
Difficulty 3/5 1-2 days Newbie friendliness 72/100
openclaw/gogcli#1280 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
hashicorp/golang-lru#245 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
spotify/flink-on-k8s-operator#1075 ·
-
Difficulty 2/5 Half a day Newbie friendliness 62/100
prometheus-community/pyrra#1995 ·
Maintainers usually reply within 1 day
-
API: `tsc.exe` opens a visible console window on Windows when the parent process has no consoleOpen
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
microsoft/TypeScript#65083 ·
Maintainers usually reply within 1 day