Unverified Commit afeb50fc authored by Andrei Mihu's avatar Andrei Mihu Committed by GitHub
Browse files

Leaderboard cache improvements. (#1049)

parent 802cfd2f
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -4,13 +4,22 @@ All notable changes to this project are documented below.
The format is based on [keep a changelog](http://keepachangelog.com) and this project uses [semantic versioning](http://semver.org).

## [Unreleased]
### Added
- Introduce pagination for console API leaderboard and tournament listing endpoint.

### Changed
- Better formatting for graphed values in devconsole status view.
- Better handling of large numbers of configured leaderboards and tournaments.
- Improved delivery of non-persistent SendAll notifications to large numbers of users.
- Truncate stats reported to devconsole status view to 2 decimal digits for improved readability.

### Fixed
- Correct cursor usage in group listings using only open/closed group state filter.
- Remap original Google IDs to "next generation player IDs".
- Fix issue delivering persistent SendAll notifications to large numbers of users.
- Remove incorrect category start and category end parameters from runtime leaderboard list functions.
- Graceful handling of idempotent tournament creation operations.
- Correct sorting of batched storage write and delete operations.

## [3.16.0] - 2023-04-18
### Added
+1188 −1101

File changed.

Preview size limit exceeded, changes collapsed.

+640 −746

File changed.

Preview size limit exceeded, changes collapsed.

+11 −1
Original line number Diff line number Diff line
@@ -287,7 +287,7 @@ service Console {
  }

  // List leaderboards
  rpc ListLeaderboards (google.protobuf.Empty) returns (LeaderboardList) {
  rpc ListLeaderboards (LeaderboardListRequest) returns (LeaderboardList) {
    option (google.api.http).get = "/v2/console/leaderboard";
  }

@@ -708,10 +708,20 @@ message Leaderboard {
  uint32 next_reset = 22;
}

// List leaderboards.
message LeaderboardListRequest {
  // An optional cursor to paginate from.
  string cursor = 1;
}

// A list of leaderboards.
message LeaderboardList {
  // The list of leaderboards returned.
  repeated Leaderboard leaderboards = 1;
  // Total count of leaderboards and tournaments.
  int32 total = 2;
  // A cursor, if any.
  string cursor = 3;
}

// Get Leaderboard.
+18 −0
Original line number Diff line number Diff line
@@ -1597,6 +1597,15 @@
            }
          }
        },
        "parameters": [
          {
            "name": "cursor",
            "description": "An optional cursor to paginate from.",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Console"
        ]
@@ -4006,6 +4015,15 @@
            "$ref": "#/definitions/nakamaconsoleLeaderboard"
          },
          "description": "The list of leaderboards returned."
        },
        "total": {
          "type": "integer",
          "format": "int32",
          "description": "Total count of leaderboards and tournaments."
        },
        "cursor": {
          "type": "string",
          "description": "A cursor, if any."
        }
      },
      "description": "A list of leaderboards."
Loading