Skip to content

leaderboard fixes and lookup by slot#66

Merged
0xthrpw merged 4 commits intodevelopfrom
leaderboard-and-slots
Jun 20, 2025
Merged

leaderboard fixes and lookup by slot#66
0xthrpw merged 4 commits intodevelopfrom
leaderboard-and-slots

Conversation

@0xthrpw
Copy link
Member

@0xthrpw 0xthrpw commented Jun 19, 2025

leaderboard endpoints, service, cache

@0xthrpw 0xthrpw requested a review from Copilot June 19, 2025 23:00
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request introduces fixes and new lookup functionality for leaderboard endpoints along with a new slot lookup endpoint, and enhances caching for various leaderboard queries.

  • Added a new ListDetailsRow type and getListDetailsBySlot service method for slot lookup.
  • Updated leaderboard endpoints to use pagination and caching consistently.
  • Introduced a new slots router and endpoint.

Reviewed Changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/service/efp-indexer/service.ts Added new ListDetailsRow type and getListDetailsBySlot to fetch list details by slot; updated leaderboard rank mapping to convert rank from string to number.
src/router/api/v1/slots/index.ts Added new router for slot-related endpoints.
src/router/api/v1/slots/details/index.ts Added details endpoint to retrieve slot details with caching logic.
src/router/api/v1/leaderboard/mutes/index.ts Updated mutes endpoint; however, there is a potential cache key misassignment.
src/router/api/v1/leaderboard/muted/index.ts Updated muted endpoint to use pagination and caching.
src/router/api/v1/leaderboard/following/index.ts Updated following endpoint to use pagination and caching.
src/router/api/v1/leaderboard/followers/index.ts Updated followers endpoint to use pagination and caching.
src/router/api/v1/leaderboard/count/index.ts Updated count endpoint to include caching.
src/router/api/v1/leaderboard/blocks/index.ts Updated blocks endpoint to use pagination and caching.
src/router/api/v1/leaderboard/blocked/index.ts Updated blocked endpoint to use pagination and caching.
src/router/api/v1/index.ts Routed new slots endpoints along with reorganizing the API endpoints.

@0xthrpw 0xthrpw merged commit 1cf547a into develop Jun 20, 2025
4 checks passed
@0xthrpw 0xthrpw deleted the leaderboard-and-slots branch June 20, 2025 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant