Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant