Page MenuHomePhabricator

Update PageTriage to use the new HookContainer/HookRunner system
Open, Needs TriagePublic

Description

Implement the Hook system added in MediaWiki 1.35 in the extensions, see Hooks.md for documentation.

  • Use hook handlers for ORES hooks (T338444)
  • Use hook handlers for Echo hooks (T315938)

Event Timeline

For my own learning, can someone talk about 1) why/the benefits of switching to this new system, and 2) provide an example patch in another repo of a conversion from old to new? Thanks in advance :)

Hi @Novem_Linguae, you may find this presentation from the 2021 hackathon helpful. Here's an example of a patch converting to the new system, or you can find patches for various extensions attached to subtasks of T263353. Hope this helps!

Thanks for that info @apaskulin. I watched 15 minutes of the video and have a good handle on the concept now :)