Page MenuHomePhabricator

Grant "enrollasmentor" right automatically according to community's specifications
Closed, ResolvedPublic

Description

The Growth-Team is working on a structured mentor list as part of T264343. As part of this project, a new right (enrollasmentor) was introduced, controlling the access to Special:EnrollAsMentor. Currently, communities control "Who can become a mentor" by protecting the pages. With the structured mentor list, this will be covered by the enrollasmentor right.

We need to let communities to define who can have the right as part of community configuration. Communities should be able to configure the minimum user tenure (in days) and minimum edit count to be eligible for the right.

The wording should inform communities that more complex systems are possible, and that the Growth-Team can assist with those on request.

Acceptance criteria
  • When structured mentor list is enabled, Special:EditGrowthConfig allows communties to define minimum tenure (in days) and minimum edit count required to be able to use Special:EnrollAsMentor.

Event Timeline

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

[mediawiki/extensions/GrowthExperiments@master] [WIP] Grant "enrollasmentor" to users meeting community's criteria

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

Urbanecm_WMF changed the task status from Open to In Progress.Aug 3 2022, 4:11 PM
Tgr changed the task status from In Progress to Open.Aug 17 2022, 1:43 AM
Tgr moved this task from Code Review to QA on the Growth-Team (Sprint 0 (Growth Team)) board.

Change 819657 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] Grant "enrollasmentor" to users meeting community's criteria

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

The options are in place - https://test.wikipedia.org/wiki/Special:EditGrowthConfig shows the additional options for Mentorship section:

Screen Shot 2022-08-25 at 5.56.55 PM.png (954×2 px, 196 KB)

However, setting Should users be automatically eligible for mentorship? option to "No, don't allow any users to enroll as mentors." will not prevent users' access to Special:EnrollAsMentor which would silently fail if a user attempts to save the filled out form (see the animated gif below):

enroll-as-mentor-fails.gif (583×1 px, 227 KB)

The same behavior for the option Minimum number of edits users need to be eligible for mentorship.

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

[operations/mediawiki-config@master] Revert "testwiki: Growth: Assign enrollasmentor to *"

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

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

[operations/mediawiki-config@master] Revert "[beta] Temporarily allow everyone to enroll as mentor"

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

Thanks for catching that @Etonkovidova. When deploying structured mentor list to test and beta wikis, I made two configuration patches that were meant to allow everyone to sign up as mentor, but forgot to revert them after the community configuration options were introduced.

I uploaded the reverts, and I'll push them out on Monday. This should make Special:EnrollAsMentor work as expected at beta/test wikis.

Change 826623 merged by jenkins-bot:

[operations/mediawiki-config@master] Revert "[beta] Temporarily allow everyone to enroll as mentor"

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

Change 826622 merged by jenkins-bot:

[operations/mediawiki-config@master] Revert "testwiki: Growth: Assign enrollasmentor to *"

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

Mentioned in SAL (#wikimedia-operations) [2022-08-29T07:14:38Z] <urbanecm@deploy1002> Synchronized wmf-config/InitialiseSettings.php: 88b3ce8196927d46f13d05aa8f3467992832f09d: Revert "testwiki: Growth: Assign enrollasmentor to *" (T310905, T314414) (duration: 03m 32s)

Thanks for catching that @Etonkovidova. When deploying structured mentor list to test and beta wikis, I made two configuration patches that were meant to allow everyone to sign up as mentor, but forgot to revert them after the community configuration options were introduced.

I uploaded the reverts, and I'll push them out on Monday. This should make Special:EnrollAsMentor work as expected at beta/test wikis.

This happened. FYI @Etonkovidova .

Checked in testwiki wmf.6`