Page MenuHomePhabricator

FilterRunner shouldn't add any more variables
Open, Needs TriagePublic

Description

Currently, FilterRunner depends on VariableGenerator(Factory) to amend the provided VariableHolder with generic variables. The responsibility for initializing variables already lies on the callers for most variables already. Let's make it consistent and remove this dependency.

This isn't backward compatible and requires prior updates in other extensions.

Event Timeline

Change 808371 had a related patch set uploaded (by Matěj Suchánek; author: Matěj Suchánek):

[mediawiki/extensions/AbuseFilter@master] Set all variables in the generator, not the runner

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

Change 932673 had a related patch set uploaded (by Matěj Suchánek; author: Matěj Suchánek):

[mediawiki/extensions/Flow@master] Call VariableGenerator::addGenericVars explicitly

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

Change 933407 had a related patch set uploaded (by Matěj Suchánek; author: Matěj Suchánek):

[mediawiki/extensions/Comments@master] Call VariableGenerator::addGenericVars explicitly

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

Change 933406 had a related patch set uploaded (by Matěj Suchánek; author: Matěj Suchánek):

[mediawiki/extensions/ArticleFeedbackv5@master] Call VariableGenerator::addGenericVars explicitly

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