stable

Clone or download

Read-only

The reviewers of a pull-request can be retrieved via the REST API

A new REST route is available for this operation: GET /pull_requests/{id}/reviewers. Since the counterpart REST route to set reviewers on a pull-request is not yet available to test you need to manually insert tuples <pr_id, user_id> in the new DB table. Part of story #14190: get email notifications on pull requests - first stage Change-Id: I920c76afafeb56726b82ffed1d5d823292013d4f

Modified Files

Name
M plugins/pullrequest/db/install.sql +6 −0 Go to diff View file
A plugins/pullrequest/db/mysql/updates/2019/201911201100_add_table_reviewer_user.php +45 −0 Go to diff View file
M plugins/pullrequest/db/uninstall.sql +1 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/PullRequestsResource.php +58 −7 Go to diff View file
A plugins/pullrequest/include/PullRequest/REST/v1/Reviewer/ReviewersRepresentation.php +56 −0 Go to diff View file
A plugins/pullrequest/include/PullRequest/Reviewer/ReviewerDAO.php +39 −0 Go to diff View file
A plugins/pullrequest/include/PullRequest/Reviewer/ReviewerRetriever.php +60 −0 Go to diff View file
A plugins/pullrequest/phpunit/Reviewer/ReviewerRetrieverTest.php +84 −0 Go to diff View file
A plugins/pullrequest/tests/integration/ReviewerDAOTest.php +37 −0 Go to diff View file
A plugins/pullrequest/tests/rest/PullRequest/PullRequestsReviewersTest.php +36 −0 Go to diff View file