Commit graph

6 commits

Author SHA1 Message Date
Nick Kipling
476f095548 Implemented frontend suggestions
Converted storage details into a small partial
Reworded the storage details summary as suggested
Updated pot file
2019-07-09 13:43:53 +00:00
Peter Marko
40490cc492 Add wiki size to project statistics 2019-05-29 16:08:25 +02:00
Alessio Caiazza
d9b383cc36 Add packages_size to ProjectStatistics
This new field will allow to keep track of the storage used by the
packages features, it provides also aggregation at namespace level.
2019-05-02 16:04:15 +00:00
Jasper Maes
56296f1eda Remove rails4 specific code 2018-12-16 10:48:41 +01:00
blackst0ne
9a37ef438e [Rails5] Fix storage_counter helper
Since rails 5 beta 2 support of petabytes and exabytes were added to the
`number_to_human*` methods.
See https://github.com/rails/rails/pull/22759

So for rails5 the comma separator gets shown for big numbers (EBs).
2018-06-13 19:39:47 +11:00
Markus Koller
3ef4f74b1a
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.
2016-12-21 16:39:49 +01:00