In October 2021, the Growth team removed "Your unstarred mentees" from arwiki, enwiki and fawiki due to T293182. On those wikis, mentors have more than 10k mentees on average. Unfortunately, the filtering logic for Special:RecentChanges must generate up to 10k of users at maximum for performance reasons. As a stop-gap fix, the unstarred option was removed – mentors are not expected to star 10k+ users.
This option should be re-introduced for those three wikis. There is one main requirements for that: Special:RecentChanges must be real-time (if an old mentee revives, they need to be immediately shown; same for a newly-registered mentee).
The easiest solution would be to check whether the mentee is included in the Mentee overview module first, but that's not feasible, as it makes recent changes not real-time. Instead, I suggest the following:
- Add a flag, gemm_mentee_is_active, to growthexperiments_mentor_mentee.
- The flag will be a boolean that's TRUE by default (takes care of new mentees).
- A maintenance script will run regularly, setting the flag to FALSE for all users that edited more than 6 months ago.
- An onPageSaveComplete hook will re-set the flag to TRUE if the user edits and their flag is FALSE (takes care of old mentees returning).
Once the flag is populated, change the mentorship-related filters code to only include users with gemm_is_active=TRUE.
Acceptance criteria
- Mentors at arwiki, enwiki and fawiki can use filters at Special:RecentChanges to filter RC down to their mentees (not just "starred mentes"). Currently available options are at F35531336, desired at F35531338 (same as on all the other wikis).
- Events from a freshly registered mentees are shown in the filtered version of Special:RecentChanges (as in, if an user registers, their mentor can immediately see their edits in Special:RecentChanges filtered to mentees-only).