stable

Clone or download

Read-only

feat: Forbid activation of Backlog service in Programs

How to test: - Activate the split: `tuleap config-set feature_flag_temporarily_deactivate_split_kanban_for_project 0` - In a project using the Program service, go to project administration. In the Services part, you can see the "Backlog" service. When you click on edit, in the modal, the checkbox to enable/disable the service is disabled with a message. The message explains that the Backlog service cannot be enabled when the project also uses the Program service. - If you try to enable the Backlog service anyway (by forging the HTML), it is rejected with an error message. - In other projects (for example Team projects), the checkbox is active and can be changed. - If you deactivate the split (via the feature flag), the checkbox is active and can be changed. - In previously existing Program projects, the Backlog / Agile Dashboard service should be disabled. - When you create a new project from the Agile Release Train template, the Backlog service should be disabled. The Kanban service should be enabled. part of story #33979 have dedicated Backlog service Change-Id: I7f1897c0aa7abc990b42706b985233462a76803a

Modified Files

Name
A plugins/program_management/db/mysql/2023/202309121000_disable_backlog_service.php +44 −0 Go to diff View file
A plugins/program_management/include/Adapter/BacklogPlugin/BacklogServiceBlocker.php +48 −0 Go to diff View file
M plugins/program_management/include/Domain/Service/ProjectServiceBeforeActivationHandler.php +23 −11 Go to diff View file
M plugins/program_management/include/Domain/Service/ServiceDisabledCollectorHandler.php +23 −11 Go to diff View file
A plugins/program_management/include/Domain/Workspace/ProgramBlocksBacklogServiceIfNeeded.php +28 −0 Go to diff View file
M plugins/program_management/include/program_managementPlugin.php +23 −13 Go to diff View file
M plugins/program_management/resources/templates/generate-program_management_program.xml +2 −1 Go to diff View file
M plugins/program_management/site-content/fr_FR/LC_MESSAGES/tuleap-program_management.po +7 −0 Go to diff View file
M plugins/program_management/site-content/pt_BR/LC_MESSAGES/tuleap-program_management.po +5 −0 Go to diff View file
A plugins/program_management/tests/unit/Adapter/BacklogPlugin/BacklogServiceBlockerTest.php +86 −0 Go to diff View file
M plugins/program_management/tests/unit/Domain/Service/ProjectServiceBeforeActivationHandlerTest.php +37 −10 Go to diff View file
M plugins/program_management/tests/unit/Domain/Service/ServiceDisabledCollectorHandlerTest.php +35 −10 Go to diff View file
A plugins/program_management/tests/unit/Stub/ProgramBlocksBacklogServiceIfNeededStub.php +47 −0 Go to diff View file