-
Notifications
You must be signed in to change notification settings - Fork 40
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
Bug: Lifetime player stats being returned with matches #145
Comments
This is gonna break multiple things in my bot, EZLBot. 😓 When is this change happening? So I can build a work around can't have a broken bot serving 500+ servers 😬 |
Yup this will break my site as well, we will just need to coordinate. Also this will increase API calls so I'll have to consider the implications :) |
Yup, this is sure to break some sites. We'll definitely be sure everyone is notified and has time to make the necessary changes before deploying anything 👍 |
This will break our service in parts. |
Players Name are being stored on player data, while the participant data is only giving player id. |
Noted: We need to keep player.name somewhere to handle name changes. |
we need playername, apiId at the least in same response to avoid making recurring calls |
@cklugewicz made a very good suggestion/comment, I'll quote it even if he/she decided to delete it:
Actually, this is a possible solution to this issue. http 'https://api.dc01.gamelockerapp.com/shards/eu/players' "Accept":"application/json" "X-Title-Id":"semc-vainglory" "Authorization":"" "filter[playerIds]"=="8f454688-2fe5-11e6-9433-06d90c28bf1a"
# 200 It does not work for an array of ids though: http 'https://api.dc01.gamelockerapp.com/shards/eu/players' "Accept":"application/json" "X-Title-Id":"semc-vainglory" "Authorization":"" "filter[playerIds]"=="8f454688-2fe5-11e6-9433-06d90c28bf1a,727fa644-036e-11e7-8b59-062cb73cdbb1"
# 404 If we could get up to 6 players at once from I have some concerns about including tl;dr: API is in Alpha, this change will break applications anyways, better do more big breaking changes now than have more problems with |
Still not sure what we want to do here. Still need to think about this more. Ideally I think the answer is that we return only the latest version of the player. |
I have a solution:
|
Yup. I suggest moving |
@schneefux Yeah, I think that's a pretty good solution. We can do this. I'll add to the API list now. |
Tasks:
|
This issue was moved to gamelocker/platform#8 |
We have been returning player stats within the match object. This object is actually life-to-date-of-match rather than life-to-now. It's super confusing.
The intention was to have snapshot info on the participant record. To fix this, we are considering removing the player data from the match object. We will be keeping participant data (data relevant to the match). However, in order to retrieve player lifetime data, the players endpoint will need to be used, and matches will no longer store lifetime player information.
If anybody foresees their apps breaking with this update, please let us know and we can try to accommodate. Thanks y'all!
The text was updated successfully, but these errors were encountered: