Commit 78025ad2 authored by Alishan Ladhani's avatar Alishan Ladhani

Add constants to the list of exceptions for UsageData/LargeTable

parent f8a5fec6
...@@ -492,7 +492,7 @@ module EE ...@@ -492,7 +492,7 @@ module EE
def clear_memoized def clear_memoized
super super
EE_MEMOIZED_VALUES.each { |v| clear_memoization(v) } # rubocop:disable UsageData/LargeTable EE_MEMOIZED_VALUES.each { |v| clear_memoization(v) }
end end
end end
end end
......
...@@ -823,7 +823,7 @@ module Gitlab ...@@ -823,7 +823,7 @@ module Gitlab
end end
def clear_memoized def clear_memoized
CE_MEMOIZED_VALUES.each { |v| clear_memoization(v) } # rubocop:disable UsageData/LargeTable CE_MEMOIZED_VALUES.each { |v| clear_memoization(v) }
end end
# rubocop: disable CodeReuse/ActiveRecord # rubocop: disable CodeReuse/ActiveRecord
......
...@@ -25,6 +25,8 @@ UsageData/LargeTable: ...@@ -25,6 +25,8 @@ UsageData/LargeTable:
- :Time - :Time
- :SECURE_PRODUCT_TYPES - :SECURE_PRODUCT_TYPES
- :Settings - :Settings
- :CE_MEMOIZED_VALUES
- :EE_MEMOIZED_VALUES
CountMethods: CountMethods:
- :count - :count
- :distinct_count - :distinct_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