stable

Clone or download

Read-only

Update PUT .../actions to handle "set date field" post actions

Part of story #12187 configure workflow pre & post actions at target state level How to test: - Create a workflow transition - Call PUT /tracker_workflow_transitions/:id/actions with Api Explorer with body { "post_actions": [ { "type": "set_field_value", "field_type": "date", "field_id": 33, "value": "current" } ] } --> 200 --> A new "set date value" post action was created with given values --> All other "CI build" and "set date value" post action are removed - Try with an invalid set date value post action ("field_id" not provided, null or not int. Same with "value") --> 400 with a precise message Change-Id: Ifba312011647591ec34794cbf18b209767dd6f2b

Modified Files

Name
A plugins/tracker/include/REST/v1/Workflow/PostAction/Update/SetDateValueJsonParser.php +101 −0 Go to diff View file
M plugins/tracker/include/REST/v1/Workflow/TransitionsResource.class.php +23 −4 Go to diff View file
M plugins/tracker/include/workflow/PostAction/Field/dao/Transition_PostAction_FieldDao.class.php +37 −1 Go to diff View file
A plugins/tracker/include/workflow/PostAction/Update/Internal/SetDateValueRepository.php +144 −0 Go to diff View file
A plugins/tracker/include/workflow/PostAction/Update/Internal/SetDateValueUpdater.php +58 −0 Go to diff View file
M plugins/tracker/include/workflow/PostAction/Update/PostActionCollection.php +10 −0 Go to diff View file
A plugins/tracker/phpunit/REST/v1/Workflow/PostAction/Update/SetDateValueJsonParserTest.php +206 −0 Go to diff View file
M plugins/tracker/phpunit/Tracker/Workflow/PostAction/Update/Internal/CIBuildRepositoryTest.php +9 −24 Go to diff View file
M plugins/tracker/phpunit/Tracker/Workflow/PostAction/Update/Internal/CIBuildUpdaterTest.php +5 −10 Go to diff View file
R plugins/tracker/phpunit/Workflow/PostAction/Update/Internal/PostActionDiffTest.php Go to diff View file
A plugins/tracker/phpunit/Tracker/Workflow/PostAction/Update/Internal/SetDateValueRepositoryTest.php +175 −0 Go to diff View file
R plugins/tracker/phpunit/Workflow/PostAction/Update/PostActionCollectionUpdaterTest.php Go to diff View file
A plugins/tracker/phpunit/Tracker/Workflow/PostAction/Update/TransitionFactory.php +46 −0 Go to diff View file
M plugins/tracker/site-content/fr_FR/LC_MESSAGES/tuleap-tracker.po +23 −1 Go to diff View file
M plugins/tracker/site-content/tuleap-tracker.pot +18 −0 Go to diff View file