stable

Clone or download

Read-only

PATCH trackers/:id to switch to simple mode

This is part of story #12187 configure workflow pre & post actions at target state level A workflow can now be switched from advanced to simple. This implies that for each possible values in the workflow, we get the first transition (best effort) and applies it to all other defined transitions in the workflow. The code is not well optimized. This first step is to make the feature work. We will make it better in next commits. Change-Id: I63fe90185350e0d547c0e041de4ba78b39e4b25e

Modified Files

Name
M plugins/tracker/include/REST/v1/TrackersResource.class.php +53 −9 Go to diff View file
M plugins/tracker/include/REST/v1/Workflow/ModeUpdater.php +106 −5 Go to diff View file
A plugins/tracker/include/Workflow/Transition/Update/TransitionReplicatorBuilder.php +109 −0 Go to diff View file
M plugins/tracker/include/Workflow/TransitionFactory.class.php +1 −1 Go to diff View file
M plugins/tracker/include/Workflow/Workflow_Dao.class.php +11 −2 Go to diff View file
M plugins/tracker/phpunit/REST/v1/Workflow/ModeUpdaterTest.php +119 −9 Go to diff View file