stable

Clone or download

Read-only

User display name preference should be taken in account

Part of story #27191 ease search on document owner How to test: - curl -H "Cookie: <user_cookie>" https://tuleap-web.tuleap-aio-dev.docker/plugins/document/documentation-project/owners?name=<wanted_user> => The format value of the displayed name in `text` key should be the user_cookie format preference Change-Id: I3bb094543c9771a17d582f16aadc1192372d75b4

Modified Files

Name
M plugins/docman/include/Metadata/Owner/AllOwnerRetriever.php +3 −2 Go to diff View file
M plugins/docman/include/Metadata/Owner/OwnerRepresentationForAutocomplete.php +3 −2 Go to diff View file
M plugins/docman/include/docmanPlugin.php +2 −1 Go to diff View file
M plugins/docman/tests/unit/Metadata/Owner/AllOwnerRetrieverTest.php +7 −4 Go to diff View file
M plugins/docman/tests/unit/Metadata/Owner/OwnerRequestHandlerTest.php +5 −2 Go to diff View file
M plugins/docman/tests/unit/REST/v1/Folders/BuildSearchedItemRepresentationsFromSearchReportTest.php +1 −1 Go to diff View file
M plugins/pullrequest/tests/unit/REST/v1/Reviewer/ReviewerChangeTimelineEventRepresentationTest.php +2 −1 Go to diff View file
M plugins/pullrequest/tests/unit/Reviewer/Autocompleter/ReviewerAutocompleterControllerTest.php +8 −7 Go to diff View file
A src/common/User/BuildDisplayName.php +28 −0 Go to diff View file
M src/common/User/UserHelper.class.php +14 −16 Go to diff View file
A tests/lib/Stubs/BuildDisplayNameStub.php +42 −0 Go to diff View file
M tests/unit/common/User/UserImportTest.php +1 −0 Go to diff View file