stable

Clone or download

Read-only

Have an endpoint to find potential reviewers of a pull request

The autocompleter now only returns users that can actually be added as reviewers. You can test it by calling directly GET /plugins/pullrequest/autocompleter_reviewers/{pull_request_id}?name={name_to_search} or by playing with the autocompleter. Part of story #14190: get email notifications on pull requests - first stage Change-Id: Idcaa6d8f78a172d53e4e240bf1c03ecb4dfd33f7

Modified Files

Name
A plugins/pullrequest/include/PullRequest/Reviewer/Autocompleter/PotentialReviewerRetriever.php +105 −0 Go to diff View file
A plugins/pullrequest/include/PullRequest/Reviewer/Autocompleter/ReviewerAutocompleterController.php +131 −0 Go to diff View file
A plugins/pullrequest/include/PullRequest/Reviewer/Autocompleter/UsernameToSearch.php +59 −0 Go to diff View file
A plugins/pullrequest/include/PullRequest/Reviewer/Autocompleter/UsernameToSearchTooSmallException.php +53 −0 Go to diff View file
M plugins/pullrequest/include/pullrequestPlugin.php +49 −15 Go to diff View file
A plugins/pullrequest/phpunit/Reviewer/Autocompleter/PotentialReviewerRetrieverTest.php +139 −0 Go to diff View file
A plugins/pullrequest/phpunit/Reviewer/Autocompleter/ReviewerAutocompleterControllerTest.php +175 −0 Go to diff View file
A plugins/pullrequest/phpunit/Reviewer/Autocompleter/UsernameToSearchTest.php +43 −0 Go to diff View file
M plugins/pullrequest/www/scripts/src/app/overview/reviewers/reviewers-rest-service.js +6 −2 Go to diff View file
M plugins/pullrequest/www/scripts/src/app/overview/reviewers/reviewers-service.test.js +2 −2 Go to diff View file
M plugins/pullrequest/www/scripts/src/app/overview/reviewers/update-reviewers-modal/update-reviewers-modal-controller.js +1 −1 Go to diff View file
A src/common/Http/Response/JSONResponseBuilder.php +61 −0 Go to diff View file
M src/common/dao/UserDao.class.php +5 −1 Go to diff View file
A tests/phpunit/common/Http/Response/JSONResponseBuilderTest.php +54 −0 Go to diff View file