appsembler / figures

Reporting and data retrieval app for Open edX
MIT License
44 stars 37 forks source link

Figures devsite.seed - new functions #276

Closed johnbaldwin closed 3 years ago

johnbaldwin commented 4 years ago
  1. Added seed_course_enrollments_multiple - This creates a set of users and creates enrollments for each user for every course in the site. The driver to make this is to test user filtering because the learner-metrics endpoint (using the UserFilterSet) was returning duplicates. It turns out that you need to specify 'distinct' in the filter class constructor. See here: https://github.com/appsembler/figures/pull/273

  2. Added add_users_to_site as a helper to create UserOrganizationMapping records for a set of users to a given site

codecov-io commented 4 years ago

Codecov Report

Merging #276 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #276   +/-   ##
=======================================
  Coverage   91.71%   91.71%           
=======================================
  Files          41       41           
  Lines        2161     2161           
=======================================
  Hits         1982     1982           
  Misses        179      179           

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 762000f...7466dd9. Read the comment docs.