Bug: sign endpoint doesn't create outbox event — no confirmation email or GroupMe link #6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Bug
Lineage
plan-wkq→ Phase 14 (Billing Tiers & Contracts) — discovered during contract send-out validationRepo
forgejo_admin/westside-contractsWhat Broke
The
POST /contract/{token}/signendpoint updates the player record directly in Postgres but does NOT insert an outbox event. The basketball-api outbox worker (services/outbox.py) is what triggers the confirmation email with GroupMe share link. Without the outbox event:email_logentry is createdRepro Steps
westside-contracts.tail5b443a.ts.net/contract/{token}for any test playeroutboxtable — no new event createdemail_logtable — no new entryExpected Behavior
After signing via the contract UI:
contract_status = 'signed'(works today){event_type: 'contract_signed', tenant_id: 1, payload: {player_id, player_name, team_id, parent_id}, status: 'pending'}/admin/process-outbox?tenant_id=1triggers immediate processingEnvironment
31cebfd(latest on main)Acceptance Criteria
outboxtableemail_logentry created with typecontract_signedRelated
project-westside-basketball— project this affectsforgejo_admin/westside-app #73— Send travel team contracts (blocked by this)forgejo_admin/westside-app #74— Send local team contracts (blocked by this)