Commit Graph

10 Commits

Author SHA1 Message Date
Kalle
8dc92140fc
Optimize builds loaders (#3076)
Some checks failed
E2E Tests / e2e (push) Has been cancelled
Tests and checks on push / run-checks-and-tests (push) Has been cancelled
Updates translation progress / update-translation-progress-issue (push) Has been cancelled
2026-05-17 16:21:13 +03:00
Kalle
d004efa3b1 Optimize ReportedWeapon queries on user seasons page
Some checks failed
E2E Tests / e2e (push) Has been cancelled
Tests and checks on push / run-checks-and-tests (push) Has been cancelled
Updates translation progress / update-translation-progress-issue (push) Has been cancelled
2026-05-14 22:03:37 +03:00
Kalle
4bc8033841 Collapse repeated manual badge grants into a count column
TournamentBadgeOwner previously stored manual grants as N identical
rows to represent "this user has this badge N times" — one user had
12,345 duplicate rows for a single badge. This adds a `count` column,
collapses NULL-tournamentId duplicates in the backfill, and rewrites
the BadgeOwner view to expose count via SUM. The table shrinks from
75,596 to 24,204 rows. Also adds an index on TournamentBadgeOwner(userId)
as defense-in-depth for direct lookups, and updates replaceOwners to
dedupe ownerIds at insert time. Profile-page query for the worst-case
user drops from ~4 ms to ~1–2 ms warm.
2026-05-14 18:09:41 +03:00
Kalle
f9adca6af7
New Plus Voting pass criteria (#2924)
Some checks are pending
E2E Tests / e2e (push) Waiting to run
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run
2026-05-10 16:26:08 +03:00
Kalle
f60966e11d Cap placements bracket progression placements at 100
This matters as we have arrays where the size is the amount of placements.
Previously some users put 100k + placements
2026-05-10 14:22:40 +03:00
Kalle
2b5b1b1948
New match page (#3032)
Some checks are pending
E2E Tests / e2e (push) Waiting to run
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run
2026-05-04 18:15:10 +03:00
Kalle
2d3bff6437 Fix tournament page crash on page load + add backend check against it
Error: Invariant failed: Empty placements not supported
I don't think it's possible for this to happen normally
but this fix provides more defense just in case
2026-05-01 15:30:01 +03:00
Kalle
ec981d586e Fix team having many tournament level check-ins
Concrete bug it caused: wrong team count for tournament card on the front page
2026-04-27 18:05:49 +03:00
Kalle
d91b8444b6 Clean up obsolete mode tags 2026-04-27 07:28:00 +03:00
Kalle
2ed02f757d
A/B (bipartite) round robin variation (#2985) 2026-04-18 14:21:28 +03:00