stable

Clone or download

Read-only

feat: Display error page when MW migration gone bad

End user should be informed that the MW service is not available because of error. Part of: story #26041 migrate mediwiki from 1.23 to 1.35.X Change-Id: I2e125cebc1f4a1b7f0eddfd88097fd1dbe714f3b

Modified Files

Name
M plugins/mediawiki_standalone/db/install.sql +2 −1 Go to diff View file
A plugins/mediawiki_standalone/db/mysql/updates/2023/202303160931_add_is_error_to_ongoing_initializations_table.php +37 −0 Go to diff View file
A plugins/mediawiki_standalone/include/Instance/CheckOngoingInitializationsError.php +28 −0 Go to diff View file
M plugins/mediawiki_standalone/include/Instance/MigrateInstance.php +6 −0 Go to diff View file
M plugins/mediawiki_standalone/include/Instance/OngoingInitializationsDao.php +18 −1 Go to diff View file
M plugins/mediawiki_standalone/include/Instance/OngoingInitializationsState.php +2 −0 Go to diff View file
M plugins/mediawiki_standalone/include/Service/UnderConstructionController.php +6 −4 Go to diff View file
M plugins/mediawiki_standalone/include/mediawiki_standalonePlugin.php +1 −0 Go to diff View file
M plugins/mediawiki_standalone/site-content/fr_FR/LC_MESSAGES/tuleap-mediawiki_standalone.po +13 −1 Go to diff View file
M plugins/mediawiki_standalone/site-content/pt_BR/LC_MESSAGES/tuleap-mediawiki_standalone.po +12 −0 Go to diff View file
A plugins/mediawiki_standalone/templates/under-construction-error.mustache +71 −0 Go to diff View file
M plugins/mediawiki_standalone/templates/under-construction.mustache +6 −2 Go to diff View file
M plugins/mediawiki_standalone/tests/integration/Instance/OngoingInitializationsDaoTest.php +13 −0 Go to diff View file
A plugins/mediawiki_standalone/tests/unit/Instance/CheckOngoingInitializationsErrorStub.php +45 −0 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Instance/MigrateInstanceTest.php +13 −4 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Instance/OngoingInitializationsStateStub.php +11 −0 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Service/UnderConstructionControllerTest.php +40 −0 Go to diff View file