Page MenuHomePhabricator

Structured mentor list: Migrate `autoAssigned` into weight
Closed, ResolvedPublic

Description

The autoAssigned and weight attributes mentors can have both share a similar purpose, as both of them affect how many mentees a mentor has. The difference is that weight (T287917) affects how many mentees the mentor gets (but they still receive some mentees), but autoAssigned is boolean: either you are assigned to any mentees, or you are not.

Both flags are even presented to the user inside a single weight dropdown:

image.png (836×1 px, 104 KB)

In other words, autoAssigned: false is equivalent to a weight of zero. Since there is no technical reason for storing those two values separately, let's migrate them into one.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

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

[mediawiki/extensions/GrowthExperiments@master] Structured mentor list: Make "no mentees" a proper weight

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

Urbanecm_WMF triaged this task as Medium priority.

Change 960070 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] Structured mentor list: Make "no mentees" a proper weight

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

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

[mediawiki/extensions/GrowthExperiments@wmf/1.42.0-wmf.3] Structured mentor list: Make "no mentees" a proper weight

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

Change 971533 merged by Urbanecm:

[mediawiki/extensions/GrowthExperiments@wmf/1.42.0-wmf.3] Structured mentor list: Make "no mentees" a proper weight

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

Mentioned in SAL (#wikimedia-operations) [2023-11-06T08:01:46Z] <urbanecm@deploy2002> Started scap: Backport for [[gerrit:971533|Structured mentor list: Make "no mentees" a proper weight (T347157 T347024)]]

Mentioned in SAL (#wikimedia-operations) [2023-11-06T08:14:00Z] <urbanecm@deploy2002> urbanecm: Backport for [[gerrit:971533|Structured mentor list: Make "no mentees" a proper weight (T347157 T347024)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2023-11-06T08:25:23Z] <urbanecm@deploy2002> Finished scap: Backport for [[gerrit:971533|Structured mentor list: Make "no mentees" a proper weight (T347157 T347024)]] (duration: 23m 37s)

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

[mediawiki/extensions/GrowthExperiments@master] changeWikiConfig: Add --touch option

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

Change 971900 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] changeWikiConfig: Add --touch option

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

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

[mediawiki/extensions/GrowthExperiments@wmf/1.42.0-wmf.3] changeWikiConfig: Add --touch option

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

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

[mediawiki/extensions/GrowthExperiments@wmf/1.42.0-wmf.4] changeWikiConfig: Add --touch option

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

Change 972258 merged by Urbanecm:

[mediawiki/extensions/GrowthExperiments@wmf/1.42.0-wmf.4] changeWikiConfig: Add --touch option

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

Change 972257 merged by Urbanecm:

[mediawiki/extensions/GrowthExperiments@wmf/1.42.0-wmf.3] changeWikiConfig: Add --touch option

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

Mentioned in SAL (#wikimedia-operations) [2023-11-07T16:51:02Z] <urbanecm@deploy2002> Started scap: Backport for [[gerrit:972257|changeWikiConfig: Add --touch option (T347157)]], [[gerrit:972258|changeWikiConfig: Add --touch option (T347157)]]

Mentioned in SAL (#wikimedia-operations) [2023-11-07T16:52:24Z] <urbanecm@deploy2002> urbanecm: Backport for [[gerrit:972257|changeWikiConfig: Add --touch option (T347157)]], [[gerrit:972258|changeWikiConfig: Add --touch option (T347157)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2023-11-07T16:58:11Z] <urbanecm@deploy2002> Finished scap: Backport for [[gerrit:972257|changeWikiConfig: Add --touch option (T347157)]], [[gerrit:972258|changeWikiConfig: Add --touch option (T347157)]] (duration: 07m 08s)

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

[mediawiki/extensions/GrowthExperiments@master] changeWikiConfig: Respect --summary with --touch

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

Change 972730 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] changeWikiConfig: Respect --summary with --touch

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

  NODES
Note 7
Project 17