update: enforce space/parent and support page moves
Open
Nobody has claimed this yet.
bug
- Dominant language
- Go
- Stars
- 2
- Forks
- 0
- Avg merge
- 2h 8m
- Merged PRs (30d)
- 49
Description
update currently publishes body + title + page width but ignores space and parent from frontmatter. Make it reconcile them against the live page and move the page when they differ.
Scope:
- Compare frontmatter
space/parentto the live page; if they differ, move the page. - Use the v1
content/{id}/moveendpoint (v2 has no move); add the client method. - Decide behavior when a move isn't possible (cross-space, missing parent) — error vs. warn.
- Interaction with
fix(which already reconciles these read-only) and with--dry-run(#(dry-run issue)).
This was explicitly deferred during the port.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the update command and its existing frontmatter reconciliation, then compare it with fix, which already handles space and parent as read-only. Read the client code around content operations and add the v1 content/{id}/move method. Define and test behavior for cross-space or missing-parent moves, including how update reports them and how --dry-run behaves.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- api, cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100