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
83d83e53
Commit
83d83e53
authored
Sep 16, 2020
by
Adam Hegyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove `improved_mr_merged_at_queries` feature flag
parent
80ca9033
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
12 deletions
+1
-12
app/models/merge_request.rb
app/models/merge_request.rb
+1
-5
config/feature_flags/development/improved_mr_merged_at_queries.yml
...ature_flags/development/improved_mr_merged_at_queries.yml
+0
-7
No files found.
app/models/merge_request.rb
View file @
83d83e53
...
@@ -257,11 +257,7 @@ class MergeRequest < ApplicationRecord
...
@@ -257,11 +257,7 @@ class MergeRequest < ApplicationRecord
scope
:join_project
,
->
{
joins
(
:target_project
)
}
scope
:join_project
,
->
{
joins
(
:target_project
)
}
scope
:join_metrics
,
->
do
scope
:join_metrics
,
->
do
query
=
joins
(
:metrics
)
query
=
joins
(
:metrics
)
if
Feature
.
enabled?
(
:improved_mr_merged_at_queries
,
default_enabled:
true
)
query
=
query
.
where
(
MergeRequest
.
arel_table
[
:target_project_id
].
eq
(
MergeRequest
::
Metrics
.
arel_table
[
:target_project_id
]))
query
=
query
.
where
(
MergeRequest
.
arel_table
[
:target_project_id
].
eq
(
MergeRequest
::
Metrics
.
arel_table
[
:target_project_id
]))
end
query
query
end
end
scope
:references_project
,
->
{
references
(
:target_project
)
}
scope
:references_project
,
->
{
references
(
:target_project
)
}
...
...
config/feature_flags/development/improved_mr_merged_at_queries.yml
deleted
100644 → 0
View file @
80ca9033
---
name
:
improved_mr_merged_at_queries
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/39329
rollout_issue_url
:
group
:
group::analytics
type
:
development
default_enabled
:
true
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