Skip to content

Expose namespace statistics to the owner

Problem to solve

Our API allows fetching project statistics with reporter privilege but we provide aggregated group statistics only to instance admin.

Now that we are working on storage counters at group level gitlab-ce#59232 it will make sense to expose those values also with our API to namespace owners.

Intended users

Namespace owner: Developer or a Group owner

Further details

Proposal

Implements statistics parameter also for GET /groups/:id and for GET /users/:id

Permissions and Security

  • In order to access group statistics the user must be an owner
  • An user can only access its own user namespace statistics

Documentation

Testing

What does success look like, and how can we measure that?

Links / references

OSZAR »