Being both a CODEOWNER and reviewer results in MR not showing in filter list
Summary
Let's say that I'm a CODEOWNER for Project A. If someone opens a Merge Request for that project and adds me as an approver through an approval rule on the merge request, that Merge Request won't show up in my list of merge requests. To get the list of Merge Requests where I'm an approver I use: https://gitlab.com/dashboard/merge_requests?scope=all&utf8=%E2%9C%93&state=opened&approver_usernames[]=dcaixinha
If I get removed as an approver from that Merge Request (and stay just as a CODEOWNER) the MR appears on that same list.
Steps to reproduce
- Open a Merge Request in Project A, where User X is a CODEOWNER
- Add User X as an approver with approval rules on the Merge Request of Project A
- Try to get the list of Merge Requests where User X is an approver with https://gitlab.com/dashboard/merge_requests?scope=all&utf8=%E2%9C%93&state=opened&approver_usernames[]=<user_x_username>
- Check that the Merge Request doesn't show up on that list
- Remove the user as an approver of Merge Request in Project A
- Check that the Merge Request now appears on the list of User X https://gitlab.com/dashboard/merge_requests?scope=all&utf8=%E2%9C%93&state=opened&approver_usernames[]=<user_x_username>
Example Project
Can't run on GitLab.com as I need access to Merge Request Approvals (and I only have that on my work paid plan).
What is the current bug behavior?
Merge Request isn't showing up on the list.
What is the expected correct behavior?
Merge Request showing up on the list.
Relevant logs and/or screenshots
Can't take as I can't reproduce this on GitLab.com (due to free plan limitations – this however happens at my work plan).
Output of checks
Can't take as I can't reproduce this on GitLab.com (due to free plan limitations – this however happens at my work plan).
Possible fixes
Don't know.
This is happening running GitLab 12.7 self-hosted.