Page MenuHomePhabricator

initWikiConfig.php should not overwrite already existing config
Closed, ResolvedPublic

Description

Background

As part of Growth-Scaling, we created a script called initWikiConfig.php that predetermines good defaults of configuration options Growth features require (like templates for newcomer tasks or help panel links) using Wikidata.

This script is run while enabling Growth features on a wiki (usually, by @Urbanecm_WMF).

Task objective

As of now, the initWikiConfig.php script generates the configuration file and saves it, without regard to any already existing config. To avoid mistakes, let's check the config does not yet exist before writing it, and require a special option passed to the script in that case.

This will also make it possible to run it for all Growth wikis, knowing the ones where it is not necessary will skip it, to ensure all currently deployed wikis have their initial config.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 710054 had a related patch set uploaded (by Urbanecm; author: Urbanecm):

[mediawiki/extensions/GrowthExperiments@master] initWikiConfig.php: Check for config page existance before saving

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

Change 710054 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] initWikiConfig.php: Check for config page existance before saving

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