-
- 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
- app/views/projects/show.html.haml 2 additions, 2 deletionsapp/views/projects/show.html.haml
- app/workers/project_cache_worker.rb 12 additions, 11 deletionsapp/workers/project_cache_worker.rb
- changelogs/unreleased/feature-more-storage-statistics.yml 4 additions, 0 deletionschangelogs/unreleased/feature-more-storage-statistics.yml
- config/initializers/inflections.rb 1 addition, 1 deletionconfig/initializers/inflections.rb
- db/migrate/20161201155511_create_project_statistics.rb 20 additions, 0 deletionsdb/migrate/20161201155511_create_project_statistics.rb
- db/migrate/20161201160452_migrate_project_statistics.rb 23 additions, 0 deletionsdb/migrate/20161201160452_migrate_project_statistics.rb
- db/schema.rb 14 additions, 2 deletionsdb/schema.rb
- doc/administration/build_artifacts.md 6 additions, 0 deletionsdoc/administration/build_artifacts.md
- doc/api/groups.md 7 additions, 1 deletiondoc/api/groups.md
- doc/api/projects.md 4 additions, 0 deletionsdoc/api/projects.md
- doc/workflow/lfs/lfs_administration.md 8 additions, 0 deletionsdoc/workflow/lfs/lfs_administration.md
- lib/api/entities.rb 19 additions, 0 deletionslib/api/entities.rb
- lib/api/groups.rb 18 additions, 3 deletionslib/api/groups.rb
- lib/api/helpers.rb 1 addition, 1 deletionlib/api/helpers.rb
- lib/api/projects.rb 43 additions, 37 deletionslib/api/projects.rb
- lib/tasks/gitlab/import.rake 1 addition, 2 deletionslib/tasks/gitlab/import.rake
- spec/factories/lfs_objects.rb 1 addition, 1 deletionspec/factories/lfs_objects.rb
- spec/factories/project_statistics.rb 6 additions, 0 deletionsspec/factories/project_statistics.rb
- spec/helpers/storage_helper_spec.rb 21 additions, 0 deletionsspec/helpers/storage_helper_spec.rb
- spec/lib/gitlab/import_export/all_models.yml 1 addition, 0 deletionsspec/lib/gitlab/import_export/all_models.yml
spec/factories/project_statistics.rb
0 → 100644
spec/helpers/storage_helper_spec.rb
0 → 100644
Please register or sign in to comment