stable
Clone or download
part of story #22675 replicate program increment changes to mirrored program increments How to test: - insert a row manually in `plugin_program_management_pending_iterations`. Set an unknown user_id like 99 and/or an unknown changeset_id - trigger manually a redis message: - Enter the redis-cli in the redis container: $ docker exec -it tuleap_redis_1 sh -c redis-cli - Push a message to the events list > LPUSH 'app_user_events' '{"event_name":"tuleap.program_management.program_increment.update","payload":{"artifact_id":6107,"user_id":110},"_enqueue_ts":1630314422.2812,"_queued_total":0}' You should see an error log message stating that there is invalid data and the iteration will be skipped Change-Id: I55ace1bae7088c808ab58fe3959aefdc45ff3ea7
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/program_management/include/Domain/Program/Backlog/AsynchronousCreation/IterationCreation.php | +9 | −5 | Go to diff View file |
M | plugins/program_management/include/Domain/Program/Backlog/AsynchronousCreation/ProgramIncrementUpdateEventHandler.php | +2 | −2 | Go to diff View file |
M | plugins/program_management/tests/unit/Domain/Program/Backlog/AsynchronousCreation/IterationCreationTest.php | +18 | −20 | Go to diff View file |