stable

Clone or download

Read-only

story #8206: "values by field" for GET on /artifacts/:id returns full REST value

Removed SimpleRESTValues, we always return the complete RESTValue (in order to be consistent with the other format). Renamed the "flat_array" option to "collection". Example in XML: <values_by_field> <title> <field_id>1369</field_id> <type>string</type> <label>Title</label> <value>Lorem ipsum dolor sit amet</value> </title> <remaining_effort> <field_id>1368</field_id> <type>int</type> <label>Remaining Effort</label> <value>1447</value> </remaining_effort> </values_by_field> Change-Id: I3ee1920f87bb3c1c6957a508be9e97159dc33d5d

Modified Files

Name
M plugins/tracker/include/REST/Artifact/ArtifactRepresentationBuilder.class.php +9 −19 Go to diff View file
M plugins/tracker/include/REST/v1/ArtifactsResource.class.php +49 −5 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_ChangesetValue.class.php +0 −17 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_ChangesetValue_ArtifactLink.class.php +0 −4 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_ChangesetValue_Date.class.php +0 −9 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_ChangesetValue_File.class.php +0 −4 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_ChangesetValue_Float.class.php +0 −5 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_ChangesetValue_Integer.class.php +0 −4 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_ChangesetValue_List.class.php +0 −9 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_ChangesetValue_Numeric.class.php +0 −4 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_ChangesetValue_PermissionsOnArtifact.class.php +0 −4 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_ChangesetValue_String.class.php +0 −4 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_ChangesetValue_Text.class.php +0 −9 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field.class.php +0 −9 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List_Value.class.php +0 −9 Go to diff View file
M plugins/tracker/tests/REST_Backend/Artifact/ArtifactRepresentationBuilderTestPHP53.php +14 −11 Go to diff View file
M plugins/tracker/tests/Tracker_Artifact_ChangesetValue_DateTest.php +0 −10 Go to diff View file
M plugins/tracker/tests/Tracker_Artifact_ChangesetValue_FloatTest.php +13 −6 Go to diff View file
M plugins/tracker/tests/Tracker_Artifact_ChangesetValue_IntegerTest.php +13 −6 Go to diff View file
M plugins/tracker/tests/Tracker_Artifact_ChangesetValue_ListTest.php +0 −49 Go to diff View file
M plugins/tracker/tests/Tracker_Artifact_ChangesetValue_OpenListTest.php +0 −39 Go to diff View file
M plugins/tracker/tests/Tracker_Artifact_ChangesetValue_StringTest.php +11 −9 Go to diff View file
M plugins/tracker/tests/Tracker_Artifact_ChangesetValue_TextTest.php +18 −13 Go to diff View file
M plugins/tracker/tests/rest/XML/ArtifactTest.php +2 −6 Go to diff View file