appsembler / figures

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

MAU 2 - Add Monthly Active Enrollment Model #446

Closed johnbaldwin closed 2 years ago

johnbaldwin commented 2 years ago

What's this PR about?

This is the first part of revamping how Figures captures monthly active users. At the core of this is a new model, MonthlyActiveEnrollment that says if a given user was active in a course for a given month, a unique user + course aka 'enrollment', so we simply call it 'monthly active enrollment'. This model then forms a foundation to quickly query for such things as

We're generally following this design: https://appsembler.atlassian.net/wiki/spaces/RT/pages/350552808

What's in this PR?

What's next?

After this PR is merged, the models won't update right away. We're adding Django signals to trigger the check and creating of a MonthlyActiveEnrollment if it doesn't exist. The signals will be configurable, at least at the deployment level via server-vars with the option to toggle on/off at the site level