Page MenuHomePhabricator

Port \GrowthExperiments\Config\ConfigHooks::onPageSaveComplete to PageUpdated event
Closed, InvalidPublic

Description

As an experiment, the \GrowthExperiments\Config\ConfigHooks::onPageSaveComplete hook should be migrated to use the new PageUpdated event.

Example from the Linter extension: EXP: use new event listener mechanism
TODO: link documentation here

Acceptance criteria:

  • Change the \GrowthExperiments\Config\ConfigHooks::onPageSaveComplete to the PageUpdated event
  • Investigate and document here what would happen if there were a problem with that hook and how we would notice that.
  • (optional) Share any feedback/thoughts/concerns/feelings you may have about how the new system.

Notes:

  • Is that hook defacto part of the legacy CommunityConfiguration 1.0? If so, it might not actually do much in practice.

Event Timeline

Michael renamed this task from Port `\GrowthExperiments\Config\ConfigHooks::onPageSaveComplete` to PageUpdated event to Port \GrowthExperiments\Config\ConfigHooks::onPageSaveComplete to PageUpdated event.Nov 21 2024, 4:04 PM

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

[mediawiki/extensions/GrowthExperiments@master] Port ConfigHooks::onPageSaveComplete to PageUpdated event

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

Isn't this task already resolved in T384257? Can we mark it as invalid? cc @Michael

Isn't this task already resolved in T384257? Can we mark it as invalid? cc @Michael

I agree, that and the changes from T383330, both of which took place after this task was created, mean that this task no longer makes sense. That hook handler is not called anymore. It is just waiting to be deleted in context of T367574: [Epic] Remove code for Special:EditGrowthConfig.

Change #1124090 abandoned by Cyndywikime:

[mediawiki/extensions/GrowthExperiments@master] Port ConfigHooks::onPageSaveComplete to PageUpdated event

Reason:

task already resolved in T384257

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