Merge request approvals API empty response

Summary

After setting 'Merge request approvals' via the UI and attempting to query for them results in an empty json response.

{
  "approvers": [],
  "approver_groups": [],
  "approvals_before_merge": 0,
  "reset_approvals_on_push": true,
  "disable_overriding_approvers_per_merge_request": null,
  "merge_requests_author_approval": null
}

Steps to reproduce

  1. Add Group/Users to merge request approvals
  2. Query API for project
curl -X GET --header "PRIVATE-TOKEN: $TOKEN" "https://gitlab.com/api/v4/projects/10947768/approvals"

approvals

This test project on gitlab.com results in the above empty response. Even though there is a rppvoal with users.

Reproduced on test 12.1.4 test instance, gitlab.com and reported by customer on 11.11.0.

Example Project

https://gitlab.com/davinwalker/private-test

What is the current bug behavior?

OK Response without any content.

What is the expected correct behavior?

Respond with the users/groups configured for approval.

Internal ZD