stable

Clone or download

Read-only

Refactor Transition->getWorkflow()

Part of story #12187 configure workflow pre & post actions at target state level Throw dedicateed exception when trying to get transition's workflow. Some callers checked null before throwing OrphanTransitionException. All other does not check null. More over, a transition without workflow is due to inconsistent database. So, throwing this exception earlier will prevent code duplication with checking null in all callers. Change-Id: Ide7dee09eb685446581977644a84c99a2167c8ef

Modified Files

Name
M plugins/tracker/include/REST/v1/Workflow/TransitionRepresentationBuilder.php +2 −5 Go to diff View file
M plugins/tracker/include/REST/v1/Workflow/TransitionsPermissionsChecker.php +3 −10 Go to diff View file
M plugins/tracker/include/REST/v1/Workflow/TransitionsResource.class.php +3 −10 Go to diff View file
M plugins/tracker/include/workflow/Transition.class.php +13 −4 Go to diff View file
R plugins/tracker/include/REST/v1/Workflow/OrphanTransitionException.php Go to diff View file