Page MenuHomePhabricator

Provide more specific feedback to users who try to Special:EnrollAsMentor but do to met the qualifying criteria
Closed, ResolvedPublic

Description

In T318546#8336633, @Etonkovidova wrote:

Presently, a user attempting to sign up as a mentor and not having the required number of edits will see the following message on Special:EnrollAsMentor:

Screen Shot 2022-10-21 at 5.23.11 PM.png (157×686 px, 20 KB)

We should provide more specific feedback to users who try to Special:EnrollAsMentor but might not to met the qualifying criteria.

We should replace "You are not allowed to execute the action you have requested" by the reason chosen by the community. We then have two cases:

Case 1: the community defined thresholds
Communities can define a number of edits and a number of days of presence to define who can be a mentor. We should provide the feedback to the user in a form that looks like:

Users with $1 edits and $2 days of presence can signup to be mentors.

Case 2: the community relies on user roles
Communities can request to grant the access to mentorship features to a given role (autopatrolled, editor...). In this case, this reason should be given as the explanation of the error. We could reuse badaccess-groups ("The action you have requested is limited to users in one of the groups: $1").

Event Timeline

Urbanecm_WMF triaged this task as Medium priority.

Hi @Trizek-WMF for filling this task and @Etonkovidova for noticing this!

Ad case 1: This should be fairly easy to do. I'll upload a patch soon!

Ad case 2: Fortunately, this is already the case! This is how it can look like for a community where only admins can mentor:

image.png (359×819 px, 27 KB)

Ad case 2: Fortunately, this is already the case! This is how it can look like for a community where only admins can mentor:

image.png (359×819 px, 27 KB)

I added this case for consistency, even if I believe that the badaccess-groups message is bad (but it is unfortunately not our call there).

KStoller-WMF changed the task status from Open to In Progress.Nov 3 2022, 9:02 PM

Change 853059 had a related patch set uploaded (by Urbanecm; author: Urbanecm):

[mediawiki/extensions/GrowthExperiments@master] SpecialEnrollAsMentor: Offer better guidance when an user is not auto-eligible

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

Change 853059 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] SpecialEnrollAsMentor: Offer better guidance when an user is not auto-eligible

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

Change 853488 had a related patch set uploaded (by Urbanecm; author: Urbanecm):

[mediawiki/extensions/GrowthExperiments@master] i18n: Add missing PLURAL to a message

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

Change 853488 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] i18n: Add missing PLURAL to a message

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

Urbanecm_WMF changed the task status from In Progress to Open.Nov 7 2022, 8:44 AM

Checked on wmf.13 - the message states the reason for not allowing to enroll as a mentor:

Screen Shot 2022-12-12 at 5.50.33 PM.png (494×1 px, 69 KB)