Page MenuHomePhabricator

Add Linter database update maintenance scripts to the DatabaseUpdater for 3rd party use
Closed, ResolvedPublic

Description

As part of the removal of the dual mode Linter recordLinJob code and user interface and report generator code to utilize the added namespace and tag and template fields, 3rd party wikis need to run the maintenance scripts during the update/upgrade cycle. The four configuration variables used during the rollout of the database updates and feature enablements was useful for WMF deployment but needs to be removed to reduce code clutter.

The steps to accomplish this were discussed in Slack by:

CScott: "The Linter extension has some maintenance scripts that should be run before the upgrade to 1.43 (configuration variables going away, etc)"

JamesF: "Yes, if you can add it to the DatabaseUpdater with addExtensionUpdate() (docs) that should work well enough for anyone except people that don't run update.php, like Wikimedia production, which you'll have to do manually."

JamesF: "Here's an example from Wikibase: https://gerrit.wikimedia.org/g/mediawiki/extensions/Wikibase/+/HEAD/client/includes/Hooks/LoadExtensionSchemaUpdatesHookHandler.php"

Event Timeline

Arlolra triaged this task as Medium priority.Jun 15 2024, 1:24 AM

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

[mediawiki/extensions/Linter@master] WIP Run Linter db migration maintenance scripts for 3rd party use

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

Change #1079255 had a related patch set uploaded (by Isabelle Hurbain-Palatin; author: Isabelle Hurbain-Palatin):

[mediawiki/extensions/Linter@master] Wire migration scripts to SchemaHooks

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

Change #1053045 abandoned by Reedy:

[mediawiki/extensions/Linter@master] WIP Run Linter db migration maintenance scripts for 3rd party use

Reason:

https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Linter/+/1079255

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

Change #1080263 had a related patch set uploaded (by Isabelle Hurbain-Palatin; author: Isabelle Hurbain-Palatin):

[mediawiki/core@master] Update release notes with Linter changes

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

Change #1079255 merged by jenkins-bot:

[mediawiki/extensions/Linter@master] Wire migration scripts to SchemaHooks

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

Change #1080263 merged by jenkins-bot:

[mediawiki/core@master] Update release notes with Linter changes and migration advice

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