Adds a new leaderboard feature between a user and their friends#17595
Adds a new leaderboard feature between a user and their friends#17595guimann2015 wants to merge 3 commits intolichess-org:masterfrom
Conversation
Co-authored-by: Francisco Guerreiro <francisco.franca.guerreiro@tecnico.ulisboa.pt>
|
@ornicar would appreciate your review when you have a moment. Thanks! |
|
Before going into the code details, I have a few reservations about the viability of the feature. The ranking collection is designed for site-wide leaderboards. It only contains players who have played a ranked game in a given category during the last 7 days. The point of this is to prevent a player from sitting on a peak rating for too long, and also to reduce the amount of documents. Another thing is that people can (and do) follow 400 other players. Displaying that page can then be quite costly. |
|
Closing due to inactivity and concern over maintenance burden. This may be a good candidate for an API integration project. |
Adds a new leaderboard feature that allows users to compare their ratings
against their friends across different game variants.
This implementation includes:
This is the new button in the friends page:
This is the friends leaderboard for a user with more than one friend:
This is the friends leaderboard for a user with no friends:
Co-authored-by: Francisco Guerreiro francisco.franca.guerreiro@tecnico.ulisboa.pt
@franciscofguerreiro