stable

Clone or download

Read-only

feat(mw-standalone): Optionnaly use central database

Mediawiki legacy can be configured to run with a central database for all MediaWiki instances, sharded by a project based prefix. This patchset makes MediaWiki Standalone aware of this configuration. In order to test it, you will need to rebuild mediawiki rpm & deploy inside your container. Then, you should completely uninstall mediawiki standalone as well clearing all the database and files on the filesystem. Finally, activate central database in mediawiki legacy configuration, create the corresponding database, grant tuleapadm the appropriate rights on it. And voilà. Closes request #27513 Deal with database patterns Change-Id: Id37dbf386286201d9b5612b1727d321eb6b30507

Modified Files

Name
M plugins/mediawiki_standalone/additional-packages/mediawiki-tuleap-config/mw-config/overrides/overrides.php +3 −2 Go to diff View file
M plugins/mediawiki_standalone/include/Configuration/LocalSettingsFactory.php +2 −0 Go to diff View file
M plugins/mediawiki_standalone/include/Configuration/LocalSettingsRepresentation.php +20 −0 Go to diff View file
A plugins/mediawiki_standalone/include/Configuration/MediaWikiCentralDatabaseParameter.php +48 −0 Go to diff View file
A plugins/mediawiki_standalone/include/Configuration/MediaWikiCentralDatabaseParameterGenerator.php +29 −0 Go to diff View file
A plugins/mediawiki_standalone/include/Configuration/MediaWikiCentralDatabaseParameterValidator.php +47 −0 Go to diff View file
M plugins/mediawiki_standalone/include/Configuration/MediaWikiManagementCommandProcess.php +1 −1 Go to diff View file
M plugins/mediawiki_standalone/include/Instance/CreateInstance.php +12 −5 Go to diff View file
M plugins/mediawiki_standalone/include/Instance/InstanceManagement.php +3 −1 Go to diff View file
M plugins/mediawiki_standalone/include/mediawiki_standalonePlugin.php +6 −1 Go to diff View file
M plugins/mediawiki_standalone/templates/local-settings-tuleap-php.mustache +4 −0 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Configuration/LocalSettingsFactoryTest.php +8 −0 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Configuration/LocalSettingsRepresentationForTestBuilder.php +1 −0 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Instance/InstanceManagementTest.php +44 −10 Go to diff View file
A plugins/mediawiki_standalone/tests/unit/Instance/MediaWikiCentralDatabaseParameterGeneratorStub.php +36 −0 Go to diff View file