stable
Clone or download
Read-only
Part of story #27191 ease search on document owner All users who are document owner are retrieved, even if they are suspended or deleted How to test: - curl https://tuleap-web.tuleap-aio-dev.docker/plugins/document/<your_project_name>/owners?name='<part_of_username>' => All retrieved users according to the `name` query parameter are returned. => If the `name` query paramater is missing or empty then, you will have a 400. => If the user cannot access to the project then, you will have a 403. Change-Id: Ib93e856a762a47e498b00d23494d374f2c152c28
Modified Files
Name | ||||
---|---|---|---|---|
A | plugins/docman/include/Metadata/Owner/AllOwnerRetriever.php | +54 | −0 | Go to diff View file |
A | plugins/docman/include/Metadata/Owner/OwnerDao.php | +47 | −0 | Go to diff View file |
A | plugins/docman/include/Metadata/Owner/OwnerData.php | +33 | −0 | Go to diff View file |
A | plugins/docman/include/Metadata/Owner/OwnerRepresentationForAutocomplete.php | +51 | −0 | Go to diff View file |
A | plugins/docman/include/Metadata/Owner/OwnerRequestHandler.php | +102 | −0 | Go to diff View file |
A | plugins/docman/include/Metadata/Owner/RetrieveAllOwner.php | +33 | −0 | Go to diff View file |
M | plugins/docman/include/docmanPlugin.php | +81 | −35 | Go to diff View file |
A | plugins/docman/tests/unit/Metadata/Owner/AllOwnerRetrieverTest.php | +94 | −0 | Go to diff View file |
A | plugins/docman/tests/unit/Metadata/Owner/OwnerRequestHandlerTest.php | +246 | −0 | Go to diff View file |
A | src/common/User/ProvideUserFromRow.php | +33 | −0 | Go to diff View file |
M | src/common/User/UserManager.class.php | +3 | −2 | Go to diff View file |
M | tests/lib/Builders/UserTestBuilder.php | +6 | −0 | Go to diff View file |
A | tests/lib/Stubs/ProvideCurrentUserStub.php | +44 | −0 | Go to diff View file |
A | tests/lib/Stubs/ProvideUserFromRowStub.php | +47 | −0 | Go to diff View file |