Enhancement: set wiki node position among siblings on move/create
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ó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 43/100
Hướng nghiên cứu
Start with the wiki +move and wiki +node-create command definitions and the SDK's service/wiki/v2 request types, including MoveSpaceNodeReqBody. Check whether the upstream Lark Open API now supports a sibling-position field; the matching larksuite/oapi-sdk-go request may determine when this work can begin. Done means the supported ordering option is exposed by both commands and behaves as documented for move and create.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
Please let wiki +move and wiki +node-create say where a node should go among its siblings, not just which parent it goes under.
Current behaviour
lark-cli wiki +move (v1.0.98) accepts --node-token, --target-parent-token, --target-space-id, --source-space-id, --obj-type / --obj-token and --apply. +node-create likewise only takes a parent. Lark decides where the node lands among its siblings, and the order can only be changed by dragging the node in the web UI.
This is a gap in the Open API rather than in the CLI: POST /open-apis/wiki/v2/spaces/:space_id/nodes/:node_token/move only accepts target_parent_token and target_space_id, and node create has no position field. So this request is really for the API, with CLI flags to follow. I filed a matching request on larksuite/oapi-sdk-go.
Proposed enhancement
Any one of these would solve it:
- An optional
prev_node_token(orbefore/aftersibling token) on the move and create endpoints, exposed as e.g.--after-node-token/--before-node-token. - A writable
sort_idon move and create, exposed as--sort-id. - A dedicated reorder endpoint that moves a node among its current siblings without changing its parent, e.g.
lark-cli wiki +node-reorder --node-token X --after-node-token Y.
Why
The wiki is a natural target for automated publishing: release notes, changelogs, runbooks and generated reports written by CI or by agents through lark-cli. Those trees have a meaningful order, such as newest release first or chapters in sequence. Today every automated publish lands in a position the publisher can't control, so a person has to open the wiki and drag the node into place after each run. That makes a fully automated pipeline impossible and lets the tree drift out of order whenever someone forgets.
The workarounds aren't good. One parent folder per item fragments the tree. Prefixing titles with dates or versions changes the titles readers see and still doesn't control the displayed order. A hand-kept index page duplicates the tree it's meant to describe.
Lark's own UI already supports placing a node anywhere among its siblings, so this would bring the API and CLI up to what the product can already do.
Environment
- lark-cli 1.0.98
- Also checked:
github.com/larksuite/oapi-sdk-go/v3v3.12.2,service/wiki/v2MoveSpaceNodeReqBody
- Ngôn ngữ chính
- Go
- Star
- 18.2k
- Fork
- 1.4k
- Merge trung bình
- 1 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 18
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
-
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 26 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 26 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ự
-
Add Alice&BotĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
slavakurilyak/awesome-ai-agents#1048 ·
-
【文章自荐】本地 LLM 实测:GPU 推理速度与测量条件Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
eryajf/learning-weekly#235 ·
-
test_archive_is_downloaded_after_logout_login doesn't wait for the storage client after loginĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
list_issues and search_issues: inconsistent `fields` allow-lists (`html_url` rejected by list)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
github/github-mcp-server#3960 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày