summaryrefslogtreecommitdiff
path: root/spec/models/project_statistics_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Enable the Style/TrailingCommaInArguments copRémy Coutable2017-05-101-2/+2
| | | | | | Use the EnforcedStyleForMultiline: no_comma option. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fix Project#update_repository_size to convert MB to Bytes properly26773-fix-project-statistics-repository-sizeOswaldo Ferreira2017-01-171-1/+1
|
* Add more storage statisticsMarkus Koller2016-12-211-0/+160
This adds counters for build artifacts and LFS objects, and moves the preexisting repository_size and commit_count from the projects table into a new project_statistics table. The counters are displayed in the administration area for projects and groups, and also available through the API for admins (on */all) and normal users (on */owned) The statistics are updated through ProjectCacheWorker, which can now do more granular updates with the new :statistics argument.