#4068 When querying the number of PR filed/actionable, apply this filter
Merged by pingou. Opened by pingou.
fix_pr_count  into  master

Download 4068.patch

When querying in the API the PR filed/actionable by someone we do two
queries:
- The first one returned the total number of PRs filed/actionable
- The second one queries the PRs in the range asked for

The issue was that the filed/actionable filter applied in the second
query wasn't applied in the first, resulting in a discrepancy between
the pagination and the number of PRs returned.

Fixes https://pagure.io/pagure/issue/4057

Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr

:thumbsup:

thanks for the review :)

rebased onto 13b47e66590da6ff91982aade99c4a2cfffbbc92

Pull-Request has been merged by pingou

Metadata