Page MenuHomePhabricator

Allocate new mentees only to an active mentor
Closed, ResolvedPublic5 Estimated Story PointsFeature

Description

A question from a mentee whose allocated mentor has set their Mentor Status to away is deflected to a temporary replacement mentor. (T388126 and T389561 relate to aspects of the replacement mentor experience.) From a snapshot look at en.wiki's Manage Mentors table, over 20% are marked as away, some transient, others more long-term.

Though I can't see when each mentor changed their status to away, the recent deflected cases that I have listed here seem to indicate that the mentors had been marked as away for some time, but new users had been allocated to them. If so, this is inefficient, as new users are likely to seek help soon after they begin, and are being deflected away from the mentor whose introductory welcome is on their dashboard to someone else (who can't see the new user summary on their mentee dashboard).

Feature summary:
A filter for active status when selecting from available mentors to allocate a new user account would reduce (but not eliminate) the overheads from deflecting mentee questions to a replacement mentor.

Benefits:

  1. Better meeting new users' expectations in that if they ask a question it is more likely to be answered by the mentor whose introductory welcome they have seen.
  2. More effective information for mentors, in increasing the likelihood that questions come from a mentee visible on their dashboard.

Event Timeline

KStoller-WMF awarded a token.
KStoller-WMF moved this task from Inbox to Backlog on the Growth-Team board.
KStoller-WMF lowered the priority of this task from High to Medium.May 7 2025, 4:28 PM
KStoller-WMF moved this task from Backlog to Estimated tasks backlog on the Growth-Team board.
KStoller-WMF subscribed.

Note from team discussion: we might need to consider the edge case where all Mentors are marked as Away. (Unlikely to be an issue on larger wikis, but might be an issue on smaller wikis).

KStoller-WMF set the point value for this task to 5.May 12 2025, 4:15 PM

Note from team discussion: we might need to consider the edge case where all Mentors are marked as Away. (Unlikely to be an issue on larger wikis, but might be an issue on smaller wikis).

We already have that edge case when the wiki has only manual mentors. We can follow the same pattern here, and let no one to get a mentor in that case.

Note this would be a change from the current behaviour: currently, if all mentors are away, then the awayness mechanism just doesn't work at all (I _think_, it is not a particularly tested code branch, but this is what I'd expect it to do).

KStoller-WMF raised the priority of this task from Medium to High.Jun 3 2025, 11:16 PM

Note from team discussion: we might need to consider the edge case where all Mentors are marked as Away. (Unlikely to be an issue on larger wikis, but might be an issue on smaller wikis).

We already have that edge case when the wiki has only manual mentors. We can follow the same pattern here, and let no one to get a mentor in that case.

Note this would be a change from the current behaviour: currently, if all mentors are away, then the awayness mechanism just doesn't work at all (I _think_, it is not a particularly tested code branch, but this is what I'd expect it to do).

We discussed this and decided to go with Martin's suggested approach: Let no one get a mentor in that case.

Change #1164294 had a related patch set uploaded (by Michael Große; author: Michael Große):

[mediawiki/extensions/GrowthExperiments@master] feat(Mentorship): never assign an away mentor as primary

https://gerrit.wikimedia.org/r/1164294

Change #1164294 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] feat(Mentorship): never assign an away mentor as primary

https://gerrit.wikimedia.org/r/1164294

Note from team discussion: we might need to consider the edge case where all Mentors are marked as Away. (Unlikely to be an issue on larger wikis, but might be an issue on smaller wikis).

We already have that edge case when the wiki has only manual mentors. We can follow the same pattern here, and let no one to get a mentor in that case.

Note this would be a change from the current behaviour: currently, if all mentors are away, then the awayness mechanism just doesn't work at all (I _think_, it is not a particularly tested code branch, but this is what I'd expect it to do).

Tested on cswiki beta

  • All mentors are Away
  • a new account doesn't get mentorship - correct behavior
  • the user that had mentors get allocated to mentors that are not displayed on Special:ManageMentors page.

It's caused by an issue that the mentors do not get removed from the db table. - as a result, growthexperiments_mentor_mentee has much more mentors than Special:ManageMentors. There is an existing open task T390333: [beta-enwiki] Special:ManageMentors doesn't list all mentors . it'd be great to clean the table on beta cluster.

Checked the following test scenario on beta cluster - seems to be working as expected:

  • a mentor is marked as 'Away'
  • checked (via db) for whether new account get assigned