Page MenuHomePhabricator

Cover HomepageHooks::onCirrusSearchAddQueryFeatures and HelpPanelHooks::getPreferredEditor with integration testing
Closed, ResolvedPublic0.5 Estimated Story Points

Description

Due to a bug in T410917 (r1234408), we accidentally caused T417195: Unexpected call to ConfigurationLoader::getTaskTypes when feature is disabled (February 2026) (an UBN). To avoid similar breakages in the future, we should add at least a basic integration tests coverage to this method.

The problem was checking for $geServices->getFeatureManager()->isNewcomerTasksAvailable() rather than !$geServices->getFeatureManager()->isNewcomerTasksAvailable() (inversed condition).

Fixing patches:

Event Timeline

Urbanecm_WMF renamed this task from Cover HomepageHooks::onCirrusSearchAddQueryFeatures with integration testing to Cover HomepageHooks::onCirrusSearchAddQueryFeatures and with integration testing.Feb 11 2026, 6:09 PM
Urbanecm_WMF renamed this task from Cover HomepageHooks::onCirrusSearchAddQueryFeatures and with integration testing to Cover HomepageHooks::onCirrusSearchAddQueryFeatures and HelpPanelHooks::getPreferredEditor with integration testing.
Urbanecm_WMF updated the task description. (Show Details)
Urbanecm_WMF updated the task description. (Show Details)
Urbanecm_WMF moved this task from Inbox to Needs Estimation on the Growth-Team board.

This would've helped to prevent two errorbursts in the past ~2 months: T417195, T408531. Moving to Current Quarter Backlog (no objections if someone pulls to sprint if they have time).

Change #1239019 had a related patch set uploaded (by Cyndywikime; author: Cyndywikime):

[mediawiki/extensions/GrowthExperiments@master] Add integration tests to cover ConfigurationLoader when SE disabled

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

Change #1239019 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] Add integration tests to cover ConfigurationLoader when SE disabled

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