Page MenuHomePhabricator

Remove use of UserRights hook when UserGroupsChanged hook is available
Closed, ResolvedPublic

Description

As of https://gerrit.wikimedia.org/r/#/c/236043/ the UserRights hook is deprecated in favor of the new UserGroupsChanged hook.

The differences from UserRights to UserGroupsChanged are:

  • $user is passed by value, not by reference.
  • UserGroupsChanged is called for autopromote-once groups (e.g. 'autopatrolled' on Wikivoyage or 'uploader' on ruwiki).

Event Timeline

Anomie raised the priority of this task from to Needs Triage.
Anomie updated the task description. (Show Details)
Anomie added a subscriber: Anomie.
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 240144 had a related patch set uploaded (by Legoktm):
Use UserGroupsChanged hook instead of deprecated UserRights hook

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

Change 240144 merged by jenkins-bot:
Use UserGroupsChanged hook instead of deprecated UserRights hook

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

Legoktm claimed this task.