Seed events table with 2026 tournament schedule from contracts #331
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#331
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
Standalone — events table was empty. Tournament data existed only in hardcoded HTML in westside-contracts. Schedule page showed "No upcoming events."
NOTE: This was applied directly to prod without a ticket. Retroactive scoping.
Repo
forgejo_admin/basketball-apiUser Story
As a parent visiting the schedule page,
I want to see upcoming tournaments
So that I know the season event calendar.
Context
The
eventstable (migration 029) existed with 0 rows. Tournament data was hardcoded inwestside-contracts/src/routes/contract/[token]/+page.svelte. The/public/scheduleAPI already returns events alongside practices. The schedule page already renders event cards. Only the data was missing.8 events were seeded directly via
kubectl execSQL INSERT on 2026-04-04.Environment
File Targets
No code changes. Data-only operation.
Source of truth:
westside-contracts/src/routes/contract/[token]/+page.svelte(tournament details in contract HTML)Acceptance Criteria
eventstable (3 Kings, 5 Queens tournaments)/public/scheduleAPI returns all 8 eventsTest Expectations
SELECT count(*) FROM events= 8kubectl exec -n basketball-api postgres-... -- psql -U basketball -d basketball -c "SELECT title, division, start_date FROM events ORDER BY start_date;"Constraints
Checklist
Related
westside-basketball— project this affectsScope Review: READY
Review note:
review-790-2026-04-03Scope is solid — 8 events (3 Kings, 5 Queens) verified against contract HTML in westside-contracts. All prerequisite work (migration 029, CRUD endpoints, public schedule endpoint) is complete. Data-only operation, no decomposition needed.
arch-basketball-apinote exists in pal-e-docs (not a blocker for this ticket)