Skip to content
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

MAU 2 - Add Monthly Active Enrollment Model #446

Merged
merged 3 commits into from
Apr 26, 2022

Conversation

johnbaldwin
Copy link
Contributor

@johnbaldwin johnbaldwin commented Mar 8, 2022

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

  • active users in a site for a given month or set of months
  • active users in a cohort for a given month or set of months
  • which courses a user was active in for a given month or set of months

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

What's in this PR?

  • Adds new model, figures.models.MonhtlyActiveEnrollment
    • This model exists to capture user activity in a course in a month
    • This forms a foundation from which per-user or per-course or per-site monthly active users can be derived
  • Added model unit tests and updated test infra for support
  • Add admin interface for MonthlyActiveEnrollment and update admin test

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

* Adds new model, figures.models.MonehtlyActiveEnrollment
    * This model exists to capture user activity in a course in a month
    * This forms a foundation from which per-user or per-course or
per-site monthly active users can be derived
* Added model unit tests and updated test infra for support
Baseline Course MAU model and test
* Add admin interface for MonthlyActiveEnrollment and update admin test
@johnbaldwin johnbaldwin merged commit f724e6d into appsembler:main Apr 26, 2022
@johnbaldwin johnbaldwin deleted the john/0.4-mau2-models-signals branch April 26, 2022 01:32
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.

2 participants