Merge request approvals API endpoint does not show top-level group inherited settings
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
There are 2 ways of setting merge request approval settings:
- on the project level
- on the top-level group
Both have an api endpoint to check the settings (https://docs.gitlab.com/ee/api/merge_request_approvals.html), the top-level group endpoint still being experimental as of now.
Expected result:
When a user sets the setting on the top-level group, the expectation is that on the project-level API endpoint, you could see the inherited settings, because in reality, these settings apply to the project.
Current result:
The project-level api endpoint does not show that merge request approval settings have been enabled if these settings were only enabled on the top level group.
Steps to reproduce:
- enable merge request approval settings (https://docs.gitlab.com/ee/user/project/merge_requests/approvals/) only on a top-level group
- use the project api endpoint to see that these settings are not reflected (https://docs.gitlab.com/ee/api/merge_request_approvals.html)