feat: apply certified ratings during result completion

This commit is contained in:
Josh Creek
2026-09-01 10:08:11 +01:00
parent 388300c553
commit dd80b52a11
4 changed files with 162 additions and 6 deletions
+3
View File
@@ -11,6 +11,9 @@ func TestResultSQLPreservesReceiptConflictAndAtomicCommitBoundaries(t *testing.T
ResultReceiptCommitSQL: {"COALESCE(committed_at", "committed_at"},
ResultOutboxSQL: {"match_completed", "aggregate_id", "revision"},
RatingLockSQL: {"ORDER BY player_id", "FOR UPDATE"},
MatchParticipantRatingsSQL: {"match_participants", "JOIN ratings", "ORDER BY mp.player_id"},
RatingValuesSQL: {"player_id = ANY($1)", "ORDER BY player_id"},
RatingUpdateSQL: {"ranked_games = ranked_games + $5", "revision = revision + 1"},
}
for query, fragments := range checks {
for _, fragment := range fragments {