Skip to content

CP-8956: document adding matching Contacts as event guests - #110

Closed
mattkepple wants to merge 1 commit into
mainfrom
CP-8956-event-guests
Closed

mattkepple wants to merge 1 commit into
mainfrom
CP-8956-event-guests

Conversation

@mattkepple

Copy link
Copy Markdown
Contributor

What & Why

API docs for CP-8956 PR 1 of 4 (Add to › An event for the Contacts selected on Manage Contacts). The Rails change is MakerbleDev/makerble#17186.

  • openapi.yaml
    • POST /events/{id}/guests (addEventGuests): contact_ids is no longer required; new filter_data, excluded_ids and project_id choose everyone matching the Manage Contacts filters. New 200 and 202 responses for that mode, with the skip reasons (headline_only, not_in_project, event_full, requirements_not_met) described in front-end terms, and a second request example. The contact_ids behaviour and its 201 are unchanged.
    • New GET /beneficiaries/bulk_actions/{id} (getBeneficiaryBulkAction, tag Beneficiaries, tokenAuth): progress of any bulk change to Contacts.
    • New schemas BeneficiaryBulkAction and EventGuestsBulkAdd.
  • server.js: the POST /events/{id}/guests card gains the new fields and responses; new card for GET /beneficiaries/bulk_actions/{id} after the bulk project moves cards.

The same openapi.yaml change is in the Rails repo's spec copy (spec/support/api_schemas/openapi.yaml), where the contract specs check the responses against it.

Release timing

The API docs are pre-launch, so this may be merged once reviewed without waiting for the Rails change to reach production (CLAUDE.md "Order of work and release timing").

Testing

  • npm run check passes; node --check server.js passes; openapi.yaml parses.
  • The POST /events/{id}/guests section is identical to the Rails repo's vendored copy, whose contract specs pass.

Generated by Claude Code

POST /events/{id}/guests now also takes filter_data (with excluded_ids
and project_id) to add everyone matching the Manage Contacts filters,
replying 200 or 202 with the bulk action's counts. New
GET /beneficiaries/bulk_actions/{id} reports the progress (CP-8956).

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

vercel Bot commented Oct 30, 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 Oct 30, 2026 5:50am UTC

Copy link
Copy Markdown
Contributor Author

Brought into main by #200 (CP-9078), applied by hand because this draft conflicted with main. Closing this draft.


Generated by Claude Code

@mattkepple mattkepple closed this Nov 23, 2026

This branch was successfully deployed

1 active deployment
Preview — 74e13368 Deployed Oct 30, 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