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
f07f01b4
Commit
f07f01b4
authored
Jan 25, 2021
by
Adam Hegyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable optimized_issuable_label_filter FF
Enable optimized_issuable_label_filter feature flag by default.
parent
55e8d950
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
app/models/concerns/optimized_issuable_label_filter.rb
app/models/concerns/optimized_issuable_label_filter.rb
+2
-2
changelogs/unreleased/259719-rollout-optimized-labels-ff.yml
changelogs/unreleased/259719-rollout-optimized-labels-ff.yml
+5
-0
config/feature_flags/development/optimized_issuable_label_filter.yml
...ure_flags/development/optimized_issuable_label_filter.yml
+1
-1
No files found.
app/models/concerns/optimized_issuable_label_filter.rb
View file @
f07f01b4
...
...
@@ -13,7 +13,7 @@ module OptimizedIssuableLabelFilter
def
by_label
(
items
)
return
items
unless
params
.
labels?
return
super
if
Feature
.
disabled?
(
:optimized_issuable_label_filter
)
return
super
if
Feature
.
disabled?
(
:optimized_issuable_label_filter
,
default_enabled: :yaml
)
target_model
=
items
.
model
...
...
@@ -29,7 +29,7 @@ module OptimizedIssuableLabelFilter
# Taken from IssuableFinder
def
count_by_state
return
super
if
root_namespace
.
nil?
return
super
if
Feature
.
disabled?
(
:optimized_issuable_label_filter
)
return
super
if
Feature
.
disabled?
(
:optimized_issuable_label_filter
,
default_enabled: :yaml
)
count_params
=
params
.
merge
(
state:
nil
,
sort:
nil
,
force_cte:
true
)
finder
=
self
.
class
.
new
(
current_user
,
count_params
)
...
...
changelogs/unreleased/259719-rollout-optimized-labels-ff.yml
0 → 100644
View file @
f07f01b4
---
title
:
Improve the performance of merge request and issue search by label(s)
merge_request
:
52495
author
:
type
:
performance
config/feature_flags/development/optimized_issuable_label_filter.yml
View file @
f07f01b4
...
...
@@ -5,4 +5,4 @@ rollout_issue_url:
milestone
:
'
13.4'
type
:
development
group
:
group::analytics
default_enabled
:
fals
e
default_enabled
:
tru
e
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