stable

Clone or download

Read-only

feat: Switch service when starting migration

Have a project with legacy MediaWiki service. Lauch the following command with the right project id: ``` tuleap worker:enqueue tuleap.mediawiki-standalone.instance-migration '{"project_id":165,"language_code":"en"}' ``` => Legacy service is disabled => MediaWiki Standalone is activated (with the same rank to not confuse people) => Url of the service points to "under construction" page Part of: story #26041 migrate mediwiki from 1.23 to 1.35.X Change-Id: I4da6004fcfa10415048a8f937f19fd804c1df1d3

Modified Files

Name
M plugins/mediawiki_standalone/db/install.sql +4 −0 Go to diff View file
A plugins/mediawiki_standalone/db/mysql/updates/2023/202303150945_add_ongoing_initializations_table.php +42 −0 Go to diff View file
M plugins/mediawiki_standalone/db/uninstall.sql +1 −0 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/Instance/MigrateInstance.php +11 −0 Go to diff View file
A plugins/mediawiki_standalone/include/Instance/OngoingInitializationsDao.php +44 −0 Go to diff View file
A plugins/mediawiki_standalone/include/Instance/OngoingInitializationsState.php +28 −0 Go to diff View file
A plugins/mediawiki_standalone/include/Instance/ServiceMediawikiSwitcher.php +90 −0 Go to diff View file
A plugins/mediawiki_standalone/include/Instance/SwitchMediawikiService.php +28 −0 Go to diff View file
M plugins/mediawiki_standalone/include/Service/MediawikiStandaloneService.php +7 −1 Go to diff View file
M plugins/mediawiki_standalone/include/Service/UnderConstructionController.php +2 −0 Go to diff View file
M plugins/mediawiki_standalone/include/mediawiki_standalonePlugin.php +4 −0 Go to diff View file
A plugins/mediawiki_standalone/tests/integration/Instance/OngoingInitializationsDaoTest.php +49 −0 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Instance/InstanceManagementTest.php +2 −0 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Instance/MigrateInstanceTest.php +31 −4 Go to diff View file
A plugins/mediawiki_standalone/tests/unit/Instance/OngoingInitializationsStateStub.php +47 −0 Go to diff View file
A plugins/mediawiki_standalone/tests/unit/Instance/ServiceMediawikiSwitcherTest.php +181 −0 Go to diff View file
A plugins/mediawiki_standalone/tests/unit/Instance/SwitchMediawikiServiceStub.php +47 −0 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Service/UnderConstructionControllerTest.php +2 −0 Go to diff View file