Tracking-plan branches

A branch is a draft copy of a tracking plan. Change it without touching what the worker validates against, get it reviewed, then merge it. Web: Data...

Embed
Preview of the card
<a href="https://lucidace.com/help/tracking-plan-branches"><img src="https://lucidace.com/help/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/2f4b888b-c4e6-488b-81bd-6e838fb12d2e/pages/1ac0fbc2-a4c7-453e-9036-cbb52929bc7b/social-card.svg?v=3e7ae33eec8b" alt="Tracking-plan branches" width="600" height="315"></a>

A branch is a draft copy of a tracking plan. Change it without touching what the worker validates against, get it reviewed, then merge it. Web: Data management > Tracking plans > Branches.

Step

API (/v1/projects/{project_id}/tracking-plans/{plan_id}/branches)

Cut a branch from the live plan

POST {name, description?} (one open branch per name)

List / read

GET (cursor pagination), GET /{branch_id}

Edit the draft

PATCH /{branch_id} {name?, description?, schema?}; a schema change sends a reviewed branch back to draft

Diff

GET /{branch_id}/diff -> {changes, merge_preview, stale, live_version, base_version, conflicts}

Review

POST /{branch_id}/review {action: submit|approve|request_changes|close, note?}

Merge

POST /{branch_id}/merge {force?} -> {plan, branch} (the plan gets a new version)

Rebase

POST /{branch_id}/rebase {take_branch?: [slot]} moves the branch onto the live plan's current version; listed conflict slots keep the branch value

Rules:

  • Status flow: draft -> in_review -> approved | changes_requested -> ... -> merged; close abandons an open branch. Merged and closed branches are read-only.

  • Four eyes by default: the author cannot approve their own branch unless they are a project admin. Merging needs approved; force: true lets a project admin merge an unapproved branch.

  • Merges are three-way against the plan as it was when the branch was cut. Events and global properties are matched by name, so live edits to other events are kept. When the branch and the live plan changed the same event (or top-level key) differently, merge and rebase answer 409 (type ends in plan-merge-conflict) and list the conflicting slots (events/<name>). Resolve by editing the branch to the live value, or rebase with take_branch to keep the branch value.

  • Every action is audited (tracking_plan.branch.*). Branches use the Settings permission like plans.

Updated