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
cdbe83ac
Commit
cdbe83ac
authored
May 06, 2020
by
Kerri Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Memoize feature flag check
parent
8cc25e55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
ee/lib/gitlab/code_owners/file.rb
ee/lib/gitlab/code_owners/file.rb
+5
-1
No files found.
ee/lib/gitlab/code_owners/file.rb
View file @
cdbe83ac
...
@@ -3,6 +3,8 @@
...
@@ -3,6 +3,8 @@
module
Gitlab
module
Gitlab
module
CodeOwners
module
CodeOwners
class
File
class
File
include
::
Gitlab
::
Utils
::
StrongMemoize
SECTION_HEADER_REGEX
=
/\[(.*?)\]/
.
freeze
SECTION_HEADER_REGEX
=
/\[(.*?)\]/
.
freeze
def
initialize
(
blob
,
project
=
nil
)
def
initialize
(
blob
,
project
=
nil
)
...
@@ -155,7 +157,9 @@ module Gitlab
...
@@ -155,7 +157,9 @@ module Gitlab
end
end
def
sectional_codeowners?
def
sectional_codeowners?
Feature
.
enabled?
(
:sectional_codeowners
,
@project
,
default_enabled:
false
)
strong_memoize
(
:sectional_codeowners_check
)
do
Feature
.
enabled?
(
:sectional_codeowners
,
@project
,
default_enabled:
false
)
end
end
end
end
end
end
end
...
...
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