Resolve "Allow filtering by `approved_by_usernames` in Group Merge Requests API"
requested to merge 362722-allow-filtering-by-approved_by_username-in-group-merge-requests-api into master
What does this MR do and why?
Allow approved_by_usernames to be used in merge request apis
To test:
- First find a group with merge requests
- Choose a merge request and check that the current user has no approved it
- Send a request with your token and group id, it should return empty
- curl --request GET -H "PRIVATE-TOKEN: XX" "http://localhost:3000/api/v4/groups/xx/merge_requests" -F "approved_by_usernames[]=root"
- Approve merge request, and rerun the request, and now it should return the MR
Related to #362722 (closed)
Edited by Marc Shaw