stable

Clone or download

Read-only

Add a scope and format to /users/:id/membership route

This change is part of story #14019: automate jenkins job creation & run In order to test: * Checkout this commit * Go to the API explorer for /users/:id/membership and play with the two new selectboxes * "scope=project" alone should not show you things from platform level (ie: site_active) * "scope=project&format=id" should show you group ids instead of group names Change-Id: Iea95d89943b61c8fce79ff1ca3d6ab160d7a34c2

Modified Files

Name
M src/common/Project/UGroupLiteralizer.class.php +60 −14 Go to diff View file
M src/common/User/REST/v1/UserResource.php +42 −7 Go to diff View file
M tests/rest/tests/UsersTest.php +29 −0 Go to diff View file
M tests/unit/common/Project/UGroupLiteralizerTest.php +46 −0 Go to diff View file