Record-search pagination tip recommends --offset even when --json rejects it
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
共有のページネーションに関するヒントの箇所で shortcuts/base/record_export.go を読み、その後、JSON とページネーションの検証に関する箇所で shortcuts/base/record_query.go を調べてください。フラグモードと JSON ボディモードの続行方法に関する案内を整合させます。ヒントが JSON を使う人に次のオフセットをリクエストボディに入れるよう案内し、矛盾する --offset フラグを勧めなくなれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- Go
- スター
- 18.2k
- フォーク
- 1.4k
- 平均マージ
- 20時間 34分
- マージ済み PR(30日)
- 17
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
larksuite/cli のほかの issue
-
临时网络故障的情况下,重试 2 次失败就直接执行了 token cleared対応中かも @orshih6 が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
domain/im
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
bug domain/doc
難易度 1/5 1時間未満 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信
-
mail: all-ASCII draft bodies are hard-wrapped every 998 bytes, inserting newlines inside words and tags対応中かも @linye157 が 27 日前に担当しました。 オープンdomain/mail
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
メンテナーはふだん 1 日以内に返信
-
auth: a 429 from the Token Endpoint during refresh deletes a still-valid login対応中かも @linye157 が 27 日前に担当しました。 オープンbug domain/auth domain/im
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
larksuite/cli#2869 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
pg-sharding/spqr#3314 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
zalando/postgres-operator#3257 ·
メンテナーはふだん 2 日以内に返信
-
[inputs.internal] README lists go_version tag on internal_gather instead of internal_agent対応中かも @cvas22 が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
influxdata/telegraf#20264 ·
メンテナーはふだん 1 日以内に返信
-
[Bug] Standalone migration breaks existing Ingress routes using the envoy-http Service port nameオープンaccepted bug wg/enterprise-environment
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
vllm-project/semantic-router#7483 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信