GitLab Bot
5231344d99
Add latest changes from gitlab-org/gitlab@master
2021-02-11 15:09:11 +00:00
GitLab Bot
c47247f7cd
Add latest changes from gitlab-org/gitlab@master
2020-12-16 21:09:57 +00:00
GitLab Bot
f1087d16f7
Add latest changes from gitlab-org/gitlab@master
2020-11-14 00:09:32 +00:00
GitLab Bot
6cf9209f12
Add latest changes from gitlab-org/gitlab@master
2020-09-19 15:09:58 +00:00
GitLab Bot
dc86d5615e
Add latest changes from gitlab-org/gitlab@master
2020-09-18 12:09:50 +00:00
GitLab Bot
497b731521
Add latest changes from gitlab-org/gitlab@master
2020-09-03 03:08:12 +00:00
GitLab Bot
9b14160725
Add latest changes from gitlab-org/gitlab@master
2020-08-24 18:10:19 +00:00
GitLab Bot
4b9bde7848
Add latest changes from gitlab-org/gitlab@master
2020-08-24 12:10:17 +00:00
GitLab Bot
21341457a8
Add latest changes from gitlab-org/gitlab@master
2020-07-08 09:09:17 +00:00
GitLab Bot
a93bf027c2
Add latest changes from gitlab-org/gitlab@master
2020-07-07 15:08:49 +00:00
GitLab Bot
ce06ce825b
Add latest changes from gitlab-org/gitlab@master
2020-07-06 15:08:42 +00:00
GitLab Bot
b0107e8756
Add latest changes from gitlab-org/gitlab@master
2020-07-02 12:09:02 +00:00
GitLab Bot
2a53c24c51
Add latest changes from gitlab-org/gitlab@master
2020-06-26 15:08:45 +00:00
GitLab Bot
5c8c561ac6
Add latest changes from gitlab-org/gitlab@master
2020-04-24 12:10:16 +00:00
GitLab Bot
b7dfe2ae40
Add latest changes from gitlab-org/gitlab@master
2019-09-13 13:26:31 +00:00
Mayra Cabrera
c6acb77d8a
Removes update_statistics_namespace feature flag
...
After measuring the impact of the namespace storage on
https://gitlab.com/gitlab-org/gitlab-ce/issues/64092 . It was decided
that it's performant enough. So we can freely remove the feature flag
Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/64092
2019-08-02 09:29:29 -05:00
Mayra Cabrera
ec39a1d63d
Schedule namespace aggregation in other contexts
...
Schedules a Namespace::AggregationSchedule worker if some of the project
statistics are refreshed.
The worker is only executed if the feature flag is enabled.
2019-07-08 15:06:05 +00:00
Alessio Caiazza
c699c6fe3c
Fix nil coercion updating storage size on project statistics
2019-06-10 15:44:50 +00:00
Alessio Caiazza
83a8b77961
Add Namespace and ProjectStatistics to GraphQL API
...
We can query namespaces, and nested projects.
Projects now exposes statistics
2019-06-03 12:01:32 +02:00
Alessio Caiazza
724b5afbd9
Remove nils from project_statistics.packages_size
...
Now it defaults to 0
2019-05-31 09:59:36 +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
Nick Thomas
013f7cd24c
Inherit from ApplicationRecord instead of ActiveRecord::Base
2019-03-28 16:18:23 +00:00
Rémy Coutable
f20a40f4a1
Merge branch 'frozen-string-enable-app-models' into 'master'
...
Enable frozen string in app/models/*.rb
See merge request gitlab-org/gitlab-ce!20851
2018-08-02 09:11:52 +00:00
Peter Marko
5e01ee78e5
Update total storage size when changing size of artifacts
2018-07-27 17:21:41 +02:00
gfyoung
50abbd3e53
Enable frozen string in app/models/*.rb
...
Partially addresses #47424 .
2018-07-26 16:55:41 -07:00
Dylan Griffith
03b020f2e4
Update ProjectStatistics#build_artifacts_size synchronously without summing ( #41059 )
...
Previously we scheduled a worker to just some this but we were running
into performance issues when the build table was getting too large. So
now we've updated the code such that this column is updated immediately
and incremented/decremented by the correct amount whenever artifacts are
created or deleted.
We've also added the performance optimization that we do not update this
statistic if a project is deleted because it could result in many
updates for a project with many builds.
2018-04-19 18:35:40 +10:00
Nick Thomas
22aef3d424
Fix a bug calculating artifact size for project statistics
2018-01-18 17:48:09 +00:00
Kamil Trzcinski
8f01e67980
Revert "Rename `job_archive|metadata` to `artifacts_archive|metadata`"
...
This reverts commit 714082e65304ae2ec5c5400c59a68ab63e724aa9.
2017-12-03 12:04:49 +01:00
Kamil Trzcinski
2045a771bf
Rename `job_archive|metadata` to `artifacts_archive|metadata`
2017-12-03 12:04:49 +01:00
Zeger-Jan van de Weg
c7d945758a
Fix most test failures
2017-12-03 12:04:49 +01:00
Zeger-Jan van de Weg
61864a5a5b
Rename Artifact to JobArtifact, split metadata out
...
Two things at ones, as there was no clean way to seperate the commit and
give me feedback from the tests.
But the model Artifact is now JobArtifact, and the table does not have a
type anymore, but the metadata is now its own model:
Ci::JobArtifactMetadata.
2017-12-03 12:04:48 +01:00
Brian Neel
9770c57fab
Re-enable SqlInjection and CommandInjection
2017-08-08 10:50:54 -04:00
Douwe Maan
b7d8df503c
Enable Style/MutableConstant
2017-02-23 09:31:56 -06:00
Oswaldo Ferreira
4bb3675b7d
Fix Project#update_repository_size to convert MB to Bytes properly
2017-01-17 21:50:09 -02: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