-
- Downloads
Add more storage statistics
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.
Showing
- spec/models/ci/build_spec.rb 26 additions, 0 deletionsspec/models/ci/build_spec.rb
- spec/models/lfs_objects_project_spec.rb 36 additions, 0 deletionsspec/models/lfs_objects_project_spec.rb
- spec/models/namespace_spec.rb 45 additions, 0 deletionsspec/models/namespace_spec.rb
- spec/models/project_spec.rb 21 additions, 0 deletionsspec/models/project_spec.rb
- spec/models/project_statistics_spec.rb 160 additions, 0 deletionsspec/models/project_statistics_spec.rb
- spec/requests/api/groups_spec.rb 33 additions, 0 deletionsspec/requests/api/groups_spec.rb
- spec/requests/api/projects_spec.rb 43 additions, 1 deletionspec/requests/api/projects_spec.rb
- spec/services/git_push_service_spec.rb 2 additions, 2 deletionsspec/services/git_push_service_spec.rb
- spec/workers/project_cache_worker_spec.rb 20 additions, 22 deletionsspec/workers/project_cache_worker_spec.rb
spec/models/lfs_objects_project_spec.rb
0 → 100644
spec/models/project_statistics_spec.rb
0 → 100644
Please register or sign in to comment