Commit 37723ac4 authored by Adam Hegyi's avatar Adam Hegyi

Default enable use_upsert_query_for_mr_metrics FF

This change enables the use_upsert_query_for_mr_metrics feature flag by
default.

Changelog: changed
parent 69585491
...@@ -1869,7 +1869,7 @@ class MergeRequest < ApplicationRecord ...@@ -1869,7 +1869,7 @@ class MergeRequest < ApplicationRecord
override :ensure_metrics override :ensure_metrics
def ensure_metrics def ensure_metrics
if Feature.enabled?(:use_upsert_query_for_mr_metrics) if Feature.enabled?(:use_upsert_query_for_mr_metrics, default_enabled: :yaml)
MergeRequest::Metrics.record!(self) MergeRequest::Metrics.record!(self)
else else
# Backward compatibility: some merge request metrics records will not have target_project_id filled in. # Backward compatibility: some merge request metrics records will not have target_project_id filled in.
......
...@@ -5,4 +5,4 @@ rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/339677 ...@@ -5,4 +5,4 @@ rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/339677
milestone: '14.3' milestone: '14.3'
type: development type: development
group: group::optimize group: group::optimize
default_enabled: false 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