In ar.wikipedia.org some mentors are no more active and still receive on their talkpages questions from newcomers:
It will be more efficient to reassign mentees from these two former mentors to active ones in this list.
Thanks.
In ar.wikipedia.org some mentors are no more active and still receive on their talkpages questions from newcomers:
It will be more efficient to reassign mentees from these two former mentors to active ones in this list.
Thanks.
Doing this via a quick and simple Python script. I first fetched the list of mentors from the wiki page, and then all the mentees assigned to the unavailable mentors from the database. The script goes across all the mentees, picks a random new mentor, and assigns it via the API's setmentor functionality.
Note the script requires local sysop privileges, and the runner should probably be in the bot group as well, to avoid flooding recent changes (the first mentor I'm reassigning has more than 4k of mentees).
We definitely should have a long term solution for this issue (T272376). For now, this is a suitable workaround I would say. Short to medium term (until communities can see the list of mentees assigned to people), it should be easy to convert the API-based script into a maintenance script.