Page MenuHomePhabricator

extensions/RightFunctions - Use UserGroupManager instead of User group methods
Closed, ResolvedPublic

Description

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 triaged this task as Medium priority.May 4 2021, 2:37 PM
Vlad.shapik created this task.
Vlad.shapik renamed this task from extensions/RightFunctions - hard deprecate User group methods to extensions/RightFunctions - Use UserGroupManager instead of User group methods.May 6 2021, 2:46 PM

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

[mediawiki/extensions/RightFunctions@master] Avoid using User group methods

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

Change 702143 merged by jenkins-bot:

[mediawiki/extensions/RightFunctions@master] Avoid using User group methods

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

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy