Page MenuHomePhabricator

Remove onConditionalDefaultOptionsAddCondition hook
Closed, ResolvedPublic

Description

This hook was introduced in the past to support some advanced experimentation needs of the Growth Team in our bespoke experimentation setup.
However, with TestKitchen having replaced that custom system, this hook is no longer needed. Given that it is an undocumented (T383702) and complex hook in a complex feature, it seems simpler to drop it again instead of keeping it around and paying the associated maintenance overhead when we don't actually have a use for it.

Acceptance criteria:

  • All known users removed
  • The hook is deprecated (in MW 1.46)
  • the ConditionalDefaultOptionsAddCondition hook has been removed from core again (in MW 1.47+) release notes

Event Timeline

Despite being undocumented on MW.org, your team chose to document it in the code including the * @stable to implement which means you need to follow the https://www.mediawiki.org/wiki/Stable_interface_policy to deprecate and then remove it

Urbanecm_WMF raised the priority of this task from Low to High.
Urbanecm_WMF subscribed.

In the light of what James said, let's get this started now, to avoid having to wait N more months.

Change #1275962 had a related patch set uploaded (by Urbanecm; author: Urbanecm):

[mediawiki/core@master] Hard-deprecate the onConditionalDefaultOptionsAddCondition hook

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

Change #1275963 had a related patch set uploaded (by Urbanecm; author: Urbanecm):

[mediawiki/core@master] Remove ConditionalDefaultOptionsAddConditionHook

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

Change #1275962 merged by jenkins-bot:

[mediawiki/core@master] Hard-deprecate the onConditionalDefaultOptionsAddCondition hook

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

Urbanecm_WMF lowered the priority of this task from High to Medium.May 3 2026, 9:03 PM
Urbanecm_WMF moved this task from QA to Code Review on the Growth-Team (FY2025-26 Q4 Sprint 2) board.

Change #1275963 merged by jenkins-bot:

[mediawiki/core@master] Remove ConditionalDefaultOptionsAddConditionHook

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

Change #1283089 had a related patch set uploaded (by SomeRandomDeveloper; author: SomeRandomDeveloper):

[mediawiki/core@master] Add release notes entry for ConditionalDefaultOptionsAddConditionHook removal

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

Change #1283089 merged by jenkins-bot:

[mediawiki/core@master] Add release notes entry for ConditionalDefaultOptionsAddConditionHook removal

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

DMburugu updated the task description. (Show Details)
DMburugu subscribed.

@Urbanecm_WMF This is ready to be resolved based on the release notes here. Feel free to reopen if necessary.