Include statistics section in project API for public projects
Problem to solve
Currently it seems that when requesting project information through an API, statistics is not available if you do not have permissions over that project ("reporter" permissions are enough), even when setting statistics=true
. I tested the API being authenticated.
This is strange because in UI that information is available to everyone, publicly, for public projects.
Intended users
Anyone using the API who is interested in statistics.
Proposal
Make "statistics" simply public and available for all public projects.
Permissions and Security
Statistics information is not sensitive and for public repositories is already available through other means, but much less efficiently (one could clone a repository to obtain commit count, sizes, or fetch all artifacts).