stable

Clone or download

Read-only

feat: Add a "really flat" output format to the GET /tracker_reports/:id/artifacts REST endpoint

A new choice to the `output_format` parameter is added. Implements story #37218 output flat json with semicolon separated lists Change-Id: I2c0ef2138fa2e80150532d0e825bb985846fb006

Modified Files

Name
A plugins/tracker/include/REST/Artifact/FlatArtifactListValueLabelArrayTransformer.php +42 −0 Go to diff View file
A plugins/tracker/include/REST/Artifact/FlatArtifactListValueLabelFlatStringTransformer.php +68 −0 Go to diff View file
A plugins/tracker/include/REST/Artifact/FlatArtifactListValueLabelTransformer.php +36 −0 Go to diff View file
M plugins/tracker/include/REST/Artifact/FlatArtifactRepresentationTransformer.php +41 −10 Go to diff View file
M plugins/tracker/include/REST/v1/ReportsResource.class.php +9 −3 Go to diff View file
M plugins/tracker/tests/rest/Report/TrackerReportTest.php +13 −1 Go to diff View file
A plugins/tracker/tests/unit/REST/Artifact/FlatArtifactListValueLabelArrayTransformerTest.php +41 −0 Go to diff View file
A plugins/tracker/tests/unit/REST/Artifact/FlatArtifactListValueLabelFlatStringTransformerTest.php +55 −0 Go to diff View file
M plugins/tracker/tests/unit/REST/Artifact/FlatArtifactRepresentationTransformerTest.php +38 −2 Go to diff View file