stable

Clone or download

Read-only

Introduce PATCH tracker/:id to set up the field transitions are based on

Part of story #12187 configure workflow pre & post actions at target state level How to test: use api explorer to call PATCH /trackers/:id --> 403 error if you are not an administrator of the tracker. --> 400 error if you attempt to set up the field id of the field transitions are based on when it is aready defined. --> 404 error if the given field id does not refer to an actual field belonging to the tracker. --> 200 when succes + you get the newly created workflow id Please note that you can assert the proper workflow creation by browsing <my tracker>/admin/Manage workflow/transitions/ Change-Id: I7a8e49453610599dd0e03a40986ca017aa334369

Modified Files

Name
A plugins/tracker/include/REST/v1/TrackerPermissionsChecker.class.php +86 −0 Go to diff View file
M plugins/tracker/include/REST/v1/TrackersResource.class.php +174 −12 Go to diff View file
M plugins/tracker/include/workflow/WorkflowFactory.class.php +6 −2 Go to diff View file
M plugins/tracker/site-content/fr_FR/LC_MESSAGES/tuleap-tracker.po +21 −0 Go to diff View file
M plugins/tracker/site-content/tuleap-tracker.pot +21 −0 Go to diff View file
M plugins/tracker/tests/rest/TrackerBase.php +9 −4 Go to diff View file
A plugins/tracker/tests/rest/Workflows/TrackerWorkflowsTest.php +109 −0 Go to diff View file
A plugins/tracker/tests/rest/_fixtures/Workflows/project.xml +371 −0 Go to diff View file
A plugins/tracker/tests/rest/_fixtures/Workflows/user_map.csv +1 −0 Go to diff View file
A plugins/tracker/tests/rest/_fixtures/Workflows/users.xml +10 −0 Go to diff View file
M src/common/REST/QueryParameterParser.php +20 −0 Go to diff View file
M tests/rest/tests/TrackersTest.php +1 −1 Go to diff View file