Skip to content

[WIP] Overall Learner metrics view#240

Merged
johnbaldwin merged 10 commits into
masterfrom
matej-work/learner-metrics-frontend
Aug 13, 2020
Merged

[WIP] Overall Learner metrics view#240
johnbaldwin merged 10 commits into
masterfrom
matej-work/learner-metrics-frontend

Conversation

@grozdanowski

Copy link
Copy Markdown
Contributor

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.

johnbaldwin and others added 8 commits July 31, 2020 20:26
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-commenter

codecov-commenter commented Aug 12, 2020

Copy link
Copy Markdown

Codecov Report

Merging #240 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #240   +/-   ##
=======================================
  Coverage   91.78%   91.79%           
=======================================
  Files          41       41           
  Lines        2131     2133    +2     
=======================================
+ Hits         1956     1958    +2     
  Misses        175      175           
Impacted Files Coverage Δ
figures/views.py 92.72% <100.00%> (+0.03%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6da636c...395be29. Read the comment docs.

@johnbaldwin johnbaldwin left a comment

Copy link
Copy Markdown
Contributor

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

@johnbaldwin
johnbaldwin merged commit 5664a24 into master Aug 13, 2020
@OmarIthawi
OmarIthawi deleted the matej-work/learner-metrics-frontend branch August 17, 2020 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants