brackt/app/services/match-sync
Claude 21c6fd6229
Some checks failed
🚀 Deploy / 🚀 Deploy (pull_request) Has been skipped
🚀 Deploy / 🧪 Test (pull_request) Successful in 3m0s
🚀 Deploy / ʦ🔍 Typecheck & Lint (pull_request) Failing after 48s
🚀 Deploy / 🐳 Build (pull_request) Has been skipped
Extract shared QP change-detection into diffChangedQualifyingPoints
The before/after QP diff (with its null = "no prior award" and null → value
"first-time score" semantics) was duplicated in processQualifyingEvent and
rescoreTennisBracketAndDetectChanges. The two entry points must stay separate
(tennis snapshots before an authoritative delete-all; CS2 preserves rows), but
the comparison itself should live in one place.

Add diffChangedQualifyingPoints(before, after) in qualifying-points.ts and call
it from both paths. Unit-tested directly; the two integration tests still cover
the end-to-end behavior.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hq3fG4Zn3unntbSQAGSqCq
2026-07-01 21:20:50 +00:00
..
__tests__ Extract shared QP change-detection into diffChangedQualifyingPoints 2026-07-01 21:20:50 +00:00
espn-schedule.ts claude/great-lovelace-r3bznh (#88) 2026-06-12 22:35:35 +00:00
index.ts Extract shared QP change-detection into diffChangedQualifyingPoints 2026-07-01 21:20:50 +00:00
pandascore.ts claude/great-lovelace-r3bznh (#88) 2026-06-12 22:35:35 +00:00
tennis-draw-mapping.ts Auto-populate & auto-score tennis Grand Slam brackets from Wikipedia 2026-06-26 21:48:00 -07:00
types.ts Auto-populate & auto-score tennis Grand Slam brackets from Wikipedia 2026-06-26 21:48:00 -07:00
wikipedia-tennis.ts Auto-populate & auto-score tennis Grand Slam brackets from Wikipedia 2026-06-26 21:48:00 -07:00