-
Notifications
You must be signed in to change notification settings - Fork 37
[WIP] Overall Learner metrics view #240
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
This is the initial commit so Matej and work on the front end The endpoint is `/figures/api/learner-metrics/` * There is a basic viewset just to exercise the code. The test requires test data to be filled out and tested in the response * UserFilterSet needs to be updated or an alternate filter set needs to be used in order to provide more filtering, in particular * Show only users who have enrollments * Show only users who do not have enrollments * Show only users who have completed * Show only users who have not completed * List serializers need to be added to prefetch data to improve API performance * test_learner_metrics_viewset needs to be completed * Updated the CourseEnrollment mock to provide the `is_enrolled` method
Codecov Report
@@ Coverage Diff @@
## master #240 +/- ##
=======================================
Coverage 91.78% 91.79%
=======================================
Files 41 41
Lines 2131 2133 +2
=======================================
+ Hits 1956 1958 +2
Misses 175 175
Continue to review full report at Codecov.
|
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.
@grozdanowski I spot tested in Figures devsite. It doesn't break the app, so I'm going to merge it to master and include in Figures 0.3.13
This is the frontend work (albeit a bit optimised further) that was done in PR 229. In order to start with a clean slate with the new API endpoint that John has made, I've redone the work and created a new PR.
I've also added search and ordering to the new endpoint.
What's left to do with the endpoint before merging this frontend work:
enrolled_in_course_id=
- currently that only works with one course ID. But this frontend requires the ability to filter by more than one course (same as I haphazardly for demo purposes implemented in the previous PR I created). The frontend is set up to delimit the list of course IDs with a comma.Note: the new frontend view can be found on
[domain]/figures/learners-progress-overview/
. I have not added that menu item to header menu, so it can be pushed and tested in production.