Page MenuHomePhabricator

Make gender-related features work with global preferences
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:

  • In the global settings of my German Wikipedia-based account de:Benutzer:Gnurpsnewoel, I have changed the gender marker at ’How do you prefer to be described?’ from ”They edit wiki pages” to ”She edits wiki pages”. This should automatically lead to renaming the prefix of my user page to Benutzerin:Gnurpsnewoel after making another edit on my user page.
  • I did some edits on my user page and waited more than two weeks if something would change in my profile's name.
  • I changed the settings back to ”They edit wiki pages”. I edited my user page once.
  • I waited more than 48 hours.
  • I changed the settings again to “She edits wiki pages”. I edited my user page may times.
  • Again, I waited more than 48 hours.
  • My profile's prefix has not changed.

What should have happened instead?:

Unfortunately, nothing happened. The prefix of my user page was not renamed to Benutzerin:Gnurpsnewoel at any step.

Software version:

Wikipedia: 1.44.0-wmf.16; fbbe3b2; 21:23, 10. Feb. 2025.

Other information (browser name/version, screenshots, etc.):

  • I have got a global account on Metawikimedia.
  • My browser is FF/134.0 and I am using Linux/Ubuntu 24.10.
  • I have also checked from FFmobile/135.0 from an Android 13 device.

Event Timeline

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

I forgot to mention that I have purged my user page at least twice with ?action=purge during the process. I have also purged my global account page.

I have also logged in and logged out several times.

Let me add the archived discussion of w:de:Wikipedia:Fragen zur Wikipedia about this issue in the German Wikipedia. It reflects the steps that I have described above.

Reproduced with my test account. I changed Einstellungen/Benuzerdaten/Form_der_Anrede to “Sie bearbeitet Wikiseiten” (= female pronoun). On my startpage the tab changes to “Benutzerinnenseite” as intended, but the pagename clings to “Benutzer:MBq-Tests”. Vector (2022), everything on standard, no userscripts.

IMG_5952.jpeg (460×1 px, 160 KB)

Thank you for reproducing it, @MBq!

Reproduced with my test account. I changed Einstellungen/Benuzerdaten/Form_der_Anrede to “Sie bearbeitet Wikiseiten” (= female pronoun). On my startpage the tab changes to “Benutzerinnenseite” as intended, but the pagename clings to “Benutzer:MBq-Tests”. Vector (2022), everything on standard, no userscripts.

Let me add that I checked my page a minute ago: On my user page, the ”Benutzerseite” didn't even change. Maybe this comes additionally.

I am glad you tried it yourself!

If the one and only is the label and headline on this particular tab, the reason might be local in dewiki or by generating the system message at translatewiki.

@Gnurpsnewoel: Are you prefer to be addressed as du or Sie, or Austrian vs. Switzerland?

I am going to look into local configuration.

If you play with gender function, are you accepted?

After some investigations:

  • It feels as if the change in preferences form is not stored in database.
  • This goes for multiple wikis, even meta:.
  • It arrived a few months ago, while older assignments are still present in database (like this one). I guess they could not shift to male/unknown now.
  • Translation is not involved.
  • Local config is not involved.
  • {{gender}} function does work as expected, accessing the unknown property value in database.

However, something is strange with current behaviour, it is not fully consistent. The feeling is like a very delayed cache lag.

  • The one and only reliable memorizing of the property is on preferences form, while rendering pages is accessing an outdated value. Mostly, but not always.

If the one and only is the label and headline on this particular tab, the reason might be local in dewiki or by generating the system message at translatewiki.

@Gnurpsnewoel: Are you prefer to be addressed as du or Sie, or Austrian vs. Switzerland?

”du” and in de-DE.

If you play with gender function, are you accepted?

I'm receiving: ”u”.

Technically related is T383181: Setting neutral gender in GlobalPreferences does not override locally-set binary gender.
The gender preference is special and accessed different, thats bypass the global preferences system. So gender is not working at the moment as global preference.

To be more clear about this:

@Gnurpsnewoel: Are you prefer to be addressed as du or Sie, or Austrian vs. Switzerland?

I am receiving ”du” in both deWiki and metaWikimedia.

If you play with gender function, are you accepted?

I'm receiving: ”u” in both deWiki and metaWikimedia.

  • It feels as if the change in preferences form is not stored in database.

I can't reproduce that. I can reproduce the bug per the procedure in the task description but it is due to GenderCache not supporting GlobalPreferences.

  • It arrived a few months ago, while older assignments are still present in database (like this one). I guess they could not shift to male/unknown now.

The bug I'm looking at has always existed. GenderCache has never supported GlobalPreferences.

However, something is strange with current behaviour, it is not fully consistent. The feeling is like a very delayed cache lag.

GenderCache, despite its name, has no persistent cache. It always does a DB query.

Change #1120705 had a related patch set uploaded (by Tim Starling; author: Tim Starling):

[mediawiki/core@master] Split MediaWikiTitleCodec

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

Change #1120706 had a related patch set uploaded (by Tim Starling; author: Tim Starling):

[mediawiki/core@master] Add CentralIdLookup::lookupOwnedUserNames

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

Change #1120707 had a related patch set uploaded (by Tim Starling; author: Tim Starling):

[mediawiki/core@master] Allow gender to be a global preference

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

Change #1121127 had a related patch set uploaded (by Tim Starling; author: Tim Starling):

[mediawiki/extensions/GlobalPreferences@master] Implement the new fetchBatchForUserNames method

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

Change #1121128 had a related patch set uploaded (by Tim Starling; author: Tim Starling):

[mediawiki/extensions/CentralAuth@master] Implement CentralIdLookup::lookupAttachedUserNames

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

Change #1121474 had a related patch set uploaded (by Tim Starling; author: Tim Starling):

[mediawiki/extensions/GlobalPreferences@master] Add integration test for the global gender project

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

Change #1122266 had a related patch set uploaded (by Tim Starling; author: Tim Starling):

[mediawiki/extensions/Wikibase@master] Implement proposed abstract method CentralIdLookup::lookupUserNamesWithFilter

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

Change #1122269 had a related patch set uploaded (by Tim Starling; author: Tim Starling):

[mediawiki/core@master] user: Add CentralIdLookup::FILTER_ constants

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

Change #1120705 merged by jenkins-bot:

[mediawiki/core@master] Split MediaWikiTitleCodec

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

Change #1122269 merged by jenkins-bot:

[mediawiki/core@master] user: Add CentralIdLookup::FILTER_ constants

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

Change #1121128 merged by jenkins-bot:

[mediawiki/extensions/CentralAuth@master] Implement CentralIdLookup::lookupUserNamesWithFilter

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

Change #1122266 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Implement proposed abstract method CentralIdLookup::lookupUserNamesWithFilter

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

Change #1120706 merged by jenkins-bot:

[mediawiki/core@master] user: Add filtered versions of CentralIdLookup::lookupUserNames

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

Change #1121127 merged by jenkins-bot:

[mediawiki/extensions/GlobalPreferences@master] Implement the new fetchBatchForUserNames method

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

Change #1120707 merged by jenkins-bot:

[mediawiki/core@master] user: Allow gender to be a global preference

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

Change #1121474 merged by jenkins-bot:

[mediawiki/extensions/GlobalPreferences@master] Add integration test for the global gender project

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

Change #1125603 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/GlobalPreferences@master] Revert "Add integration test for the global gender project"

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

Change #1125603 merged by jenkins-bot:

[mediawiki/extensions/GlobalPreferences@master] Revert "Add integration test for the global gender project"

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

All of the implementation patches are merged, but after merging the patch with integration tests, we found that it fails in CI when executed together with some other extensions: T388314. I reverted it until this problem can be investigated next week.

Change #1125616 had a related patch set uploaded (by Dylsss; author: Dylsss):

[mediawiki/extensions/GlobalPreferences@master] Revert^2 "Add integration test for the global gender project"

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

tstarling renamed this task from Gendered prefix of User page not changing to Make gender-related features work with global preferences.Mar 9 2025, 9:44 PM
tstarling added a project: User-notice.

Change #1125616 merged by jenkins-bot:

[mediawiki/extensions/GlobalPreferences@master] Revert^2 "Add integration test for the global gender project"

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

Should be deployed in 1.44.0-wmf.20.

Thank you everybody who contributed to this and showed interest. It works pretty well and I'm happy to see the results :-)