stable

Clone or download

Read-only

feat(mediawiki): Suspend & Resume instances

As the implementation starts to be a lot of copy/paste this is mainly a refactoring of the previous implementation to mutualize the work. I didn't mutualize everything yet because I want to see how it fits with actual service activation / deactivation before. Nix packaging evolves because there is a need for a specific configuration file when an instance is suspended. Extract of the information from the not public design document: > Suspending an instance will now keep the instance available, but will > limit permissions only to sysop group (others get no permission). This > is achieved by loading a static file on suspended instances. This file > should be located in wiki root and be called > `LocalSettings.SUSPENDED.php`. > Once the file is in place, loading will happen automatically. Part of: story #24228 create/update/delete mediawiki-standalone in my project Change-Id: Ie35cc2ba960c2606b6cb63b07d36356f114b6968

Modified Files

Name
M plugins/mediawiki_standalone/additional-packages/tuleap-mediawiki.nix +15 −3 Go to diff View file
A plugins/mediawiki_standalone/include/Instance/CreateInstance.php +75 −0 Go to diff View file
R plugins/mediawiki_standalone/include/Instance/InstanceCreationWorkerTask.php Go to diff View file
A plugins/mediawiki_standalone/include/Instance/InstanceOperation.php +34 −0 Go to diff View file
R plugins/mediawiki_standalone/include/Instance/InstanceCreationWorkerEvent.php Go to diff View file
A plugins/mediawiki_standalone/include/Instance/SuspendInstance.php +67 −0 Go to diff View file
M plugins/mediawiki_standalone/include/mediawiki_standalonePlugin.php +7 −10 Go to diff View file
D plugins/mediawiki_standalone/tests/unit/Instance/InstanceCreationWorkerTaskTest.php +0 −107 Go to diff View file
A plugins/mediawiki_standalone/tests/unit/Instance/InstanceManagementTest.php +170 −0 Go to diff View file
A src/common/Queue/GenericQueueTask.php +49 −0 Go to diff View file
M src/common/Queue/WorkerEnqueueCommand.php +1 −22 Go to diff View file