#4057 Pagination broken for requests/filed
Closed: Fixed 5 years ago Opened 5 years ago by psss.

For the following query there are just 17 results (fit on one page):

https://pagure.io/api/0/user/psss/requests/filed?status=all

But pagination suggests there are more pages to fetch:

"pagination": {
    "first": "https://pagure.io/api/0/user/psss/requests/filed?status=all&page=1&per_page=20",
    "last": "https://pagure.io/api/0/user/psss/requests/filed?status=all&page=12&per_page=20",
    "next": "https://pagure.io/api/0/user/psss/requests/filed?status=all&page=2&per_page=20",
    "page": 1,
    "pages": 12,
    "per_page": 20,
    "prev": null
},

There should be just one page and the next link should be null.


hm, this is annoying and I can't quite reproduce it locally right now

Metadata Update from @pingou:
- Issue tagged with: bug

5 years ago

Have you used all as status? The issue appears only when it is provided.

Metadata Update from @pingou:
- Issue assigned to pingou

5 years ago

I could not quite replicate it but I think I found the bug

Metadata Update from @pingou:
- Issue set to the milestone: 5.2

5 years ago

Metadata Update from @pingou:
- Assignee reset

5 years ago

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #4068 Merged 5 years ago