fix(project): don't request statistics
Description
In #7425 (closed) and #1207 (closed) a number of users cannot use glab because the project api is returning a string rather than an int for project statistics on their self-managed instances. This is unexpected and out of the control of glab. Many commands get a project and by default we request project statistics. The statistics are not used or displayed anywhere in glab so this MR changes the default command to get projects to not include statistics.
As discussed in #7425 (comment 1830259818) we decided to not get the statistics by default.
Note: by default the gitlab api doesn't return statistics
Statistics can be retrieved still by doing:
glab api https://gitlab.com/api/v4/projects/52612795\?statistics\=true
Related Issues
Resolves #7425 (closed)
How has this been tested?
Unit tests updated
Screenshots (if appropriate):
Types of changes
-
Bug fix (non-breaking change which fixes an issue) -
New feature (non-breaking change which adds functionality) -
Breaking change (fix or feature that would cause existing functionality to change) -
Documentation -
Chore (Related to CI or Packaging to platforms) -
Test gap
Edited by Jay McCure