Group API Shared Runner Limit Empty
Summary
When getting group details the shared_runners_minutes_limit and extra_shared_runners_minutes_limit is empty. Reproduced on v13.0.0 and Gitlab.com
Steps to reproduce
Visible within public Gitlab.com groups as well. Gitlab.orb
curl -k -X GET -H "Private-Token: $TOKEN" "https://gitlab.test.env/api/v4/groups/59"
{
...
"shared_runners_minutes_limit": null,
"extra_shared_runners_minutes_limit": null
}
What is the current bug behavior?
nil/null response for shared_runners_minutes_limit and extra_shared_runners_minutes_limit
What is the expected correct behavior?
Return correct minutes used
Possible fixes
It looks like the 'exposed' attribute is no longer an attribute on the group/namespace:
https://gitlab.com/gitlab-org/gitlab/-/blob/v13.0.3-ee/ee/lib/ee/api/entities/group_detail.rb#L10
prepended do
expose :shared_runners_minutes_limit
expose :extra_shared_runners_minutes_limit
end
Namespace attribute was moved into a Ci::Minutes::Quote object.
Edited by Davin Walker