stable
Clone or download
part of story #21368 create mirrored iteration How to test: - Make sure your redis worker is running - Run `tuleap config-set feature_flag_program_management_display_iteration 1` to enable iterations. 1. If you have already made tests for this story, you can trigger a redis event for an existing PI with Iterations linked to it: - Enter the redis-cli in your redis container: $ docker exec -it tuleap_redis_1 redis-cli - Push a message to the events queue manually: > LPUSH 'app_user_events' '{"event_name":"tuleap.program_management.program_increment.update","payload":{"program_increment_id":6269,"user_id":110,"changeset_id":13408,"iterations":[{"id":6317,"changeset_id":13403},{"id":6318,"changeset_id":13404}]}}' Change the ids above according to your setup. You can get changeset_id in the Artifact View, there is a data-changeset-id attribute. 2. Otherwise, if you don't have pre-wired artifacts: - Edit a Program Increment artifact and add one or more artifact links with _is_child type to Iteration artifacts. 3. With either method 1. or 2., a log message will be added to "program_management_syslog" for each iteration: [debug] Title value: <iteration title value> The log message only exists for testing purposes, to show that we retrieve field values. It will be removed on next commits. Change-Id: I4729020ba1233ade9a99985c122c6fb5c778ca29
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/program_management/include/Adapter/Program/Backlog/AsynchronousCreation/IterationCreationProcessorBuilder.php | +34 | −2 | Go to diff View file |
M | plugins/program_management/include/Adapter/Program/Backlog/Iteration/IterationsDAO.php | +11 | −0 | Go to diff View file |
M | plugins/program_management/include/Domain/Program/Backlog/AsynchronousCreation/IterationCreation.php | +41 | −3 | Go to diff View file |
M | plugins/program_management/include/Domain/Program/Backlog/AsynchronousCreation/IterationCreationDetector.php | +3 | −0 | Go to diff View file |
M | plugins/program_management/include/Domain/Program/Backlog/AsynchronousCreation/IterationCreationProcessor.php | +32 | −5 | Go to diff View file |
M | plugins/program_management/include/Domain/Program/Backlog/AsynchronousCreation/ProgramIncrementUpdateEventHandler.php | +8 | −3 | Go to diff View file |
A | plugins/program_management/include/Domain/Program/Backlog/IterationTracker/IterationTrackerIdentifier.php | +49 | −0 | Go to diff View file |
M | plugins/program_management/include/Domain/Program/Backlog/IterationTracker/RetrieveIterationTracker.php | +3 | −0 | Go to diff View file |
M | plugins/program_management/include/program_managementPlugin.php | +4 | −1 | Go to diff View file |
M | plugins/program_management/tests/unit/Adapter/JSON/PendingIterationCreationRepresentationTest.php | +1 | −0 | Go to diff View file |
M | plugins/program_management/tests/unit/Adapter/JSON/PendingProgramIncrementUpdateRepresentationTest.php | +2 | −0 | Go to diff View file |
M | plugins/program_management/tests/unit/Adapter/Program/Backlog/AsynchronousCreation/ProgramIncrementUpdateDispatcherTest.php | +2 | −0 | Go to diff View file |
M | plugins/program_management/tests/unit/Adapter/Program/IterationTracker/VisibleIterationTrackerRetrieverTest.php | +2 | −2 | Go to diff View file |
M | plugins/program_management/tests/unit/Builder/IterationCreationBuilder.php | +6 | −1 | Go to diff View file |
M | plugins/program_management/tests/unit/Domain/Program/Backlog/ArtifactUpdatedHandlerTest.php | +2 | −0 | Go to diff View file |
M | plugins/program_management/tests/unit/Domain/Program/Backlog/AsynchronousCreation/IterationCreationDetectorTest.php | +3 | −3 | Go to diff View file |
M | plugins/program_management/tests/unit/Domain/Program/Backlog/AsynchronousCreation/IterationCreationProcessorTest.php | +37 | −4 | Go to diff View file |
M | plugins/program_management/tests/unit/Domain/Program/Backlog/AsynchronousCreation/IterationCreationTest.php | +16 | −1 | Go to diff View file |
M | plugins/program_management/tests/unit/Domain/Program/Backlog/AsynchronousCreation/ProgramIncrementUpdateEventHandlerTest.php | +2 | −0 | Go to diff View file |
A | plugins/program_management/tests/unit/Domain/Program/Backlog/IterationTracker/IterationTrackerIdentifierTest.php | +41 | −0 | Go to diff View file |
M | plugins/program_management/tests/unit/Stub/RetrieveIterationTrackerStub.php | +14 | −6 | Go to diff View file |