stable
Clone or download
This is part of story #12187 configure workflow pre & post actions at target state level How to test: - Using the REST API PUT /tracker_workflow_transitions/{id}/actions You should get a 400 Bad request when you try the following: - Submitting two "set_field_value" of type "float" with the same id - Submitting two "set_field_value" of type "float" with the same field_id - Submitting a "set_field_value" of type "float" with a field_id that does not match a "float" field that is used in the tracker. - There should not be any functional change for CI Build and set int value post actions Here's a sample body: { "post_actions": [{ "id": null, "type": "set_field_value", "field_id": 8196, "field_type": "float", "value": 456.0 }, { "id": null, "type": "set_field_value", "field_id": 8196, "field_type": "float", "value": 123.3 }] } Change-Id: I0723f7b12ec12dc4bebe8184947473f8a88635a0
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/tracker/include/REST/v1/Workflow/TransitionsResource.class.php | +3 | −1 | Go to diff View file |
M | plugins/tracker/include/workflow/PostAction/Update/Internal/SetFloatValueUpdater.php | +8 | −1 | Go to diff View file |
A | plugins/tracker/include/workflow/PostAction/Update/Internal/SetFloatValueValidator.php | +112 | −0 | Go to diff View file |
M | plugins/tracker/include/workflow/PostAction/Update/Internal/SetIntValueValidator.php | +2 | −2 | Go to diff View file |
M | plugins/tracker/include/workflow/PostAction/Update/PostActionCollection.php | +9 | −0 | Go to diff View file |
M | plugins/tracker/phpunit/Tracker/Workflow/PostAction/Update/Internal/SetFloatValueUpdaterTest.php | +30 | −4 | Go to diff View file |
A | plugins/tracker/phpunit/Tracker/Workflow/PostAction/Update/Internal/SetFloatValueValidatorTest.php | +145 | −0 | Go to diff View file |
M | plugins/tracker/phpunit/Tracker/Workflow/PostAction/Update/Internal/SetIntValueValidatorTest.php | +1 | −1 | 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 | +15 | −0 | Go to diff View file |