Page MenuHomePhabricator

Consider storing a users real name in user properties
Open, Needs TriagePublic

Description

In my understanding the user table is mostly there to store user authentication data. But then it also stores a users email and a users real name (email is a complicated thing and can't be tackled that easy).

The users real name is something a user can optionally set as preference (when allowed). And user properties seems to be the more natural place where that belongs.

It would also allow us to convert quite a lot of code to use UserIdentity instead of full user objects, since we no longer rely on User::getRealName().

Event Timeline

Change 806239 had a related patch set uploaded (by Zabe; author: Zabe):

[mediawiki/core@master] Migrate the users real name to be a user property

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

Not sure the permissions/grants for managing user preferences are ideal for reading/writing a user's real name.