Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
78025ad2
Commit
78025ad2
authored
Oct 14, 2020
by
Alishan Ladhani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add constants to the list of exceptions for UsageData/LargeTable
parent
f8a5fec6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
ee/lib/ee/gitlab/usage_data.rb
ee/lib/ee/gitlab/usage_data.rb
+1
-1
lib/gitlab/usage_data.rb
lib/gitlab/usage_data.rb
+1
-1
rubocop/rubocop-usage-data.yml
rubocop/rubocop-usage-data.yml
+2
-0
No files found.
ee/lib/ee/gitlab/usage_data.rb
View file @
78025ad2
...
@@ -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
...
...
lib/gitlab/usage_data.rb
View file @
78025ad2
...
@@ -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
...
...
rubocop/rubocop-usage-data.yml
View file @
78025ad2
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment