WikiEducationFoundation / WikiEduDashboard

Wiki Education Foundation's Wikipedia course dashboard system
https://dashboard.wikiedu.org
MIT License
385 stars 600 forks source link

Create `CourseWikiTimeslice`, `ArticleCourseTimeslice` and `CourseUserWikiTimeslice` models and migrations #5807

Closed gabina closed 3 weeks ago

gabina commented 1 month ago

What this PR does

This PR creates CourseWikiTimeslice, ArticleCourseTimeslice and CourseUserWikiTimeslice models and migrations.

The new timeslices layer represents discrete unit of times, for which course statistics have been calculated. The current model of course stats calculates absolute stats, i.e stats are calculated for the entire duration of courses -from beginning to end-. The new timeslices layer would allow us to calculate relative stats, i.e stats scoped to the range of time specified by the given timeslice. The three new timeslices models are created based on existing Course, ArticlesCourses, and CoursesUsers models.

CourseWikiTimeslice

Records in:

Records out:

ArticleCourseTimeslice

Records in:

Records out:

Notes: ArticleCourseTimeslice is involuntarily aggregated by wiki, as an article belongs to a single wiki.

CourseUserWikiTimeslice

Records in:

Records out:

Open questions and concerns

gabina commented 1 month ago

Failing tests are not related to my changes.