mozilla / mozilla/markfluence

update: enforce space/parent and support page moves

Open
#10 1 comment 0 reactions 0 assignees View on GitHub

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/parent to the live page; if they differ, move the page.
  • Use the v1 content/{id}/move endpoint (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

Open the 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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.