Skip to content

Figures devsite.seed - new functions - #276

Merged
johnbaldwin merged 2 commits into
masterfrom
john/devsite-seed-update
Nov 2, 2020
Merged

johnbaldwin merged 2 commits into
masterfrom
john/devsite-seed-update

Conversation

@johnbaldwin

Copy link
Copy Markdown
Contributor
  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: Fixed Learner Metrics API endpoint duplicate users returned #273

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

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: #273

2. Added `add_users_to_site` as a helper to create
`UserOrganizationMapping` records for a set of users to a given site
@johnbaldwin
johnbaldwin force-pushed the john/devsite-seed-update branch from 3dcecc8 to 7466dd9 Compare October 26, 2020 18:21
@codecov-io

codecov-io commented Oct 27, 2020 •

Copy link
Copy Markdown

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.

@johnbaldwin
johnbaldwin merged commit fc15b04 into master Nov 2, 2020
@johnbaldwin
johnbaldwin deleted the john/devsite-seed-update branch November 2, 2020 11:41
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