This PR adds support for untracked articles when using timeslices to calculate course stats.
As part of the pre-update, now we check if an article course was recently tracked or untracked and perform the pertinent actions. That means:
For untracked articles that have tracked article course timeslices: we mark as need_update all timeslices where edits occurred for that article. Once that is done, we mark all articles course timeslices for that article as untracked.
For tracked articles that have untracked article course timeslices: we mark as need_update all timeslices where edits occurred for that article. Once that is done, we mark all articles course timeslices for that article as tracked.
What this PR does
This PR adds support for untracked articles when using timeslices to calculate course stats. As part of the pre-update, now we check if an article course was recently tracked or untracked and perform the pertinent actions. That means:
need_update
all timeslices where edits occurred for that article. Once that is done, we mark all articles course timeslices for that article asuntracked
.need_update
all timeslices where edits occurred for that article. Once that is done, we mark all articles course timeslices for that article astracked
.Screenshots
Course stats:
Course stats after untracking Climate change in Africa article:
Course stats after re-tracking Climate change in Africa article:
Open questions and concerns
< anything you learned that you want to share, or questions you're wondering about related to this PR >