Skip to content

[offseason] Restore offseason event support (frozen EPA) + freshness ping - #13

Merged
chondl merged 10 commits into
masterfrom
offseason-events
Jul 17, 2026
Merged

[offseason] Restore offseason event support (frozen EPA) + freshness ping#13
chondl merged 10 commits into
masterfrom
offseason-events

Conversation

@chondl

@chondl chondl commented Jul 17, 2026

Copy link
Copy Markdown
Owner

Restores the pre-avgupta456#412 offseason behavior (TBA type-99, year >= 2025, week 9, EventType.OFFSEASON) with the PR avgupta456#400/7a3f7ec quality filters; EPA is never updated by offseason matches; offseason excluded from W-L records and noteworthy matches; EVENT_TYPE_OVERRIDES (2026isrtp -> DISTRICT) preserved and EPA-updating. Adds GET /v3/site/ping/event/{key}: in-memory-cooldown wrapper around the existing /v3/site/update_curr_year probe, pinged fire-and-forget by live event pages. Frontend: Offseason week label + filter option. Tests: pytest suite (20 passing) covering ingestion filter matrix, EPA freeze, record exclusion, ping cooldown.

chondl added 10 commits July 16, 2026 21:59
The frontend ping resolved to /v3/site/v3/site/ping/... (404) because
BACKEND_URL already includes /v3/site — the read-triggered fast path never
fired. Also add a (5,30)s timeout to the self-HTTP probe so a hung request
cannot wedge _ping_inflight and permanently disable the fast path.
The events list bucketed Ongoing/Upcoming purely off event.status, so an event
whose date window has started but whose TBA match schedule is not yet posted
(status still Upcoming — common for offseason events on load-in day) matched no
bucket and vanished from the list. Bucket by the date window instead: any
non-completed event with start_date <= today is Ongoing, future events are
Upcoming, and only genuinely finished events are Completed.
@chondl
chondl marked this pull request as ready for review July 17, 2026 06:58
@chondl
chondl merged commit 22f9430 into master Jul 17, 2026
@chondl
chondl deleted the offseason-events branch July 19, 2026 18:54
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.

1 participant