Enhancement: set wiki node position among siblings on move/create
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 43/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Go
- Estrellas
- 18.2k
- Forks
- 1.4k
- Merge medio
- 1 d 3 h
- PR fusionados (30 d)
- 18
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de larksuite/cli
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día
-
domain/im
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
bug domain/doc
Dificultad 1/5 Menos de una hora Aptitud para principiantes 77/100
Los mantenedores suelen responder en 1 día
-
mail: all-ASCII draft bodies are hard-wrapped every 998 bytes, inserting newlines inside words and tagsPosiblemente ocupada @linye157 la tomó hace 26 días. Abiertodomain/mail
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
Los mantenedores suelen responder en 1 día
-
auth: a 429 from the Token Endpoint during refresh deletes a still-valid loginPosiblemente ocupada @linye157 la tomó hace 26 días. Abiertobug domain/auth domain/im
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
larksuite/cli#2869 · 5 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de larksuite/cli
Issues similares
-
Add Alice&BotAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
slavakurilyak/awesome-ai-agents#1048 ·
-
【文章自荐】本地 LLM 实测:GPU 推理速度与测量条件Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 65/100
eryajf/learning-weekly#235 ·
-
test_archive_is_downloaded_after_logout_login doesn't wait for the storage client after loginAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
list_issues and search_issues: inconsistent `fields` allow-lists (`html_url` rejected by list)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
github/github-mcp-server#3960 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día