Skip to content

Commit

Permalink
Merge pull request #11458 from vegaprotocol/11457
Browse files Browse the repository at this point in the history
fix: cursor column naming for game scores
  • Loading branch information
ze97286 authored Jul 15, 2024
2 parents 11fd3cd + b8ccac8 commit f3ab9b0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@
- [11438](https://github.com/vegaprotocol/vega/issues/11438) - Add missing assignment to epoch to and from in `gameTeamScores` resolvers.
- [11442](https://github.com/vegaprotocol/vega/issues/11442) - Add validation to `submitAMM` to ensure the curves can be successfully generated.
- [11448](https://github.com/vegaprotocol/vega/issues/11448) - Fix team game score query with epoch filter.
- [11457](https://github.com/vegaprotocol/vega/issues/11457) - Fix cursor column ordering for game scores.
- [11454](https://github.com/vegaprotocol/vega/issues/11454) - Ensure ended transfers proper handling.


## 0.76.1

### 🐛 Fixes
Expand Down
12 changes: 6 additions & 6 deletions datanode/sqlstore/game_scores.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ type GameScores struct {
}

var gamesTeamOrderding = TableOrdering{
ColumnOrdering{Name: "t1.game_id", Sorting: ASC},
ColumnOrdering{Name: "t1.epoch_id", Sorting: DESC},
ColumnOrdering{Name: "t1.team_id", Sorting: ASC},
ColumnOrdering{Name: "game_id", Sorting: ASC},
ColumnOrdering{Name: "epoch_id", Sorting: DESC},
ColumnOrdering{Name: "team_id", Sorting: ASC},
}

var gamesPartyOrderding = TableOrdering{
ColumnOrdering{Name: "t1.game_id", Sorting: ASC},
ColumnOrdering{Name: "t1.epoch_id", Sorting: DESC},
ColumnOrdering{Name: "t1.party_id", Sorting: ASC},
ColumnOrdering{Name: "game_id", Sorting: ASC},
ColumnOrdering{Name: "epoch_id", Sorting: DESC},
ColumnOrdering{Name: "party_id", Sorting: ASC},
}

func NewGameScores(connectionSource *ConnectionSource) *GameScores {
Expand Down

0 comments on commit f3ab9b0

Please sign in to comment.