-
- Downloads
There was an error fetching the commit references. Please try again later.
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
- app/controllers/admin/groups_controller.rb 4 additions, 3 deletionsapp/controllers/admin/groups_controller.rb
- app/controllers/admin/projects_controller.rb 1 addition, 1 deletionapp/controllers/admin/projects_controller.rb
- app/controllers/groups_controller.rb 1 addition, 1 deletionapp/controllers/groups_controller.rb
- app/helpers/projects_helper.rb 0 additions, 5 deletionsapp/helpers/projects_helper.rb
- app/helpers/sorting_helper.rb 10 additions, 1 deletionapp/helpers/sorting_helper.rb
- app/helpers/storage_helper.rb 7 additions, 0 deletionsapp/helpers/storage_helper.rb
- app/models/ci/build.rb 6 additions, 0 deletionsapp/models/ci/build.rb
- app/models/group.rb 7 additions, 1 deletionapp/models/group.rb
- app/models/lfs_objects_project.rb 9 additions, 0 deletionsapp/models/lfs_objects_project.rb
- app/models/namespace.rb 13 additions, 0 deletionsapp/models/namespace.rb
- app/models/project.rb 12 additions, 10 deletionsapp/models/project.rb
- app/models/project_statistics.rb 43 additions, 0 deletionsapp/models/project_statistics.rb
- app/services/git_push_service.rb 1 addition, 1 deletionapp/services/git_push_service.rb
- app/services/git_tag_push_service.rb 1 addition, 1 deletionapp/services/git_tag_push_service.rb
- app/views/admin/groups/_group.html.haml 3 additions, 0 deletionsapp/views/admin/groups/_group.html.haml
- app/views/admin/groups/index.html.haml 2 additions, 0 deletionsapp/views/admin/groups/index.html.haml
- app/views/admin/groups/show.html.haml 16 additions, 4 deletionsapp/views/admin/groups/show.html.haml
- app/views/admin/projects/index.html.haml 2 additions, 2 deletionsapp/views/admin/projects/index.html.haml
- app/views/admin/projects/show.html.haml 10 additions, 3 deletionsapp/views/admin/projects/show.html.haml
- app/views/groups/projects.html.haml 2 additions, 2 deletionsapp/views/groups/projects.html.haml
app/helpers/storage_helper.rb
0 → 100644
app/models/project_statistics.rb
0 → 100644
Please register or sign in to comment