Page MenuHomePhabricator

extensions/CentralAuth - Use UserGroupManager instead of User group methods
Open, MediumPublic


Find all usages of:

  • public function getGroups()
  • public function getGroupMemberships()
  • public function getEffectiveGroups()
  • public function getAutomaticGroups()
  • public function getFormerGroups()
  • public function addGroup()
  • public function removeGroup()
  • public function addAutopromoteOnceGroups())

and need to be replaced with corresponding UserGroupManager methods.
You can obtain UserGroupManager via MediaWikiServices::getInstance()->getUserGroupManager(), but it's preferred to inject it if possible.

Event Timeline

Vlad.shapik created this task.

This needs a proper solution for the CentralAuthGroupMembershipProxy/SpecialGlobalGroupMembership hack, see also T263207 T255309.

Vlad.shapik renamed this task from extensions/CentralAuth - hard deprecate User group methods to extensions/CentralAuth - Use UserGroupManager instead of User group methods.May 6 2021, 2:35 PM

Change 699438 had a related patch set uploaded (by Vlad.shapik; author: Vlad.shapik):

[mediawiki/extensions/CentralAuth@master] Replace deprecated User group methods