stable

Clone or download

Read-only

feat: Make possible to sort pull requests in a specific order

A query parameter is added to the REST endpoint to choose the order in which you want to retrieve the PRs. Part of story #35820: Pull request new home page - Sort Fixes request #36823: PR should listed, latest first in new homepage Change-Id: I64d6128c251f7dfe04013a2b7a6700900c8772d9

Modified Files

Name
A plugins/pullrequest/include/PullRequest/Criterion/PullRequestSortOrder.php +29 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/Dao.php +15 −2 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/RepositoryPullRequests/GETHandler.php +7 −5 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/RepositoryResource.php +5 −3 Go to diff View file
M plugins/pullrequest/include/PullRequest/SearchPaginatedPullRequests.php +8 −1 Go to diff View file
M plugins/pullrequest/tests/integration/DaoTest.php +41 −9 Go to diff View file
M plugins/pullrequest/tests/unit/REST/v1/RepositoryPullRequests/GETHandlerTest.php +1 −0 Go to diff View file
M plugins/pullrequest/tests/unit/Tests/Stub/SearchPaginatedPullRequestsStub.php +2 −1 Go to diff View file