Skip to content

Commit 7d24a29

Browse files
committed
refactor: consolidate leaderboard into 4 categories with sorting
Merge highest_elo/most_elo_gained/elo_change into single elo category. Remove most_kills/most_matches. Add tertiary_value and sort_by/sort_dir params. Fix ELO query to use first/last delta instead of cross-type SUM. Add losses to win rate. All columns sortable via backend re-ranking.
1 parent c8184a1 commit 7d24a29

2 files changed

Lines changed: 115 additions & 201 deletions

File tree

hasura/metadata/actions.graphql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,8 @@ type Query {
342342
limit: Int
343343
offset: Int
344344
exclude_tournaments: Boolean
345+
sort_by: String
346+
sort_dir: String
345347
): LeaderboardResponse!
346348
}
347349

@@ -358,6 +360,7 @@ type LeaderboardEntry {
358360
player_country: String
359361
value: Float!
360362
secondary_value: Float
363+
tertiary_value: Float
361364
matches_played: Int
362365
}
363366

0 commit comments

Comments
 (0)