calendar +agenda silently returns incomplete results
Maintainer thường phản hồi trong vòng 1 ngày
@manrods đang làm issue này rồi.
Từ ngày 21/8/2026.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 68/100
Hướng nghiên cứu
Start in crates/google-workspace-cli/src/helpers/calendar.rs at the calendar list and event request code linked in the issue. Reproduce with more than 50 matching events and inspect how request, response, and JSON errors are handled. Done means pagination is followed and per-calendar failures are surfaced or explicitly reported as partial results, including any intentional truncation.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
gws calendar +agenda says that it shows events across all calendars, but it can silently omit calendars and events.
At commit a3768d0e82ad83cca2da97724e46bea4ff0e6dbd:
- The helper reads only the first
calendarListpage and ignoresnextPageToken: https://github.com/googleworkspace/cli/blob/a3768d0e82ad83cca2da97724e46bea4ff0e6dbd/crates/google-workspace-cli/src/helpers/calendar.rs#L261-L289 - Each calendar request hard-codes
maxResults=50and ignores the eventnextPageToken: https://github.com/googleworkspace/cli/blob/a3768d0e82ad83cca2da97724e46bea4ff0e6dbd/crates/google-workspace-cli/src/helpers/calendar.rs#L322-L359 - A request error, non-success response, or JSON decode error is converted to an empty event list: https://github.com/googleworkspace/cli/blob/a3768d0e82ad83cca2da97724e46bea4ff0e6dbd/crates/google-workspace-cli/src/helpers/calendar.rs#L334-L356
This makes a partial result indistinguishable from a complete agenda with no events.
Reproduction
- Put more than 50 matching events in one calendar within the requested range.
- Run
gws calendar +agendafor that range. - The output contains at most 50 events from that calendar and reports no truncation.
A provider error for one secondary calendar also produces a successful result that omits that calendar.
Expected behavior
- Follow
nextPageTokenforcalendarList.listand everyevents.listrequest until it is absent. - Do not convert per-calendar failures into empty calendars. Return an error, or return an explicit partial-result status with the failed calendar and cause.
- If the command has an intentional caller limit, expose the limit and report that the result is truncated.
- Ngôn ngữ chính
- Rust
- Star
- 31.3k
- Fork
- 1.9k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của googleworkspace/cli
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
googleworkspace/cli#921 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add cli to awesome-ai-plugins?Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
googleworkspace/cli#920 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
docs(gmail): the --draft tip prints a send command that fails (users.drafts.send --body)Có thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
googleworkspace/cli#914 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
auth setup: pasted OAuth Client ID is not trimmed — trailing whitespace causes 401 invalid_client at loginCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
googleworkspace/cli#882 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Docs: no supported way to build a Gmail web link from an API ID (inverse of #790)Có thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
googleworkspace/cli#858 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của googleworkspace/cli
Issue tương tự
-
ai-priority/P2 bug db/oracle user-priority/P1
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
swc-project/swc#12516 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
app bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
mls-rs-crypto-awslc: exact aws-lc-rs =1.16.3 pin blocks rustls security updateCó thể đã có người làm @muscariello đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100