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
384c5e16
Commit
384c5e16
authored
Dec 06, 2018
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restructure `foo ? bar : false` as `foo && bar`
parent
7fd5dbf9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
app/finders/issuable_finder.rb
app/finders/issuable_finder.rb
+3
-8
No files found.
app/finders/issuable_finder.rb
View file @
384c5e16
...
...
@@ -288,21 +288,16 @@ class IssuableFinder
def
use_subquery_for_search?
strong_memoize
(
:use_subquery_for_search
)
do
if
attempt_group_search_optimizations?
attempt_group_search_optimizations?
&&
Feature
.
enabled?
(
:use_subquery_for_group_issues_search
,
default_enabled:
false
)
else
false
end
end
end
def
use_cte_for_search?
strong_memoize
(
:use_cte_for_search
)
do
if
attempt_group_search_optimizations?
&&
!
use_subquery_for_search?
attempt_group_search_optimizations?
&&
!
use_subquery_for_search?
&&
Feature
.
enabled?
(
:use_cte_for_group_issues_search
,
default_enabled:
true
)
else
false
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