Page MenuHomePhabricator

[beta-enwiki] Special:ManageMentors doesn't list all mentors
Open, Needs TriagePublic

Description

Steps:

  • On enwiki beta go to Special:ManageMentors - the list includes only few mentors
  • db shows many more mentors
select count(distinct (gemm_mentor_id)) as Mentors from growthexperiments_mentor_mentee where gemm_mentor_role='primary';
+---------+
| Mentors |
+---------+
|      49 |
+---------+

Screen Shot 2025-03-28 at 2.03.57 PM.png (1×3 px, 418 KB)

Screen Shot 2025-03-28 at 1.57.04 PM.png (1×1 px, 193 KB)

However, the Away status will be changed.

Event Timeline

This seems to have happened in early March: https://en.wikipedia.beta.wmflabs.org/w/index.php?title=MediaWiki%3AGrowthMentors.json&diff=647182&oldid=646793

But I'm not sure why. I can see something similar on my wiki from late February, so that seems to match. Do we also have that problem on other wikis?

I think this is testwiki-only fallout from T386826, because the change directly prior to the change that removed all data, https://en.wikipedia.beta.wmflabs.org/w/index.php?title=MediaWiki%3AGrowthMentors.json&diff=646793&oldid=646792, did introduce an invalid value. Thus the list was truncated on the first edit after the change was deployed.

This should not have happened on any other wiki.

If you want to mostly undo this, then reverting to the last good revision, https://en.wikipedia.beta.wmflabs.org/w/index.php?title=MediaWiki:GrowthMentors.json&oldid=634461, should do the trick.

That being said, I'm surprised that all these mentors are still in the database. Should not a job have cleaned them all up?

I think this is testwiki-only fallout from T386826, because the change directly prior to the change that removed all data, https://en.wikipedia.beta.wmflabs.org/w/index.php?title=MediaWiki%3AGrowthMentors.json&diff=646793&oldid=646792, did introduce an invalid value. Thus the list was truncated on the first edit after the change was deployed.

This should not have happened on any other wiki.

It's really great to know, thank you @Michael!

If you want to mostly undo this, then reverting to the last good revision, https://en.wikipedia.beta.wmflabs.org/w/index.php?title=MediaWiki:GrowthMentors.json&oldid=634461, should do the trick.

Hmm, Special:ManageMentor list is for pure testing purposes, so let it be as it is.

That being said, I'm surprised that all these mentors are still in the database. Should not a job have cleaned them all up?

That's probably the essence of the issue. I would keep this task open since we need beta test env to reflect true UX. As for now, there is already a user impact (listed in the task description).