stable
Clone or download
Read-only
story #8206 Work with "values by field" for POST on /artifacts/:id
Only alphanumeric fields are handled, otherwise an exception is raised. Example (in XML format) to test the POST: <request> <tracker> <id>123</id> </tracker> <values_by_field> <remaining_effort> <value>2048</value> </remaining_effort> <title> <value>Tuleap</value> </title> <description> <value>My desc</value> <format>html</value> </description> </values_by_field> </request> Change-Id: I496fd50af40276a36b5bcc66feff14248c6b1ae8
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/tracker/include/REST/Artifact/ArtifactCreator.class.php | +19 | −0 | Go to diff View file |
M | plugins/tracker/include/REST/Artifact/ArtifactValidator.class.php | +21 | −1 | Go to diff View file |
M | plugins/tracker/include/REST/v1/ArtifactsResource.class.php | +64 | −21 | Go to diff View file |
A | plugins/tracker/include/Tracker/FormElement/RESTValueByField_NotImplementedException.php | +21 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field.class.php | +20 | −8 | Go to diff View file |
M | plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_ArtifactLink.class.php | +5 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_Date.class.php | +8 | −4 | Go to diff View file |
M | plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_File.class.php | +4 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List.class.php | +9 | −5 | Go to diff View file |
M | plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_MultiSelectbox.class.php | +5 | −4 | Go to diff View file |
M | plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_OpenList.class.php | +5 | −4 | Go to diff View file |
M | plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_PermissionsOnArtifact.class.php | +9 | −4 | Go to diff View file |
M | plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_Selectbox.class.php | +5 | −6 | Go to diff View file |
M | plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_String.class.php | +1 | −1 | Go to diff View file |
M | plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_Text.class.php | +29 | −1 | Go to diff View file |
M | plugins/tracker/include/autoload.php | +3 | −2 | Go to diff View file |
A | plugins/tracker/tests/REST_Backend/Artifact/ArtifactValidatorTestPHP53.php | +188 | −0 | Go to diff View file |
M | plugins/tracker/tests/Tracker_FormElement_FieldTest.php | +65 | −5 | Go to diff View file |
M | plugins/tracker/tests/Tracker_FormElement_Field_ArtifactLinkTest.php | +31 | −4 | Go to diff View file |
M | plugins/tracker/tests/Tracker_FormElement_Field_DateTest.php | +17 | −4 | Go to diff View file |
M | plugins/tracker/tests/Tracker_FormElement_Field_FileTest.php | +29 | −5 | Go to diff View file |
M | plugins/tracker/tests/Tracker_FormElement_Field_FloatTest.php | +18 | −5 | Go to diff View file |
M | plugins/tracker/tests/Tracker_FormElement_Field_IntegerTest.php | +18 | −5 | Go to diff View file |
M | plugins/tracker/tests/Tracker_FormElement_Field_ListTest.php | +14 | −2 | Go to diff View file |
M | plugins/tracker/tests/Tracker_FormElement_Field_MultiSelectboxTest.php | +26 | −2 | Go to diff View file |
M | plugins/tracker/tests/Tracker_FormElement_Field_OpenListTest.php | +29 | −5 | Go to diff View file |
A | plugins/tracker/tests/Tracker_FormElement_Field_PermissionsOnArtifactTest.php | +46 | −0 | Go to diff View file |
M | plugins/tracker/tests/Tracker_FormElement_Field_SelectboxTest.php | +26 | −2 | Go to diff View file |
M | plugins/tracker/tests/Tracker_FormElement_Field_StringTest.php | +18 | −5 | Go to diff View file |
M | plugins/tracker/tests/Tracker_FormElement_Field_TextTest.php | +24 | −4 | Go to diff View file |
M | plugins/tracker/tests/rest/XML/ArtifactTest.php | +37 | −0 | Go to diff View file |