-
Notifications
You must be signed in to change notification settings - Fork 30
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 Graph is Not Displayed for Some Players Due to Error on Ratings Endpoint #42
Comments
xhr request to http://agagd.usgo.org/ratings/17440/ returns: that null date in the first entry causes the graph render to fail. The script could protect itself against that, but the data should also be cleaned up. |
The database table, Ratings, contains ratings and sigmas generated by the If you know of a way that we can "clean up the data" I would be interested Jonathan mysql> select * from ratings where Pin_Player = 17440 order by Elab_Date ; mysql> On Sat, 19 Mar 2016, Lee wrote:
|
So, i'm not familiar with the code that generates the ratings/sigma from the data, that record doesn't look like it has a meangingful rating or sigma value either so just deleting it would solve their problem. The other approaches would be to fix the code that generates the json to filter out those values (since without a meaningful date you couldn't graph it anyway), and/or fix the js to ignore those values. |
Let's focus for a moment on a specific example. Jonathan On Sat, 26 Mar 2016, Lee wrote:
|
How about http://agagd.usgo.org/ratings/17440/ ? |
It seems the code responsible for this is not checking invalid dates i.e., agagd/agagd/agagd_core/views/core.py Lines 86 to 105 in 3276d25
|
Both players now have graphs: https://agagd.usgo.org/player/17440/ http://agagd.usgo.org/player/22183/ However, for older ratings we are just seeing a json error. ie., https://agagd.usgo.org/ratings/7/
https://agagd.usgo.org/player/7/ https://agagd.usgo.org/ratings/1/
https://agagd.usgo.org/player/1/ In these cases, I think we should have the graph indicate that there is some issue with creation or that there is not enough data to display a graph. |
Player has no graph so far, played in same number of tournaments as other club members.
No graph: http://agagd.usgo.org/player/17440/
Has graph, same time period, same number of games
http://agagd.usgo.org/player/22183/
The text was updated successfully, but these errors were encountered: