stable

Clone or download

Read-only

Update asynchronously the mirrored iterations when the Program's

iteration is updated Part of story #23499 re-synchronize Iterations Now by default, the asynchronous update is done. If there is an issue with redis, the update is made synchronously. It is done in same way the update of a Program Increment How to test: - If Redis is not up => make start-redis - In your Tuleap container, check the redis log => tail -f /var/log/tuleap/worker_log - Go to the `Program` and update an `Iteration` artifact => The `Teams` artifact are updated after to have recieved the worker event from redis => The worker log should be ok Note: If you test an error case, you should see the info/debug/error log here: tail -f /var/log/tuleap/program_management_syslog Change-Id: I768a15e86d9b965603ad316c542c6e24399ee481

Modified Files

Name
A plugins/program_management/include/Adapter/Events/IterationUpdateEventProxy.php +123 −0 Go to diff View file
A plugins/program_management/include/Adapter/JSON/PendingIterationUpdateRepresentation.php +48 −0 Go to diff View file
M plugins/program_management/include/Adapter/Program/Backlog/AsynchronousCreation/IterationUpdateDispatcher.php +28 −4 Go to diff View file
A plugins/program_management/include/Domain/Events/IterationUpdateEvent.php +40 −0 Go to diff View file
A plugins/program_management/include/Domain/Program/Backlog/AsynchronousCreation/IterationUpdateEventHandler.php +48 −0 Go to diff View file
M plugins/program_management/include/Domain/Program/Backlog/Iteration/IterationUpdate.php +17 −1 Go to diff View file
M plugins/program_management/include/program_managementPlugin.php +29 −7 Go to diff View file
A plugins/program_management/tests/unit/Adapter/Events/IterationUpdateEventProxyTest.php +226 −0 Go to diff View file
A plugins/program_management/tests/unit/Adapter/JSON/PendingIterationUpdateRepresentationTest.php +49 −0 Go to diff View file
A plugins/program_management/tests/unit/Adapter/Program/Backlog/AsynchronousCreation/IterationUpdateDispatcherTest.php +108 −0 Go to diff View file
A plugins/program_management/tests/unit/Domain/Program/Backlog/AsynchronousCreation/IterationUpdateEventHandlerTest.php +65 −0 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Backlog/Iteration/IterationUpdateTest.php +23 −0 Go to diff View file
A plugins/program_management/tests/unit/Stub/BuildIterationUpdateProcessorStub.php +45 −0 Go to diff View file
A plugins/program_management/tests/unit/Stub/IterationUpdateEventStub.php +77 −0 Go to diff View file
A plugins/program_management/tests/unit/Stub/ProcessIterationUpdateStub.php +50 −0 Go to diff View file