stable

Clone or download

Read-only

feat: Use the language of the current MW when migrating it

No need anymore to pass the language code in the payload, we now detect the language of the legacy MW (and fallback on default one for the platform). tuleap worker:enqueue tuleap.mediawiki-standalone.instance-migration '{"project_id":116}' Part of: story #26041 migrate mediwiki from 1.23 to 1.35.X Change-Id: I3aaa42cdb8d6760d89e22235f4b393b0cf31008a

Modified Files

Name
M plugins/mediawiki_standalone/include/Instance/InstanceManagement.php +13 −1 Go to diff View file
A plugins/mediawiki_standalone/include/Instance/Migration/LegacyMediawikiLanguageDao.php +38 −0 Go to diff View file
A plugins/mediawiki_standalone/include/Instance/Migration/LegacyMediawikiLanguageRetriever.php +28 −0 Go to diff View file
M plugins/mediawiki_standalone/include/Instance/Migration/MigrateInstance.php +16 −4 Go to diff View file
M plugins/mediawiki_standalone/include/mediawiki_standalonePlugin.php +3 −0 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Instance/InstanceManagementTest.php +3 −0 Go to diff View file
A plugins/mediawiki_standalone/tests/unit/Instance/Migration/LegacyMediawikiLanguageRetrieverStub.php +43 −0 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Instance/Migration/MigrateInstanceTest.php +151 −0 Go to diff View file