Add downstream consumer check to migration workflow #193
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo_admin/basketball-api#193
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
Feature
Lineage
Discovered during incident:
forgejo_admin/westside-contracts #25. Migration 019 droppedplayers.team_idwithout updating westside-contracts, causing 2+ days of HTTP 500s on all contract pages.Repo
forgejo_admin/basketball-apiUser Story
As a developer running migrations on basketball-api
I want a checklist that flags shared tables with downstream consumers
So that I don't break westside-contracts (or future consumers) with schema changes
Context
basketball-api's Postgres database is consumed directly by westside-contracts via raw SQL queries over the shared cluster DNS (
postgres.basketball-api.svc.cluster.local). Migration 019 (019_player_teams_junction.py) droppedplayers.team_idin favor of aplayer_teamsjoin table. westside-contracts was still queryingp.team_id, causing all contract pages to return 500 for 2+ days with no alert.Two gaps: (1) no process to check downstream consumers before merging migrations, (2) no alerting on westside-contracts error rates.
File Targets
Files the agent should modify or create:
CONTRIBUTING.mdordocs/migrations.md— document shared tables and downstream consumersalembic/README.md— add migration checklist noting downstream verificationFiles the agent should NOT touch:
alembic/versions/*— no migration changes neededAcceptance Criteria
Test Expectations
Constraints
Checklist
Related
project-westside-basketball— project this affectsforgejo_admin/westside-contracts #25— the incident that exposed this gapScope Review: READY
Review note:
review-468-2026-03-27Ticket is well-scoped: all template sections present, traceability complete (story:WS-S5, arch:basketball-api, issue open), file targets verified (3 new files to create, alembic/versions confirmed untouched). Only downstream consumer confirmed is westside-contracts (direct SQL to 4 shared tables). 3 AC, all agent-verifiable. Estimated ~3 min agent pass. No decomposition needed.