Commit 0286ff19 authored by Imre Farkas's avatar Imre Farkas

Merge branch '241276-remove-improved_mr_merged_at_queries-ff' into 'master'

Remove `improved_mr_merged_at_queries` feature flag

Closes #241276

See merge request gitlab-org/gitlab!42471
parents d9cc615b 83d83e53
......@@ -257,11 +257,7 @@ class MergeRequest < ApplicationRecord
scope :join_project, -> { joins(:target_project) }
scope :join_metrics, -> do
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]))
end
query
end
scope :references_project, -> { references(:target_project) }
......
---
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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment