Skip to content

CP-9212: document Distance Travelled match count and reached_top - #175

Merged
mattkepple merged 1 commit into
mainfrom
CP-9212-distance-match
Nov 17, 2026
Merged

mattkepple merged 1 commit into
mainfrom
CP-9212-distance-match

Conversation

@mattkepple

Copy link
Copy Markdown
Contributor

Companion to MakerbleDev/makerble#17817. Jira: https://makerble.atlassian.net/browse/CP-9212

Documents the new keys in Cohort Tracker criteria for distance_travelled:

  • match (any|all|at_least) and match_count: how many of the chosen Choice Trackers a Contact must meet (e.g. improved in at least 2 of 3 goals).
  • the reached_top direction: the latest answer is the best on the scale.
  • that the enough_data denominator follows the match setting.

It changes only openapi.yaml (the criteria list) and the Cohort Tracker preview endpoint card in server.js. npm run check passes.

Release timing: this deploys as soon as it's merged to main. While the API docs are pre-launch, it can be merged once reviewed. Once they have launched, hold it until the Rails PR is live in production. The API already accepts unknown criteria keys, so documenting these early returns no error, but they have no effect until the Rails change ships.


Generated by Claude Code

Cohort Tracker criteria can now say how many Choice Trackers a Contact
must meet (any, all or at least N) and match a latest answer that is
the best on the scale. Rails PR: MakerbleDev/makerble#17817.

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

vercel Bot commented Nov 17, 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 17, 2026 12:56pm UTC

@mattkepple
mattkepple marked this pull request as ready for review November 17, 2026 14:10
@mattkepple
mattkepple merged commit 7ec67a0 into main Nov 17, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
Preview — 8fe95b92 Deployed Nov 17, 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