stable

Clone or download

Read-only

feat: introduce GET /git/:id/pull_requests_authors

part of story #35821 Pull request new home page - Filter on Authors This contribution introduces a new REST route to get all the pull-requests authors in a given git repository. It returns a paginated collection of MinimalUserRepresentation. How to test: - Call `GET /git/:id/pull_requests_authors` --> The payload contains a collection of MinimalUserRepresentations --> It also contains the total of distinct authors in the repository Change-Id: I30e815cfedaa743a6be9d99f009f5811a0e6c7ad

Modified Files

Name
M plugins/git/tests/rest/Git/RepositoryTest.php +23 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/Dao.php +27 −1 Go to diff View file
A plugins/pullrequest/include/PullRequest/PullRequestsAuthorsIdsPage.php +36 −0 Go to diff View file
A plugins/pullrequest/include/PullRequest/REST/v1/Authors/GETHandler.php +62 −0 Go to diff View file
A plugins/pullrequest/include/PullRequest/REST/v1/Authors/RepositoryPullRequestsAuthorsRepresentation.php +38 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/FaultMapper.php +2 −1 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/RepositoryResource.php +48 −0 Go to diff View file
A plugins/pullrequest/include/PullRequest/REST/v1/UserNotFoundFault.php +36 −0 Go to diff View file
A plugins/pullrequest/include/PullRequest/SearchPaginatedPullRequestsAuthors.php +26 −0 Go to diff View file
A plugins/pullrequest/tests/unit/REST/v1/Authors/GETHandlerTest.php +90 −0 Go to diff View file
M plugins/pullrequest/tests/unit/REST/v1/FaultMapperTest.php +2 −0 Go to diff View file
A plugins/pullrequest/tests/unit/Tests/Stub/SearchPaginatedPullRequestsAuthorsStub.php +51 −0 Go to diff View file