stable

Clone or download

Read-only

POST tracker_workflow_transitions/:id must replicate post-actions

Part of story #12187 configure workflow pre & post actions at target state level How to test: - Set up the feature flag - In a workflow configured in Simple mode (forge your DB), given a "column" (for example To Do) where you have no transitions, create one. - Add post actions to it - When you add another transition in the same column, it will replicate the conditions and post actions you set up on the first one. - No functional change expected on Advanced workflows. Change-Id: Ie9e051650e45bfc3d1ad6069a73e55ba214fdfb7

Modified Files

Name
M plugins/tracker/include/REST/v1/Workflow/TransitionPOSTHandler.php +17 −6 Go to diff View file
M plugins/tracker/include/REST/v1/Workflow/TransitionsResource.class.php +42 −9 Go to diff View file
M plugins/tracker/include/Workflow/PostAction/Field/Transition_PostAction_FieldFactory.class.php +41 −1 Go to diff View file
A plugins/tracker/include/Workflow/PostAction/PostActionsRetriever.php +71 −0 Go to diff View file
A plugins/tracker/include/Workflow/PostAction/Update/Internal/PostActionsMapper.php +103 −0 Go to diff View file
D plugins/tracker/include/Workflow/Transition/Condition/ConditionsReplicator.php +0 −79 Go to diff View file
A plugins/tracker/include/Workflow/Transition/Update/TransitionReplicator.php +133 −0 Go to diff View file
M plugins/tracker/phpunit/REST/v1/Workflow/TransitionPOSTHandlerTest.php +19 −7 Go to diff View file
D plugins/tracker/phpunit/Tracker/Workflow/Condition/ConditionsReplicatorTest.php +0 −107 Go to diff View file
A plugins/tracker/phpunit/Tracker/Workflow/PostAction/Update/Internal/PostActionsMapperTest.php +127 −0 Go to diff View file
A plugins/tracker/phpunit/Tracker/Workflow/Transition/TransitionReplicatorTest.php +143 −0 Go to diff View file