stable

Clone or download

Read-only

feat(mediawiki): delete instance

Catch project deletion event and process with MediWiki instance deletion. Subtelty: the common work with "getValidProjectById" doesn't work because the project is already marked as deleted when we get it. Part of: story #24228 create/update/delete mediawiki-standalone in my project Change-Id: Ie7fb1ee74c052a0fae228329e74a31197b4cad0b

Modified Files

Name
A plugins/mediawiki_standalone/include/Instance/DeleteInstance.php +67 −0 Go to diff View file
A plugins/mediawiki_standalone/include/Instance/DeleteInstanceTask.php +54 −0 Go to diff View file
M plugins/mediawiki_standalone/include/Instance/InstanceManagement.php +4 −0 Go to diff View file
M plugins/mediawiki_standalone/include/Instance/ProjectStatusHandler.php +1 −3 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Instance/InstanceManagementTest.php +39 −10 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Instance/LogUsersOutInstanceTaskTest.php +8 −24 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Instance/ProjectStatusHandlerTest.php +5 −0 Go to diff View file
M src/common/Project/ProjectByIDFactory.php +2 −0 Go to diff View file
M src/common/Project/ProjectManager.class.php +5 −0 Go to diff View file
M tests/lib/Stubs/ProjectByIDFactoryStub.php +24 −6 Go to diff View file
M tests/unit/common/Project/Service/EditControllerTest.php +2 −0 Go to diff View file
A tests/unit/tests/Stubs/ProjectByIDFactoryStubTest.php +57 −0 Go to diff View file