diff options
Diffstat (limited to 'lib/gitlab/usage_data.rb')
-rw-r--r-- | lib/gitlab/usage_data.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/gitlab/usage_data.rb b/lib/gitlab/usage_data.rb index ab041a31bde..c3378856633 100644 --- a/lib/gitlab/usage_data.rb +++ b/lib/gitlab/usage_data.rb @@ -20,7 +20,7 @@ module Gitlab class UsageData MAX_GENERATION_TIME_FOR_SAAS = 40.hours - CE_MEMOIZED_VALUES = %i( + CE_MEMOIZED_VALUES = %i[ issue_minimum_id issue_maximum_id project_minimum_id @@ -31,7 +31,7 @@ module Gitlab deployment_maximum_id auth_providers recorded_at - ).freeze + ].freeze class << self include Gitlab::Utils::UsageData @@ -96,7 +96,7 @@ module Gitlab issues_with_embedded_grafana_charts_approx: grafana_embed_usage_data, issues_created_from_alerts: total_alert_issues, incident_issues: count(::Issue.with_issue_type(:incident), start: minimum_id(Issue), finish: maximum_id(Issue)), - alert_bot_incident_issues: count(::Issue.authored(::User.alert_bot), start: minimum_id(Issue), finish: maximum_id(Issue)), + alert_bot_incident_issues: count(::Issue.authored(::Users::Internal.alert_bot), start: minimum_id(Issue), finish: maximum_id(Issue)), keys: count(Key), label_lists: count(List.label), lfs_objects: count(LfsObject), @@ -529,7 +529,7 @@ module Gitlab service_desk_issues: count( ::Issue.where( project: projects_with_service_desk, - author: ::User.support_bot, + author: ::Users::Internal.support_bot, confidential: true ) ) |