-
Notifications
You must be signed in to change notification settings - Fork 3
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
Rating History API #780
Rating History API #780
Conversation
@Desperationis The home page chart looks a little odd (you can see if you pull this branch down). Also, I think we should implement a "loading" state for the chart component! Think you could take those tasks on? 😎 |
I added a loading status for the chart. It's not the spiny thing you wanted, but you can customize the text and style to whatever you want. Also, the reason the chart looks weird on the home page is because, by the looks of it, there is no data being returned for that episode. If you change the episode to a different year (2023 / 2022) it works just fine. I added a "No data available" status for this |
Also, there is a really weird error and I have absolutely no clue where it is coming from. It doesn't stop the program from running, but there's a type error in console |
Couldn't figure this out... just squashed it with a try catch haha 😆 |
try { | ||
if (loading) myChart.showLoading(loadingMessage ?? "Loading..."); | ||
else myChart.hideLoading(); | ||
} catch (e) { | ||
// Ignore internal highcharts errors... | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok trying to do that causes other errors nvm 💀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How are we testing this? There seems to be ranking data in the staging database for Battlecode 2022 but it is not showing up in the chart. |
@acrantel I see this in my staging... did you mean that there is more data that doesn't show up? Or like is there just none for you? |
I see "No data found to display". This happens both when I'm logged in and not logged in. |
Wacky... ideas for testing?? Do we have django tests? |
NVM disregard what I was saying about no data, I was testing it on staging backend when I should have been testing with local backend 💀 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! this is a breaking change for our API, but I don't think our old frontend uses the historical_rating endpoint so it is nbd
Adds a rating history API for multiple teams at once! Also, connects the home page chart to said api.
Closes #788 🚀