Commit ba8bc18b authored by James Lopez's avatar James Lopez

Merge branch 'remove-ci_pipeline_rewind_iid' into 'master'

Remove `ci_pipeline_rewind_iid` feature flag

See merge request gitlab-org/gitlab!43551
parents 0961dce3 5c9e4888
......@@ -82,8 +82,7 @@ module Ci
schedule_head_pipeline_update if pipeline.persisted?
# If pipeline is not persisted, try to recover IID
pipeline.reset_project_iid unless pipeline.persisted? ||
Feature.disabled?(:ci_pipeline_rewind_iid, project, default_enabled: true)
pipeline.reset_project_iid unless pipeline.persisted?
pipeline
end
......
---
name: ci_pipeline_rewind_iid
introduced_by_url:
rollout_issue_url:
group:
type: development
default_enabled: true
......@@ -731,11 +731,6 @@ RSpec.describe Ci::CreatePipelineService do
.and_call_original
end
context 'when ci_pipeline_rewind_iid is enabled' do
before do
stub_feature_flags(ci_pipeline_rewind_iid: true)
end
it 'rewinds iid' do
result = execute_service
......@@ -743,20 +738,6 @@ RSpec.describe Ci::CreatePipelineService do
expect(internal_id.last_value).to eq(0)
end
end
context 'when ci_pipeline_rewind_iid is disabled' do
before do
stub_feature_flags(ci_pipeline_rewind_iid: false)
end
it 'does not rewind iid' do
result = execute_service
expect(result).not_to be_persisted
expect(internal_id.last_value).to eq(1)
end
end
end
end
context 'with manual actions' do
......
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