Skip to content

CP-9078: Bring in the backlog of draft docs PRs whose Rails change is merged - #200

Merged
mattkepple merged 18 commits into
mainfrom
CP-9078-docs-backlog
Nov 23, 2026
Merged

mattkepple merged 18 commits into
mainfrom
CP-9078-docs-backlog

Conversation

@mattkepple

Copy link
Copy Markdown
Contributor

What & Why

Part of CP-9078. The Rails repo's contract specs use a copy of this repo's openapi.yaml. That copy can't be refreshed from main because main was missing endpoints that were documented only in open draft PRs here. Every one of those drafts has its Rails change merged into develop. Most of them now conflict with main, and some were stacked on branches that have since merged.

This PR brings them all in at once. Every operation and schema in the Rails repo's contract-tested copy is now in openapi.yaml too.

Draft Issue How it came in
#12 CP-8205 story_category_ids formats merged as is
#16 CP-8727 OAuth 2.0 merged; reworded (see below)
#18 CP-8728 webhook subscriptions its two commits, applied by hand (it was stacked on the merged CP-8585 branch). Drops the stray openapi.yaml.orig it had committed
#19 CP-8752 /health merged; nav link uses the method class with no inline style=
#45 CP-8831 hide_unanswered_questions hand-applied to ProjectStoryCategory. allow_respondent_finish_later was already documented
#55 CP-8843 Event Formats only the add/remove-from-project endpoints, EventFormatProject and EventFormatAdminOnly. Get, create and edit were already on main
#56, #57 CP-8843 Event Catalogues, Contacts' Portal links paths and schemas from the contract-tested copy; sections, nav links and tags from the drafts
#60 CP-8520 Workflow Tracker contact_criteria hand-applied
#64 CP-8540 add_colleague permissions hand-applied
#65 CP-8515 Formula Tracker results applied cleanly
#85 CP-8870 Explore pages paths and schemas from the contract-tested copy, which also covers the Ideas, Impact Frameworks and Metrics pages added later. ExploreFacetGroup.key is no longer limited to the Explore Surveys keys
#110, #111, #114 CP-8956 bulk actions on Contacts hand-applied. GET /relationship_categories was already on main
#115 CP-8327 Audio Notes applied cleanly; identical to the contract-tested copy

Not included:

Change from #16: the draft marked 26 operations with oauth2 and said those were the ones a connected app can call. That list has since grown to the 74 an Organisation API key can call (documented in #194). A partial set of marks would read as the whole list, so the marks are dropped and both the spec intro and the docs page now say a connected app can call the same endpoints as an Organisation API key. The oauth2 security scheme is kept.

Checks

  • npm run check passes and node --check server.js passes.
  • openapi.yaml parses with js-yaml (duplicate keys rejected). 443 operations, unique operationIds, every $ref resolves.
  • Only openapi.yaml and endpoint content in server.js change. No <style>, <head>, vercel.json, SPEC_PATH or assets/ changes.

Merge timing: the API docs are pre-launch, and Matt asked for this to be merged once reviewed. Every Rails PR documented here is merged into develop.

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

claude added 18 commits October 5, 2026 09:42
Rename the Survey filter to story_category_ids and describe the accepted
ID list formats, the story_category_id alias and the access filtering.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017EknMb1u3jr8AEMujZxjZu
Add the OAuth 2.0 authorisation code flow for connected apps: an oauth2
security scheme (offered alongside tokenAuth on the operations connected
apps can call), a "Connecting an app with OAuth 2.0" section, and
POST /oauth/token and /oauth/revoke, which live at the site root rather
than /api/v2.

Add the same section and endpoint cards to the hand-written docs page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AELZRxYpR5ytpy4ZGTu8Td
The Rails API's health check now reports which build is running so
testers can tell when a deploy is live. Add the endpoint to openapi.yaml
and a card to the hand-written docs page.

CP-8752

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J2XSr3SPzDwwagQz7oF86h
…s (CP-8728)

Applied by hand onto current main because the draft was stacked on the
already-merged CP-8585-webhooks branch. Drops the stray openapi.yaml.orig
the draft had committed.
…it (CP-8843)

Get, create and edit were already documented on main, so only the two
project endpoints, EventFormatProject and EventFormatAdminOnly are added,
taken from the Rails repo's contract-tested copy of the spec.
… (CP-8956)

GET /relationship_categories and RelationshipCategory were already on
main, so only the two bulk endpoints and their cards are added.
…rtal links and Explore pages (CP-8843, CP-8870)

Paths and schemas are taken from the Rails repo's contract-tested copy
of the spec, which also has the Explore Ideas, Impact Frameworks and
Metrics pages added to #85 after it was opened. The nav links use the
method classes with no inline style.
Draft #16 marked 26 operations as open to connected apps. Since then the
list has grown to the 74 an Organisation API key can call (documented in
#194), so a partial set of marks would read as the whole list.
@vercel

vercel Bot commented Nov 23, 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 23, 2026 2:21pm UTC

This branch was successfully deployed

1 active deployment
Preview — 00314d18 Deployed Nov 23, 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