Skip to content

docs: correct canonical event_id format#242

Open
paperclip-resolver[bot] wants to merge 1 commit into
mainfrom
fix/3432-event-id-docs
Open

docs: correct canonical event_id format#242
paperclip-resolver[bot] wants to merge 1 commit into
mainfrom
fix/3432-event-id-docs

Conversation

@paperclip-resolver
Copy link
Copy Markdown
Contributor

Summary

Customer report SHA-3432 (rogervtay@gmail.com, Pro tier) flagged the /concepts/event-matching and /events docs as claiming an evt_{league}_{home}_{away}_{date} format that does not exist at runtime — the real format is nba_celtics_lakers_2026-02-08_b3 (no evt_ prefix, hyphenated date, trailing 6-hour bucket).

This PR brings the docs in line with what the API actually returns.

What changed

  • concepts/event-matching.mdx — substantive rewrite of the format section:
    • Real format string {league}_{teamA}_{teamB}_{YYYY-MM-DD}_b{N}.
    • New "Start-time bucket suffix" section explaining _b{N} (6-hour bucket, ET-anchored for US-league sports, UTC otherwise, why it exists, cross-bucket fragmentation as a known limitation).
    • New "Live vs Pre-Match Share The Same Event ID" section answering rogervtay C2 directly — both states flow under one canonical id with is_live distinguishing them.
    • Updated all inline examples to real canonical IDs.
    • Added key-property row stating canonical IDs carry no evt_ prefix.
  • api-reference + sdks/python + streaming — replaced evt_*_YYYYMMDD example IDs with realistic canonical IDs (e.g. nba_celtics_lakers_2026-02-08_b3, nfl_bills_chiefs_2026-02-17_b2).
  • SSE replay sequence ids (evt_00001, evt_00042 etc. in stream.mdx) preserved — those are opaque SSE message IDs, not canonical event IDs.

Verification

  • pnpm typecheck passes.
  • All occurrences of bogus evt_<league>_<a>_<b>_YYYYMMDD removed from content/en/ (only evt_NNNNN SSE message IDs remain).
  • Format and bucket logic cross-checked against api-adapters/utils/canonical_ids.py (bucket_date_str, _HOUR_BUCKET_SIZE=6, _US_SPORT_KEYS for ET anchoring).

Out of scope (tracked separately)

  • C2 (DK absent from live event_id but present pre-game) — likely an adapter-side start-time drift on DK live feed, opening follow-up issue.
  • C4 (caesars home/away flip across same canonical event_id) — confirmed reproducible against nba_cavaliers_knicks_2026-05-23_b3, opening follow-up issue against api-adapters.
  • Non-English locales (de/, es/, fr/, pt/, ru/) — left for the translation sync.

Refs SHA-3432

Type: docs

Customer rogervtay reported that /events docs claim id format
evt_{league}_{home}_{away}_{date}; runtime emits no evt_ prefix and
carries a trailing _b{N} 6-hour start-time bucket suffix.

- Update concepts/event-matching.mdx: real format with _b{N},
  new "Start-time bucket suffix" section, explicit "live and
  pre-match share the same canonical event_id" note, key-property
  row stating canonical IDs carry no evt_ prefix.
- Replace evt_*_YYYYMMDD example IDs across api-reference and
  sdks/python pages with realistic canonical IDs
  (e.g. nba_celtics_lakers_2026-02-08_b3).
- SSE replay sequence IDs (evt_NNNNN in stream.mdx) preserved —
  those are opaque SSE message ids, not canonical event ids.

Refs SHA-3432
Type: docs
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.

0 participants