Page MenuHomePhabricator

[EPIC] Update all WMDE Wikibase topics to use the new HookContainer/HookRunner system
Open, Needs TriagePublic

Description

Context

On September 2020, a new Hook system (Hooks.md ) was released with MediaWiki 1.35. This was done to improve, static validity of hook handler parameters, and enable dependency injection for hook handler classes.
In Dec 2023 Mediawiki 1.42 was released which hard deprecated the old hook system (T335536). Wikibase and a number of our extensions were identified as still using the old method and need be updated before its removal. The date of removal is (as of 2024-12-05) unknown.

Main Objective

Migrate each extensions' hook handlers to use the new MediaWiki interfaces.

Relevant Extensions
(!) Update 2025/5/15 - Subtasks were created for use within the team. They cover the WMDE specifc parts of the originally created tickets

Owned by Wikidata DOT Team

  • T330629 [ES-M5] [EPIC] Migrate EntitySchema Hooks to use MediaWiki hook interfaces and DI
  • Completed in T391447 - Blocked by T338452 - T346516 [SW] [LEX] Update WikibaseLexeme to use the new HookContainer/HookRunner system
  • Completed in T391450 - Blocked by T338452 - T346519 [WBQC] Update WikibaseQualityConstraints to use the new HookContainer/HookRunner system

Owned by TBD

  • Completed in T391442 and T391444 - T338452 Update Wikibase to use the new HookContainer/HookRunner system
  • Completed in T346505- T346505 Update WikimediaBadges to use the new HookContainer/HookRunner system

Owned by WMF

  • Completed in T391448 - T346517 Update WikibaseLexemeCirrusSearch to use the new HookContainer/HookRunner system
  • Completed in T391445 - T346518 Update WikibaseCirrusSearch to use the new HookContainer/HookRunner system
  • Completed in T391449 - T338456 Update WikibaseMediaInfo to use the new HookContainer/HookRunner system

Considerations

T330629 is the first of this EPICs to be completed, so the learning from this task should be taken into account.

Related Objects

StatusSubtypeAssignedTask
OpenNone
OpenNone
OpenkarapayneWMDE
ResolvedArthurTaylor
OpenNone
OpenNone
OpenNone
OpenNone
OpenNone
StalledNone
ResolvedLucas_Werkmeister_WMDE
ResolvedkarapayneWMDE
ResolvedkarapayneWMDE
ResolvedkarapayneWMDE
ResolvedkarapayneWMDE
ResolvedkarapayneWMDE
ResolvedArthurTaylor
ResolvedkarapayneWMDE
ResolvedkarapayneWMDE
ResolvedkarapayneWMDE
ResolvedkarapayneWMDE
ResolvedkarapayneWMDE
Resolvedhoo
ResolvedkarapayneWMDE
Resolvedhoo
ResolvedkarapayneWMDE
ResolvedkarapayneWMDE

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
karapayneWMDE renamed this task from [EPIC] [WIP] Update all WMDE topics to use the new HookContainer/HookRunner system to [EPIC] [WIP] Update all WMDE Wikibase topics to use the new HookContainer/HookRunner system.Dec 2 2024, 11:11 AM
karapayneWMDE updated the task description. (Show Details)
karapayneWMDE renamed this task from [EPIC] [WIP] Update all WMDE Wikibase topics to use the new HookContainer/HookRunner system to [EPIC] Update all WMDE Wikibase topics to use the new HookContainer/HookRunner system.Apr 9 2025, 10:41 AM

Change #1151250 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[mediawiki/extensions/Wikibase@master] tests: Require new-style hook handlers

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

Change #1151251 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[mediawiki/core@master] tests: Optionally require new-style hook handlers

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

Change #1151251 merged by jenkins-bot:

[mediawiki/core@master] tests: Optionally require new-style hook handlers

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

Change #1151250 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] tests: Require new-style hook handlers

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