Commit 5aea6dc1 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch 'ashmckenzie/merge-request-usage-statistics' into 'master'

Move UsageStatistics include from EE into FOSS [RUN AS-IF-FOSS]

See merge request gitlab-org/gitlab!33662
parents ece0afa5 e56aed4c
......@@ -7,6 +7,7 @@ class Event < ApplicationRecord
include DeleteWithLimit
include CreatedAtFilterable
include Gitlab::Utils::StrongMemoize
include UsageStatistics
default_scope { reorder(nil) }
......
......@@ -6,8 +6,6 @@ module EE
extend ::Gitlab::Utils::Override
prepended do
include UsageStatistics
scope :issues, -> { where(target_type: 'Issue') }
scope :merge_requests, -> { where(target_type: 'MergeRequest') }
scope :totals_by_author, -> { group(:author_id).count }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment