diff options
-rw-r--r-- | app/workers/project_daily_statistics_worker.rb | 4 | ||||
-rw-r--r-- | config/sidekiq_queues.yml | 2 | ||||
-rw-r--r-- | doc/api/project_traffic.md | 2 | ||||
-rw-r--r-- | doc/user/permissions.md | 2 |
4 files changed, 4 insertions, 6 deletions
diff --git a/app/workers/project_daily_statistics_worker.rb b/app/workers/project_daily_statistics_worker.rb index 96d262ddd22..0aaa3dfd182 100644 --- a/app/workers/project_daily_statistics_worker.rb +++ b/app/workers/project_daily_statistics_worker.rb @@ -3,13 +3,11 @@ class ProjectDailyStatisticsWorker include ApplicationWorker - # rubocop: disable CodeReuse/ActiveRecord def perform(project_id) - project = Project.find_by(id: project_id) + project = Project.find_by_id(project_id) return unless project && project.repository.exists? Projects::FetchStatisticsIncrementService.new(project).execute end - # rubocop: enable CodeReuse/ActiveRecord end diff --git a/config/sidekiq_queues.yml b/config/sidekiq_queues.yml index e475aec2cb5..43939cc914d 100644 --- a/config/sidekiq_queues.yml +++ b/config/sidekiq_queues.yml @@ -85,5 +85,5 @@ - [repository_cleanup, 1] - [delete_stored_files, 1] - [remote_mirror_notification, 2] - - [import_issues_csv, 2] - [project_daily_statistics, 1] + - [import_issues_csv, 2] diff --git a/doc/api/project_traffic.md b/doc/api/project_traffic.md index 53ef13ba466..00e9a01abec 100644 --- a/doc/api/project_traffic.md +++ b/doc/api/project_traffic.md @@ -4,7 +4,7 @@ Every API call to [project](../user/project/index.md) traffics must be authentic ## Get the HTTP fetches of the last 30 days -Retrieving the fetches statistics requires write access to the repository. +Retrieving the fetch statistics requires write access to the repository. Fetches statistics includes both clones and pulls count. diff --git a/doc/user/permissions.md b/doc/user/permissions.md index 3fba9c7b71c..e319dc1d234 100644 --- a/doc/user/permissions.md +++ b/doc/user/permissions.md @@ -109,7 +109,7 @@ The following table depicts the various user permission levels in a project. | Force push to protected branches [^4] | | | | | | | Remove protected branches [^4] | | | | | | | View project Audit Events | | | | ✓ | ✓ | -| View project fetch statistics | | | ✓ | ✓ | ✓ | +| View project traffic | | | ✓ | ✓ | ✓ | ## Project features permissions |