Skip to content
This repository has been archived by the owner on Jan 23, 2025. It is now read-only.

Player's last 20 games not displayed in correct order #2

Open
stephenpapierski opened this issue Feb 26, 2018 · 2 comments
Open

Player's last 20 games not displayed in correct order #2

stephenpapierski opened this issue Feb 26, 2018 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@stephenpapierski
Copy link
Owner

The player's last 20 games are not displayed in the correct order when "Singles" or "Doubles" match type is selected. In order to grab singles or doubles games, the firebase query is sorting on field "p1t2" (exists if doubles, null if singles). Need to figure out how to then sort it based on the timestamp ("dt").

@stephenpapierski stephenpapierski added the bug Something isn't working label Feb 26, 2018
@stephenpapierski stephenpapierski self-assigned this Feb 26, 2018
@stephenpapierski
Copy link
Owner Author

Option 1: Download entire set of singles or doubles "/playersgame/" (don't limitTo()) and order by "dt" timestamp.

Option 2: Create "/singles_games/", "/doubles_games/", "/singles_playersgame/", and "/doubles_playersgame/"

Helpful data filtering reference

@stephenpapierski
Copy link
Owner Author

Created temporary fix where the last 20 games just loads all games (doubles and singles) regardless of match type, but it displays them in the correct order.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant