Page MenuHomePhabricator

Convert SetupAfterCache hook to HookHandler system
Closed, ResolvedPublic

Description

This is an introductory task to get you familiar with contributing to Wikimedia projects. (More experienced developers, please leave this for new people!)

The task is to update the ProofreadPage extension to use the new HookHandlers system that was introduced in MediaWiki 1.35. Generally, this involves changing the hook's configuration in extension.json and the hook handler implementation in the \ProofreadPage\ProofreadPage or \ProofreadPage\ProofreadPageInit class. It may require services to be injected to the class, and other (minor) refactoring. If you have any questions, please ask below!

To complete this task:

  1. Go through everything on the "How to become a MediaWiki hacker" page.
  2. Get the source code (linked from the extension's page on mediawiki.org) from Gerrit/Git: https://www.mediawiki.org/wiki/Download_from_Git
  3. Assign this task to yourself.
  4. Create a patch and reference this task in the commit message: https://www.mediawiki.org/wiki/Gerrit/Commit_message_guidelines
  5. Upload the patch to Gerrit.
  6. Ensure that all continuous-integration tests pass successfully.

Your code will be reviewed and hopefully merged, and this task will be resolved.

Event Timeline

Change 850659 had a related patch set uploaded (by Kolakachi; author: Kolakachi):

[mediawiki/extensions/ProofreadPage@master] Convert SetupAfterCache hook to HookHandler system

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

Change 822206 had a related patch set uploaded (by Samwilson; author: Anant Verma):

[mediawiki/extensions/ProofreadPage@master] Convert SetupAfterCache hook to HookHandler system

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

Change 868795 had a related patch set uploaded (by Kolakachi; author: Kolakachi):

[mediawiki/extensions/ProofreadPage@master] update hook function

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

Change 868795 abandoned by Kolakachi:

[mediawiki/extensions/ProofreadPage@master] update hook function

Reason:

mistakenly created a new commit

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

Change 850659 merged by jenkins-bot:

[mediawiki/extensions/ProofreadPage@master] Convert SetupAfterCache hook to HookHandler system

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

Pppery edited projects, added: Patch-Needs-Improvement; removed: Patch-For-Review.
Pppery subscribed.

Patch was merged, and the unmerged patch appears to be a duplicate. Assuming this is resolved.

Change 822206 abandoned by Umherirrender:

[mediawiki/extensions/ProofreadPage@master] Convert SetupAfterCache hook to HookHandler system

Reason:

Was done via Idd3c3e21146cc25b73c8efbd737e93cd01802d20

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