stable
Clone or download
Read-only
request #20109 Pullrequest reviewers REST endpoint can throw an unhandled exception
Given a private project, with a Git repository and a pullrequest. If I add a project member as a reviewer of the pullrequest, and then remove him/her as a project member, then the API endpoint pull_requests/:id/reviewers returns an error 500. Change-Id: Ib6fac8cf506e584785081cb26d9cd3d4913deae2
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/pullrequest/include/PullRequest/Reviewer/ReviewerRetriever.php | +2 | −1 | Go to diff View file |
M | plugins/pullrequest/include/PullRequest/Reviewer/ReviewerUpdater.php | +2 | −1 | Go to diff View file |
M | plugins/pullrequest/tests/unit/Reviewer/ReviewerRetrieverTest.php | +42 | −0 | Go to diff View file |
M | plugins/pullrequest/tests/unit/Reviewer/ReviewerUpdaterTest.php | +48 | −0 | Go to diff View file |