Draft: Implement prototype of analytics dashboard that can be expanded upon#1432
Draft
drikusroor wants to merge 2 commits into
Draft
Draft: Implement prototype of analytics dashboard that can be expanded upon#1432drikusroor wants to merge 2 commits into
drikusroor wants to merge 2 commits into
Conversation
Contributor
Author
|
@Solcany I've assigned this issue to you since you are working on it now (or later) :-) |
Contributor
Author
|
@Solcany is this PR draft still relevant or should we close it? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduce a prototype of an analytics dashboard using TypeScript and Chart.js, along with a new API endpoint for exporting block data in the admin interface that can be used to build the real analytics dashboard.
As this is a prototype, it is also an invitation to criticise this setup and / or ask questions about things that aren't clear yet.
How to get this to work?
For the typescript project that contains the scripts for the charts, check https://github.com/Amsterdam-Music-Lab/MUSCLE/blob/76f5440707907f867bc4519f94fb3aa066f9a4b9/backend/experiment/static/analytics/README.md
The transpiled Javascript files are committed into the repository so they should work "out of the box". See also: https://github.com/Amsterdam-Music-Lab/MUSCLE/blob/76f5440707907f867bc4519f94fb3aa066f9a4b9/backend/experiment/static/analytics
Navigate to
http://localhost:8000/admin/experiment/analytics/block/{id}to see the dashboard of a block in question. Be sure to use a block id of a block that has at least some sessions and results.