stable

Clone or download

Read-only

feat: filter on target branches in REST route

part of story #35824 Pull request new home page - Filter on Target branch How to test: - Using the api explorer, query `GET /git/:id/pull_requests` with `query={"target_branches": [{"name": string}]}` --> All the pull-requesst whose target branch matches the provided branch name are returned. - Query the route again, but with two branches --> You get an error saying you cannot query the route with two branches Change-Id: I82d886fdcfa41f03b2109c23a71cb2d0a2b9c663

Modified Files

Name
M plugins/pullrequest/include/PullRequest/Criterion/SearchCriteria.php +2 −0 Go to diff View file
A plugins/pullrequest/include/PullRequest/Criterion/TargetBranchCriterion.php +30 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/Dao.php +8 −0 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/tests/integration/DaoTest.php +28 −0 Go to diff View file
M plugins/pullrequest/tests/unit/REST/v1/RepositoryPullRequests/QueryToSearchCriteriaConverterTest.php +22 −0 Go to diff View file