stable

Clone or download

Read-only

Add fields and tracker permissions into TrackerRepresentation

This is only accessible to Tracker Administrators. It's mainly useful to compute permissions outside Tuleap context (integration). Part of story #13654 have detailed permissions in REST API. Change-Id: I6fc4df93c4aac27f82a0310d9fc0812f0edc5c52

Modified Files

Name
M plugins/timetracking/include/Timetracking/REST/v1/ProjectResource.php +21 −7 Go to diff View file
M plugins/tracker/include/REST/CompleteTrackerRepresentation.class.php +8 −1 Go to diff View file
M plugins/tracker/include/REST/ContainerFieldsetInArtifactContextRepresentation.php +3 −1 Go to diff View file
M plugins/tracker/include/REST/FieldDateRepresentation.class.php +4 −2 Go to diff View file
M plugins/tracker/include/REST/FieldOpenListRepresentation.class.php +4 −2 Go to diff View file
M plugins/tracker/include/REST/FormElement/FieldFileRepresentation.php +2 −2 Go to diff View file
A plugins/tracker/include/REST/FormElement/PermissionsForGroupsBuilder.php +111 −0 Go to diff View file
A plugins/tracker/include/REST/FormElement/PermissionsForGroupsRepresentation.php +47 −0 Go to diff View file
M plugins/tracker/include/REST/FormElementRepresentation.class.php +11 −1 Go to diff View file
M plugins/tracker/include/REST/FormElementRepresentationsBuilder.php +17 −5 Go to diff View file
A plugins/tracker/include/REST/Tracker/PermissionsRepresentation.php +57 −0 Go to diff View file
A plugins/tracker/include/REST/Tracker/PermissionsRepresentationBuilder.php +90 −0 Go to diff View file
M plugins/tracker/include/REST/TrackerRestBuilder.class.php +10 −2 Go to diff View file
M plugins/tracker/include/REST/v1/ArtifactsResource.class.php +21 −7 Go to diff View file
M plugins/tracker/include/REST/v1/ProjectTrackersResource.class.php +21 −7 Go to diff View file
M plugins/tracker/include/REST/v1/TrackerFieldsResource.php +2 −1 Go to diff View file
M plugins/tracker/include/REST/v1/TrackersResource.class.php +39 −14 Go to diff View file
A plugins/tracker/include/Tracker/PermissionsFunctionsWrapper.php +41 −0 Go to diff View file
A plugins/tracker/phpunit/REST/FormElement/PermissionsForGroupsBuilderTest.php +371 −0 Go to diff View file
M plugins/tracker/phpunit/REST/FormElementRepresentationsBuilderTest.php +11 −3 Go to diff View file
A plugins/tracker/phpunit/REST/Tracker/PermissionsRepresentationBuilderTest.php +285 −0 Go to diff View file
M src/common/Project/REST/UserGroupRepresentation.class.php +6 −3 Go to diff View file
M tests/rest/_fixtures/01-private-member/project.xml +2 −0 Go to diff View file
M tests/rest/tests/TrackersTest.php +101 −0 Go to diff View file