stable

Clone or download

Read-only

feat(mediawiki): Suspend and resume projects

When a project is suspended or made active again, the corresponding MediaWiki instance is suspended and resumed. This approach assume that nothing went wrong in creation / suspend / resume. Worst cases: trying to suspend an instance that was not created will fail but no data will be leaked (same idea for other combinations). A step of robustness is likely to be needed on Instance events anyway. Part of: story #24228 create/update/delete mediawiki-standalone in my project Change-Id: I22edd1be97a581392c2940b283bdf308c5cc9e51

Modified Files

Name
A plugins/mediawiki_standalone/include/Instance/ProjectStatusHandler.php +51 −0 Go to diff View file
A plugins/mediawiki_standalone/include/Instance/ResumeInstanceTask.php +54 −0 Go to diff View file
M plugins/mediawiki_standalone/include/mediawiki_standalonePlugin.php +8 −0 Go to diff View file
A plugins/mediawiki_standalone/tests/unit/Instance/ProjectStatusHandlerTest.php +71 −0 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Service/ServiceActivationHandlerTest.php +2 −8 Go to diff View file
M src/common/Project/Project.class.php +20 −0 Go to diff View file
M tests/lib/Builders/ProjectTestBuilder.php +20 −1 Go to diff View file
A tests/lib/Stubs/EnqueueTaskStub.php +37 −0 Go to diff View file
A tests/unit/tests/Builders/ProjectTestBuilderTest.php +36 −0 Go to diff View file