stable

Clone or download

Read-only

feat: be able to filter on reviewers in REST route

part of story #35822 Pull request new home page - Filter on Reviewer How to test: - Using the api explorer, query `GET /git/:id/pull_requests` with `query={"reviewers": [{"id": int}]}` where `id` is the id of the reviewer. --> All the pull-requests where this user is reviewer are returned Change-Id: Ic873f379a877d7bdd3a2b213d340eda4a69fca5d

Modified Files

Name
A plugins/pullrequest/include/PullRequest/Criterion/ReviewerCriterion.php +30 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/Criterion/SearchCriteria.php +2 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/Dao.php +23 −2 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/RepositoryPullRequests/QueryToSearchCriteriaConverter.php +4 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/RepositoryResource.php +3 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/Reviewer/ReviewerDAO.php +1 −0 Go to diff View file
M plugins/pullrequest/tests/integration/DaoTest.php +38 −0 Go to diff View file
M plugins/pullrequest/tests/unit/REST/v1/RepositoryPullRequests/QueryToSearchCriteriaConverterTest.php +22 −0 Go to diff View file