Record-search pagination tip recommends --offset even when --json rejects it
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 75/100
Hướng nghiên cứu
Đọc shortcuts/base/record_export.go ở phần hướng dẫn chung về phân trang, sau đó kiểm tra shortcuts/base/record_query.go ở phần xác thực JSON và phân trang. Điều chỉnh cho nhất quán hướng dẫn tiếp tục dành cho chế độ dùng flag và chế độ dùng phần thân JSON; hoàn tất khi hướng dẫn bảo người gọi dùng JSON đặt offset tiếp theo trong phần thân yêu cầu và không còn gợi ý flag --offset mâu thuẫn.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hullo folks,
I'm doing some research for Tessl Code Review and we ran it against your repo. It flagged a potential issue, and I figured it made sense to share it with you:
The shared record-analysis tip tells callers to continue with --offset set to next_offset when has_more is true. +record-search includes this tip, including when the request uses --json.
For example, a caller starts with:
lark-cli base +record-search --base-token <base> --table-id <table> \
--json '{"keyword":"Alice","search_fields":["Name"],"limit":2}'
If the response has more results, following the tip by adding --offset 2 conflicts with --json. The validator rejects explicitly supplied pagination flags; offset is in that exclusive set.
Expected: distinguish flag-mode continuation from JSON-body continuation. For the latter, put "offset":2 inside the JSON body. The validation hint already explains this, but the earlier pagination instruction sends the caller into the error.
This is a help-text/validation inconsistency established from current source, not a live Lark API test. Checked commit: c5fbf1a52df77d5cb9cac2b1501770b2fb9af7d2.
Full transparency: I work at Tessl, and we've spotted that using Tessl Code Review - using repository-level context and specific review lenses that improve over time through feedback. That’s how this finding surfaced.
We’re just getting started and want to offer the tool free to open-source projects. If this is useful, happy to give you access.
Baptiste
- Ngôn ngữ chính
- Go
- Star
- 18.2k
- Fork
- 1.4k
- Merge trung bình
- 20 giờ 34 phút
- Pull request đã merge (30 ngày)
- 17
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không 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 larksuite/cli
-
临时网络故障的情况下,重试 2 次失败就直接执行了 token clearedCó thể đã có người làm @orshih6 đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
domain/im
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug domain/doc
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 1 ngày
-
mail: all-ASCII draft bodies are hard-wrapped every 998 bytes, inserting newlines inside words and tagsCó thể đã có người làm @linye157 đã nhận 27 ngày trước. Đang mởdomain/mail
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
Maintainer thường phản hồi trong vòng 1 ngày
-
auth: a 429 from the Token Endpoint during refresh deletes a still-valid loginCó thể đã có người làm @linye157 đã nhận 27 ngày trước. Đang mởbug domain/auth domain/im
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
larksuite/cli#2869 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của larksuite/cli
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
pg-sharding/spqr#3314 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
slavakurilyak/awesome-ai-agents#1051 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/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 73/100
google-gemini/gemini-api-cli#247 ·
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
zalando/postgres-operator#3257 ·
Maintainer thường phản hồi trong vòng 2 ngày