Skip to content
/ web Public

fix: create new match_options per bracket instead of mutating shared …#212

Merged
lukepolo merged 1 commit intomainfrom
fix/per-bracket-match-options
Feb 20, 2026
Merged

fix: create new match_options per bracket instead of mutating shared …#212
lukepolo merged 1 commit intomainfrom
fix/per-bracket-match-options

Conversation

@Flegma
Copy link
Contributor

@Flegma Flegma commented Feb 20, 2026

…record

DE and Swiss decider matches share a single match_options row. Editing one bracket's BO was mutating the shared record, changing all brackets. Now always creates a new record for the edited bracket and just unlinks when reverting to defaults.

…record

DE and Swiss decider matches share a single match_options row. Editing
one bracket's BO was mutating the shared record, changing all brackets.
Now always creates a new record for the edited bracket and just unlinks
when reverting to defaults.
@lukepolo
Copy link
Contributor

we should look to see if the tournament.match_options_id === match_options_id

if it does then we create
if its different we can update
if we revert we need tod elete the custom one

@lukepolo
Copy link
Contributor

we will use a trigger instead

@lukepolo lukepolo merged commit e53e4ea into main Feb 20, 2026
@lukepolo lukepolo deleted the fix/per-bracket-match-options branch February 20, 2026 00:38
@lukepolo
Copy link
Contributor

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.

2 participants

Comments