Commit c946cfc9 authored by Dmytro Zaporozhets's avatar Dmytro Zaporozhets

Merge branch 'id-remove-mr-performance-feature-flag' into 'master'

Remove merge_requests_conditional_mergeability_check feature flag

See merge request gitlab-org/gitlab!23450
parents 28fc6536 1ec64510
......@@ -821,7 +821,7 @@ class MergeRequest < ApplicationRecord
end
def check_mergeability(async: false)
return if Feature.enabled?(:merge_requests_conditional_mergeability_check, default_enabled: true) && !recheck_merge_status?
return unless recheck_merge_status?
check_service = MergeRequests::MergeabilityCheckService.new(self)
......
......@@ -2150,20 +2150,10 @@ describe MergeRequest do
subject.mark_as_mergeable!
end
context 'and merge_requests_conditional_mergeability_check feature flag is enabled' do
it 'does not call MergeabilityCheckService' do
expect(MergeRequests::MergeabilityCheckService).not_to receive(:new)
it 'does not call MergeabilityCheckService' do
expect(MergeRequests::MergeabilityCheckService).not_to receive(:new)
subject.check_mergeability
end
end
context 'and merge_requests_conditional_mergeability_check feature flag is disabled' do
before do
stub_feature_flags(merge_requests_conditional_mergeability_check: false)
end
it_behaves_like 'method that executes MergeabilityCheckService'
subject.check_mergeability
end
end
end
......
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