stable

Clone or download

Read-only

feat: (de)activate module

The administrator can stop/start the execution of the module by going to tracker ยป admin ยป workflow ยป custom code execution and toggling the "Activate" switch. This action is logged in the project history. Part of story #35093: execute custom code as artifact post action Change-Id: I4f9b4f493d01e9fc778cf0717051b57c1e7f1a92

Modified Files

Name
M plugins/tracker_cce/db/install.sql +6 โˆ’0 Go to diff View file
A plugins/tracker_cce/db/mysql/2024/202401171600_add_module_table.php +43 โˆ’0 Go to diff View file
M plugins/tracker_cce/db/uninstall.sql +1 โˆ’0 Go to diff View file
A plugins/tracker_cce/include/TrackerCCE/Administration/ActivateModuleController.php +85 โˆ’0 Go to diff View file
M plugins/tracker_cce/include/TrackerCCE/Administration/AdministrationController.php +3 โˆ’0 Go to diff View file
M plugins/tracker_cce/include/TrackerCCE/Administration/AdministrationPresenter.php +2 โˆ’0 Go to diff View file
A plugins/tracker_cce/include/TrackerCCE/Administration/CheckModuleIsActivated.php +26 โˆ’0 Go to diff View file
M plugins/tracker_cce/include/TrackerCCE/Administration/CustomCodeExecutionHistorySaver.php +37 โˆ’13 Go to diff View file
A plugins/tracker_cce/include/TrackerCCE/Administration/LogModuleActivated.php +26 โˆ’0 Go to diff View file
A plugins/tracker_cce/include/TrackerCCE/Administration/LogModuleDeactivated.php +28 โˆ’0 Go to diff View file
A plugins/tracker_cce/include/TrackerCCE/Administration/ModuleDao.php +68 โˆ’0 Go to diff View file
M plugins/tracker_cce/include/TrackerCCE/Administration/RemoveModuleController.php +2 โˆ’0 Go to diff View file
A plugins/tracker_cce/include/TrackerCCE/Administration/UpdateModuleActivation.php +28 โˆ’0 Go to diff View file
M plugins/tracker_cce/include/TrackerCCE/Administration/UpdateModuleController.php +12 โˆ’0 Go to diff View file
M plugins/tracker_cce/include/TrackerCCE/Administration/administration.mustache +7 โˆ’3 Go to diff View file
M plugins/tracker_cce/include/TrackerCCE/CustomCodeExecutionTask.php +10 โˆ’3 Go to diff View file
M plugins/tracker_cce/include/tracker_ccePlugin.php +52 โˆ’25 Go to diff View file
M plugins/tracker_cce/scripts/admin/src/index.ts +7 โˆ’0 Go to diff View file
M plugins/tracker_cce/site-content/fr_FR/LC_MESSAGES/tuleap-tracker_cce.po +18 โˆ’0 Go to diff View file
M plugins/tracker_cce/site-content/pt_BR/LC_MESSAGES/tuleap-tracker_cce.po +18 โˆ’0 Go to diff View file
A plugins/tracker_cce/tests/integration/Administration/ModuleDaoTest.php +78 โˆ’0 Go to diff View file
A plugins/tracker_cce/tests/unit/Stub/Administration/CheckModuleIsActivatedStub.php +47 โˆ’0 Go to diff View file
A plugins/tracker_cce/tests/unit/Stub/Administration/LogModuleActivatedStub.php +49 โˆ’0 Go to diff View file
A plugins/tracker_cce/tests/unit/Stub/Administration/LogModuleDeactivatedStub.php +49 โˆ’0 Go to diff View file
A plugins/tracker_cce/tests/unit/Stub/Administration/UpdateModuleActivationStub.php +60 โˆ’0 Go to diff View file
A plugins/tracker_cce/tests/unit/TrackerCCE/Administration/ActivateModuleControllerTest.php +145 โˆ’0 Go to diff View file
M plugins/tracker_cce/tests/unit/TrackerCCE/Administration/AdministrationControllerTest.php +4 โˆ’0 Go to diff View file
M plugins/tracker_cce/tests/unit/TrackerCCE/Administration/RemoveModuleControllerTest.php +9 โˆ’0 Go to diff View file
M plugins/tracker_cce/tests/unit/TrackerCCE/Administration/UpdateModuleControllerTest.php +11 โˆ’0 Go to diff View file
M plugins/tracker_cce/tests/unit/TrackerCCE/CustomCodeExecutionTaskTest.php +31 โˆ’4 Go to diff View file