Skip to content

CP-7987 Measurement Plan: document GET and PATCH endpoints - #227

Merged
mattkepple merged 1 commit into
mainfrom
CP-7987-measurement-plan
Nov 29, 2026
Merged

mattkepple merged 1 commit into
mainfrom
CP-7987-measurement-plan

Conversation

@mattkepple

Copy link
Copy Markdown
Contributor

API docs for the Measurement Plan endpoints, Jira issue CP-7987.

Rails PRs:

MCP companion PR: MakerbleDev/makerble-mcp#217

What

openapi.yaml: these are copied exactly from the Rails repo's vendored spec (spec/support/api_schemas/openapi.yaml) and merged into the existing sections:

  • the paths /impact_frameworks/{id}/measurement_plan (get and patch) and /projects/{project_id}/measurement_plan (get and patch);
  • components.responses.MeasurementPlan;
  • components.schemas MeasurementPlanFramework, MeasurementPlanRow and MeasurementPlanChange.

They follow the file's conventions: the Library tag, security: [{tokenAuth: []}], the shared Page / PerPage parameters and the Unauthorized / Forbidden / NotFound / UnprocessableEntity responses. The paths sit after /impact_frameworks/{id}/missing_metrics, as they do in the Rails copy.

server.js: four hand-written endpointCard(...) entries, one per operation, in the Library section after the missing-metrics card. The PATCH cards link to the existing "Add metric to" section for adding a metric to a Survey first. No styles, head, assets or routes were changed (git diff --stat: openapi.yaml +303, server.js +49).

Testing

  • npm run check passed: "Site check passed: routes, spec, logo, favicon and branding are intact."
  • The YAML parses. Every $ref resolves, and there are no duplicate mapping keys.
  • The docs page was booted locally and renders all four new cards.

Release timing

Neither this repo's CLAUDE.md nor its README says whether the API docs have launched publicly, so it isn't clear which rule applies. Matt decides:

  • While the docs are pre-launch: this PR may be merged once it has been reviewed, without waiting for the Rails change to reach production.
  • After public launch: don't merge it until the Rails PRs are live in production, because every push to main deploys to Vercel at once.

Confluence MA still needs a matching page until the migration to api-docs is finished. This PR doesn't cover that.

Auto-fix may be enabled on this PR — replies to review comments could come from Claude rather than the named author.


Generated by Claude Code

Add GET and PATCH /impact_frameworks/{id}/measurement_plan and
/projects/{project_id}/measurement_plan to openapi.yaml, with the
MeasurementPlan response and the MeasurementPlanFramework,
MeasurementPlanRow and MeasurementPlanChange schemas copied from the
Rails repo's vendored spec. Add the four matching endpoint cards to the
Library section of the docs page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F1a5xqhHSfBrcWPnDm1MUR
@vercel

vercel Bot commented Nov 29, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
api-docs Ready Ready Preview Nov 29, 2026 10:21am UTC

@mattkepple
mattkepple marked this pull request as ready for review November 29, 2026 10:46
@mattkepple
mattkepple merged commit 6271aa1 into main Nov 29, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
Preview — 68df3199 Deployed Nov 29, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants