#3101 Fix the user's requests page
Merged by pingou. Opened by pingou.
fix_user_request_page  into  master

Download 3101.patch

We used to include the projects in which an user had opened at one point
a pull-request in, this lead to a lot of false positive.
Now we're being strickter about when retrieving the list of projects
and adding the pull-requests that the used opened in a second step.

So the logic is something like:
- Get all the projects the user is involved in (direct access or via a
group)
- Get all the PRs in these projects + all the PRs opened by that user
- Group them all into one final query that is then ordered/filtered as
desired

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

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

rebased onto 2bf7a23368c8bf539d4a5f207867be5e1ff8d638

1 new commit added

  • Add unit-tests ensuring the fix to the user's requests page stays

:thumbsup:

Thanks ! :)

rebased onto 7aaf05739ba702274cf0ee73df530b08c57b579c

Pull-Request has been merged by pingou

Metadata