-
Notifications
You must be signed in to change notification settings - Fork 0
Tournaments/Frontend for Analytics Page #1275
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
Conversation
…odels.py and views.py file. This resolves issue #1081.
…s will go to issue #668
|
I have added everything that we need for this. I think this is ready for review. |
|
@umerp, how are we supposed to get a tournament with matches that were played and all the stats needed to test this pr? Do you have any fixtures we can load? I have resorted to loading fixtures that I used in the simulation, and it gives an indication that some of these features work, but I am not sure in a case where they were actual matches played. |
|
Hi @umerp, I do not think I can use changes in a later PR to test this one. It should be easy to make a small test fixture and push it here. |
johnruge
left a comment
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! Good job!
MuyanXie
left a comment
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! The analytics dashboard is going to be very helpful. Thanks!
|
Issue Score: satisfactory Comments: |

[Tournament] Add frontend for analytics page
####Please merge 1082 first, then this one, then 1286.
What does this PR do?
Builds a new frontend page to display tournament analytics, including:
The page is accessible after a tournament concludes, providing users with a summary of how the tournament played out.
Why is this change necessary?
This feature provides players with insight into tournament performance and engagement. At the end of a tournament, users should be able to see key statistics that summarize the tournament experience.
What components/files are affected?
TournamentCreateTournamentMatchTournamentDetailurls.pyHow should this be tested?
After running these commands:
Note the tournament ID that gets printed
Visit /tournament/{tournament_id}/stats/ in your browser
You should see the match stats including:
The 5-minute duration match
The start and end times
The average duration
Related Issues
Closes #668