[Feature] Bitable inline/record comments not returned by drive comments API — with malformed response

Open
#2,837 5 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
go
Domain
api, backend

Research direction

Start by reading the CLI implementation for +list-comments and its drive v1 comments API request and response handling. Reproduce the empty response with has_more=true and page_token="0", then determine whether record comments are available through an existing API. Done means the supported API or CLI path returns record comments with their table and record IDs, and pagination terminates correctly for an empty result.

Written by the indexing model from the issue text.

Description

domain/base enhancement

环境:lark-cli 1.0.98 / drive v1 comments API / file_type=bitable

现象:
GET /open-apis/drive/v1/files/{app_token}/comments?file_type=bitable
对一个确定存在「行内评论(记录评论)」的多维表格返回:
{ "count": 0, "items": [], "has_more": true, "page_token": "0" }
(空集却 has_more=true,翻页死循环;lark-cli +list-comments 同样结果)

问题:

  1. 行内(记录级)评论不在返回范围——云文档评论 API 只覆盖全局评论。
    AI 自动化场景(缺陷单看板处理)需要程序化读取记录评论及其定位
    (table_id / record_id),目前只能人工截图。
  2. 空结果时 has_more=true + page_token="0" 属畸形响应,建议修正。

期望:

  • 方案 A:file.comments 返回行内评论并附带 extra(table_id/record_id);
  • 方案 B:新增「记录评论」API(bitable v1 records/{id}/comments);
  • lark-cli 侧:+list-comments 支持(或新增 +record-comments)。
Dominant language
Go
Stars
18.2k
Forks
1.4k
Avg merge
1d 3h
Merged PRs (30d)
18

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from larksuite/cli

All issues in larksuite/cli

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.