Page MenuHomePhabricator

Migrate handlers of AutopromoteCondition hook to the new UserRequirementsCondition hook and deprecate the old one
Closed, ResolvedPublic

Description

In T408184: Replace AutopromoteCondition hook with a more general one, which supports non-performer users and remote users a new hook was created, which is a replacement for AutopromoteCondition. Currently both hooks are called and the legacy one is soft-deprecated, because there are still three known handlers of it:

These three extensions should be updated to handle UserRequirementsCondition instead.

Acceptance criteria

  • Codesearch lists no implementations of AutopromoteConditionHook
  • AutopromoteCondition is hard-deprecated

Event Timeline

Brought into the current sprint as the next thing we can start working on, if there's time before the next sprint.

Change #1202979 had a related patch set uploaded (by Mszwarc; author: Mszwarc):

[mediawiki/extensions/CentralAuth@master] Use UserRequirementsCondition hook instead of AutopromoteCondition

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

Change #1204248 had a related patch set uploaded (by Mszwarc; author: Mszwarc):

[mediawiki/extensions/TorBlock@master] Use UserRequirementsCondition hook instead of AutopromoteCondition

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

Change #1204248 merged by jenkins-bot:

[mediawiki/extensions/TorBlock@master] Use UserRequirementsCondition hook instead of AutopromoteCondition

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

Change #1202979 merged by jenkins-bot:

[mediawiki/extensions/CentralAuth@master] Use UserRequirementsCondition hook instead of AutopromoteCondition

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

Change #1204255 had a related patch set uploaded (by Mszwarc; author: Mszwarc):

[mediawiki/extensions/FlaggedRevs@master] Use UserRequirementsCondtion hook instead of AutopromoteCondition

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

Change #1204261 had a related patch set uploaded (by Mszwarc; author: Mszwarc):

[mediawiki/core@master] Hard-deprecate AutopromoteCondition hook

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

Change #1204835 had a related patch set uploaded (by Tchanders; author: Tchanders):

[mediawiki/extensions/TorBlock@master] Do not autopromote an external or non-performing user using `APCOND_TOR`

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

Change #1204835 merged by jenkins-bot:

[mediawiki/extensions/TorBlock@master] Do not allow an external/non-performing user to meet `APCOND_TOR`

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

Change #1205088 had a related patch set uploaded (by Tchanders; author: Tchanders):

[mediawiki/extensions/TorBlock@master] Fix not allowing an external/non-performing user to meet `APCOND_TOR`

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

Change #1205088 merged by jenkins-bot:

[mediawiki/extensions/TorBlock@master] Fix not allowing an external/non-performing user to meet `APCOND_TOR`

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

Change #1204255 merged by jenkins-bot:

[mediawiki/extensions/FlaggedRevs@master] Use UserRequirementsCondition hook instead of AutopromoteCondition

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

Change #1204261 merged by jenkins-bot:

[mediawiki/core@master] Hard-deprecate AutopromoteCondition hook

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