stable

Clone or download

Read-only

feat: filter PRs related to a specific user

story #35823 Pull request new home page - Filter on Related to me How to test: - Using the api explorer, query `GET /git/:id/pull_requests` with `query={"related_to": [{"id": int}]}` where id is a user id. --> All the pull-requests whose author OR reviewer is the provided user are returned. - Try to filter on multiple users --> You get an error - Try to filter on related_to + the authors filter --> You get an error - Try to filter on related_to + the reviewers filter --> You get an error Change-Id: I8ef7f8715d1e4894d4cfbfb07888b18fea5eda12

Modified Files

Name
M plugins/pullrequest/include/PullRequest/Criterion/MalformedQueryFault.php +5 −0 Go to diff View file
A plugins/pullrequest/include/PullRequest/Criterion/RelatedToCriterion.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 +19 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/RepositoryPullRequests/QueryToSearchCriteriaConverter.php +32 −13 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/RepositoryResource.php +5 −0 Go to diff View file
M plugins/pullrequest/tests/integration/DaoTest.php +53 −3 Go to diff View file
M plugins/pullrequest/tests/unit/REST/v1/RepositoryPullRequests/QueryToSearchCriteriaConverterTest.php +55 −0 Go to diff View file