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

[API]: Show initial score on live scores API #11663

Open
JonRay15 opened this issue Sep 9, 2024 · 1 comment
Open

[API]: Show initial score on live scores API #11663

JonRay15 opened this issue Sep 9, 2024 · 1 comment
Labels
api fe-request A list of reasonably high value API change requests from front end

Comments

@JonRay15
Copy link

JonRay15 commented Sep 9, 2024

Summary

The live score API below at the end of an epooch gives each team's final score for that epoch.

https://api.n00.testnet.vega.rocks/api/v2/games/team-scores?filter.gameIds=ffe85b4cc20baa4f869cf89f8a36a1f3f6eceecf1c400d6f3c11189d58a01503

But it then is not updated again until the next refresh ... which means if you uery it for the CURRENT epoch you get no info so the FE is showing "no data".

Ideally the Core would also publish a starting score for the next epoch, which obviously will be zero for everyone but would only show eligible parties. This would mean the FE could show the correct thing.

@JonRay15 JonRay15 added the api label Sep 9, 2024
@JonRay15 JonRay15 added the fe-request A list of reasonably high value API change requests from front end label Sep 9, 2024
@JonRay15
Copy link
Author

JonRay15 commented Sep 9, 2024

Is it even possible to do this?

My fear is to determine the list of "eligible parties" the only thing we'll really be able to do is look at ALL TEAMS which is not practical.

Maybe a workaround would be to do all parties present in epoch n-1 and show those parties with a score of zero to start the epooch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api fe-request A list of reasonably high value API change requests from front end
Projects
Status: No status
Development

No branches or pull requests

1 participant