Skip to content

CP-8547 Document GET /distance_travelled - #196

Merged
mattkepple merged 1 commit into
mainfrom
CP-8547-distance-travelled
Nov 20, 2026
Merged

mattkepple merged 1 commit into
mainfrom
CP-8547-distance-travelled

Conversation

@mattkepple

Copy link
Copy Markdown
Contributor

Companion to the Rails PR MakerbleDev/makerble#17982 · Jira: https://makerble.atlassian.net/browse/CP-8547

Documents GET /api/v2/distance_travelled: for each Choice tracker with a success direction, how many Contacts improved, stayed the same or worsened between their first and latest answer (the Progress Board's Success Direction Summary).

  • openapi.yaml: the /distance_travelled path (tag Projects, operationId: getDistanceTravelled, tokenAuth, shared Page / PerPage parameters and Unauthorized / UnprocessableEntity responses), and the new schemas PaginatedDistanceTravelled, DistanceTravelledTracker and DistanceTravelledShare. There's no NotFound response, because a Project you can't view is left out rather than refused. LastSyncDatetime isn't offered, as the figures are totals (same as /project_results).
  • server.js: the matching endpointCard, after /project_results.

git diff --stat touches only openapi.yaml and server.js. npm run check passes, and the YAML parses.

Merge timing: this goes live on Vercel the moment it reaches main. While the docs are pre-launch it can be merged once reviewed. If they have launched publicly, hold it until #17982 is live in production. Matt to confirm which applies.

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

Distance travelled on Choice trackers (MakerbleDev/makerble#17982):
the openapi.yaml path and schemas, and the endpoint card.

CP-8547

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

vercel Bot commented Nov 20, 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 20, 2026 9:54am UTC

@mattkepple
mattkepple marked this pull request as ready for review November 20, 2026 10:21
@mattkepple
mattkepple merged commit 2e75cff into main Nov 20, 2026
3 checks passed

Copy link
Copy Markdown
Contributor Author

Merged into main at Matt's request. The endpoint it documents (MakerbleDev/makerble#17982) is merged into develop but is not in production yet.


Generated by Claude Code

This branch was successfully deployed

1 active deployment
Preview — 7cf1ae51 Deployed Nov 20, 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