stable

Clone or download

Read-only

Modify PUT REST route to allow configuration of Iterations

This is part of story #21368 create mirrored iteration This patchs introduces new key in payload "iteration_plan". How to test: - run `make dev-forgeupgrade` - Use API PUT project/:id/program_plan with the new key [0] Expected results: - There is a new row in "plugin_program_management_program" table with program_increment_tracker_id and iteration_tracker_id => You can configure a custom label/sub-label [1] -> There is a new row in "plugin_program_management_program" table with custom label/sublabel Note to reviewer: - In futurs patches, "program_increment_tracker_id", "program_increment_label" and "program_increment_sub_label" will be added in table "plugin_program_management_program" to have only one table for config. All these trackers are linked at the same program project. [0] { "program_increment_tracker_id": 894, "plannable_tracker_ids": [ 897 ], "permissions": { "can_prioritize_features": [ "239_3" ] }, "iteration": {"iteration_tracker_id": 895} } [1] { "program_increment_tracker_id": 894, "plannable_tracker_ids": [ 892, 897 ], "permissions": { "can_prioritize_features": [ "239_3" ] }, "iteration": { "iteration_tracker_id": 895, "iteration_label": "Iteration", "iteration_sub_label": "My Sub Label" } } Change-Id: Ibbbfc1999ba7b28a0feed3bfd1e235874ccfb45b

Modified Files

Name
M plugins/program_management/db/install.sql +8 −0 Go to diff View file
A plugins/program_management/db/mysql/2021/202105241011_add_program_table.php +46 −0 Go to diff View file
M plugins/program_management/db/uninstall.sql +1 −0 Go to diff View file
M plugins/program_management/include/Adapter/Program/Plan/PlanDao.php +29 −0 Go to diff View file
M plugins/program_management/include/Domain/Program/Plan/CannotPlanIntoItselfException.php +1 −5 Go to diff View file
A plugins/program_management/include/Domain/Program/Plan/IterationCannotBePlannedException.php +31 −0 Go to diff View file
A plugins/program_management/include/Domain/Program/Plan/IterationTracker.php +68 −0 Go to diff View file
M plugins/program_management/include/Domain/Program/Plan/Plan.php +23 −1 Go to diff View file
M plugins/program_management/include/Domain/Program/Plan/PlanChange.php +15 −3 Go to diff View file
M plugins/program_management/include/Domain/Program/Plan/PlanCreator.php +13 −3 Go to diff View file
A plugins/program_management/include/Domain/Program/Plan/PlanIterationChange.php +49 −0 Go to diff View file
A plugins/program_management/include/Domain/Program/Plan/ProgramIncrementCannotPlanIntoItselfException.php +31 −0 Go to diff View file
M plugins/program_management/include/REST/v1/ProjectResource.php +25 −1 Go to diff View file
A plugins/program_management/include/REST/v1/ProjectResourcePutPlanIterationRepresentation.php +42 −0 Go to diff View file
M plugins/program_management/include/REST/v1/ProjectResourcePutPlanRepresentation.php +4 −0 Go to diff View file
M plugins/program_management/tests/rest/_fixtures/program_program_management/project.xml +85 −0 Go to diff View file
M plugins/program_management/tests/rest/v1/ProjectResourceTest.php +48 −0 Go to diff View file
A plugins/program_management/tests/unit/Domain/Program/Plan/IterationTrackerTest.php +57 −0 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Plan/PlanChangeTest.php +50 −3 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Plan/PlanCreatorTest.php +5 −13 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Plan/ProgramIncrementTrackerTest.php +3 −29 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Plan/ProgramPlannableTrackerTest.php +5 −31 Go to diff View file
A plugins/program_management/tests/unit/Stub/BuildTrackerStub.php +76 −0 Go to diff View file