stable

Clone or download

Read-only

feat: Return allowed link types in link field representation

part of: story #24969 [modal] add and remove links without types How to test: - Using the API explorer, query `GET trackers/:id` with a tracker having a link field --> There is a key `allowed_types` in the link field representation containing the link types allowed in the project. Change-Id: Ib270e8dcaaa414d36d98ca09379f294bb96eab3b

Modified Files

Name
M plugins/timetracking/include/Timetracking/REST/v1/ProjectResource.php +7 −0 Go to diff View file
A plugins/tracker/include/REST/FormElement/LinksFieldRepresentation.php +107 −0 Go to diff View file
M plugins/tracker/include/REST/FormElementRepresentation.class.php +1 −1 Go to diff View file
M plugins/tracker/include/REST/FormElementRepresentationsBuilder.php +11 −0 Go to diff View file
M plugins/tracker/include/REST/v1/ArtifactsResource.class.php +4 −0 Go to diff View file
M plugins/tracker/include/REST/v1/ProjectTrackersResource.class.php +7 −0 Go to diff View file
M plugins/tracker/include/REST/v1/TrackersResource.class.php +57 −92 Go to diff View file
A plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/Type/TypeRepresentation.php +49 −0 Go to diff View file
M plugins/tracker/tests/unit/REST/FormElementRepresentationsBuilderTest.php +3 −1 Go to diff View file
A plugins/tracker/tests/unit/Stub/RetrieveAllUsableTypesInProjectStub.php +40 −0 Go to diff View file
A plugins/tracker/tests/unit/Tracker/REST/FormElement/LinksFieldRepresentationTest.php +84 −0 Go to diff View file