Page MenuHomePhabricator

Deprecate and then remove Linter config variables used to control new linter table field access
Closed, ResolvedPublic

Description

When three new fields were added to the Linter table (linter_namespace, linter_template and linter_tag) new configuration variables were added in extension.json to control the writing/migration and use of the new fields and allow careful rollout and test of the write, migrate and usage of the fields by dark launched, dual mode linter code.
The config variables (LinterWriteNamespaceColumnStage, LinterUseNamespaceColumnStage and LinterWriteTagAndTemplateColumnsStage, LinterUserInterfaceTagAndTemplateStage) were all set to false in extension.json and the LinterWrite.. variables progressively overridden by wmf-config/InitializeSettings.php until all groups were enabled, then the database field migration maintenance scripts were run on all wikis in groups, and finally the LinterUse... variables were enabled allowing the new UI and improved performance report code to use the new fields.
Tasks:
NOTE: These two tasks were never done, but deemed unnecessary prior to removing the dual mode code and references to all four variables performed in the dual mode code removal patches

  • Now that the code is stable a few months later, the config variables in extension.json should be defaulted to true.
  • The config variables in wmf-config/InitializeSettings-labs.php and wmf-config/InitializeSettings.php should be removed a couple of weeks after the previous task has rolled out.
  • The dual mode code that is no longer reachable should be removed along with all references to the config variables and the config variables removed from extension.json
  • The four config variables in wmf-config/InitializeSettings.php for wikis that were enabled should be removed once all references to them have been removed.

Additional cleanup tasks for recordLintJob (T331883) should be completed after these are done.

Details

Related Changes in Gerrit:

Event Timeline

Arlolra triaged this task as Medium priority.Aug 22 2023, 8:03 PM
Arlolra moved this task from Backlog to General / Tech Debt on the MediaWiki-extensions-Linter board.
This comment was removed by • Sbailey.

Change #1038426 had a related patch set uploaded (by Sbailey; author: Sbailey):

[mediawiki/extensions/Linter@master] Remove linter namespace field dual mode config and code

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

Change #1038905 had a related patch set uploaded (by Sbailey; author: Sbailey):

[mediawiki/extensions/Linter@master] Remove linter tag and template dual mode config and code

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

Change #1048138 had a related patch set uploaded (by Arlolra; author: Arlolra):

[operations/mediawiki-config@master] Remove unused Linter configs

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

Change #1048138 merged by jenkins-bot:

[operations/mediawiki-config@master] Remove unused Linter configs

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

Mentioned in SAL (#wikimedia-operations) [2024-07-02T20:04:34Z] <urbanecm@deploy1002> Started scap sync-world: Backport for [[gerrit:1050085|[July 2nd] Mobile: Enable dark mode for all users for tier 1 wikis (T367151)]], [[gerrit:1048138|Remove unused Linter configs (T343292)]]

Mentioned in SAL (#wikimedia-operations) [2024-07-02T20:07:21Z] <urbanecm@deploy1002> jdlrobson, arlolra, urbanecm: Backport for [[gerrit:1050085|[July 2nd] Mobile: Enable dark mode for all users for tier 1 wikis (T367151)]], [[gerrit:1048138|Remove unused Linter configs (T343292)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2024-07-02T20:21:06Z] <urbanecm@deploy1002> Finished scap: Backport for [[gerrit:1050085|[July 2nd] Mobile: Enable dark mode for all users for tier 1 wikis (T367151)]], [[gerrit:1048138|Remove unused Linter configs (T343292)]] (duration: 16m 31s)