Skip to content

Fix invalid category bracket cascades after score edits - #18

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/critical-correctness-bugs-fb91
Draft

Fix invalid category bracket cascades after score edits#18
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/critical-correctness-bugs-fb91

Conversation

@cursor

@cursor cursor Bot commented May 22, 2026

Copy link
Copy Markdown

Summary

  • Reset every downstream category knockout match when an edited completed match changes winner, including deeper rounds fed by now-invalid matches.
  • Re-settle/void bets for downstream matches that are reset by the cascade.
  • Refresh match caches after match updates so organizers see propagated bracket changes.
  • Add guards for destructive guest/organizer removal paths that could corrupt live tournaments or leave removed users with organizer access.

Validation

  • npm test -- --run tests/knockoutAdvance.test.ts
  • npm run typecheck
  • npm test
  • npm run lint (passes with existing warnings)
Open in Web View Automation 

Co-authored-by: Octavio Frangipani <octapf@users.noreply.github.com>
@vercel

vercel Bot commented May 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
matchpoint Ready Ready Preview, Comment May 22, 2026 10:43am

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