Duplicate match found again #199
Loading…
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?
I have tried to fix this problem multiple times now:
And another one (2026-11-20, still listed as of writing):
What happens
The same game is listed twice: once as an ESPN feed entry, and again as a hub-only entry from the site's list. In both screenshots the second row is the site's, and it names one team TBD (to be determined):
The merge joins a site row to a feed entry only when both team names match, in either order. "TBD" is a placeholder, not a team name, and matches nothing, so the row can never join the feed entry and the game is listed twice.
What is known (read from the running app, 2026-11-20)
From the live game list (
GET /api/games), two pairs, each one game:sportsurge-70567"TBD vs. NC State Wolfpack"mens-college-basketball-401921691"NC State vs. Seton Hall"sportsurge-70539"TBD vs. Murray State Racers"mens-college-basketball-401921692"Murray St vs. Wisconsin"In each pair the site's row and the feed entry start at the same time, and the row names the same team the entry names (NC State, Murray State) while calling the opponent "TBD". The rows are the site's (sportsurge) hub rows — the
sportsurge-id prefix — not thetvapp's; thetvapp's list read the same day carries no "TBD" row. ESPN's own 2026-11-19 scoreboard carried only "West Virginia vs. Florida" (WVU/FLA), so that day's "TBD" row is the site's too, not the feed's.Why the #196 fix did not catch this
#196 (merged 2026-11-19) taught the merge to join a thetvapp row that no entry matches by both names to the one entry of its sport that names one of its teams and has the other's mascot. It does not reach these rows, for two reasons:
So #196 fixed thetvapp writing a school out in full or under an older name (LSU Tigers, BYU, IUPUI). It did not fix a row that names one team "TBD".
What is not known
The idea
Generalize #196's join to a row whose one team is a placeholder for an opponent the site does not know yet (observed: "TBD"). A site row (hub or thetvapp) that no entry matches by both names joins the one entry of its sport that names the row's known team, starts at the row's time, and holds no page from that source yet.
Three decisions to pin down:
With no such entry, or more than one (a doubleheader, a tournament day), the row stays its own entry, as #196 does.
When the row joins, its page upgrades the entry's own reference for that source (the hub row's real match page for the sportsurge reference), as a row matched by both names already does — so the game lists once and keeps its proven page.
Spec:
live-game-list, a requirement beside #196's "A thetvapp row joins its game by one team and the other's mascot".Done when
In the unit lane, with a hub row and a thetvapp row each naming one team "TBD":
Live: the two 2026-11-20 duplicates (NC State, Murray State) each list once.
and another one
Shipped in cmoriarty/sports-breaker#200, merged into
mainas2d0cd54ded.The OpenSpec change is archived as
2026-11-20-duplicate-match-found-again-i-have-tried-2yv88y.Braid run: http://openspecflow.internal.underthere.xyz/run/run_01M7X2V1PJ3DQA4QXG0P2YV88Y