stable

Clone or download

Read-only

feat(mw-standalone): Introduce migration event

At this stage it's purely for developers as it requires to enqueue the payload manually and the service is not properly managed at the end of the process (the mediawiki service in the side bar still points to the old URL that obviously no longer works). How to test: tuleap worker:enqueue tuleap.mediawiki-standalone.instance-migration '{"project_id":165,"language_code":"en"}' Then craft the URL and voilà. Part of: story #26041 migrate mediwiki from 1.23 to 1.35.X Change-Id: Ieab152c2f0b265dbba551440fd60a656fefc971d

Modified Files

Name
M plugins/mediawiki_standalone/include/Configuration/MediaWikiInstallAndUpdateHandlerException.php +1 −8 Go to diff View file
M plugins/mediawiki_standalone/include/Configuration/MediaWikiManagementCommandFailure.php +6 −1 Go to diff View file
M plugins/mediawiki_standalone/include/Instance/InstanceManagement.php +23 −0 Go to diff View file
M plugins/mediawiki_standalone/include/Instance/MediawikiHTTPClientFactory.php +4 −1 Go to diff View file
A plugins/mediawiki_standalone/include/Instance/MigrateInstance.php +230 −0 Go to diff View file
M plugins/mediawiki_standalone/include/mediawiki_standalonePlugin.php +15 −6 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Configuration/MediaWikiInstallAndUpdateScriptCallerTest.php +2 −32 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Instance/InstanceManagementTest.php +2 −0 Go to diff View file
A plugins/mediawiki_standalone/tests/unit/Instance/MigrateInstanceTest.php +286 −0 Go to diff View file
A plugins/mediawiki_standalone/tests/unit/Stub/MediaWikiManagementCommandFactoryStub.php +66 −0 Go to diff View file
M src/common/Http/HttpClientFactory.php +16 −9 Go to diff View file
M src/common/Option/Option.php +10 −0 Go to diff View file
M tests/unit/common/Option/OptionTest.php +4 −0 Go to diff View file