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 ...@@ -82,8 +82,7 @@ module Ci
schedule_head_pipeline_update if pipeline.persisted? schedule_head_pipeline_update if pipeline.persisted?
# If pipeline is not persisted, try to recover IID # If pipeline is not persisted, try to recover IID
pipeline.reset_project_iid unless pipeline.persisted? || pipeline.reset_project_iid unless pipeline.persisted?
Feature.disabled?(:ci_pipeline_rewind_iid, project, default_enabled: true)
pipeline pipeline
end end
......
---
name: ci_pipeline_rewind_iid
introduced_by_url:
rollout_issue_url:
group:
type: development
default_enabled: true
...@@ -731,30 +731,11 @@ RSpec.describe Ci::CreatePipelineService do ...@@ -731,30 +731,11 @@ RSpec.describe Ci::CreatePipelineService do
.and_call_original .and_call_original
end end
context 'when ci_pipeline_rewind_iid is enabled' do it 'rewinds iid' do
before do result = execute_service
stub_feature_flags(ci_pipeline_rewind_iid: true)
end
it 'rewinds iid' do
result = execute_service
expect(result).not_to be_persisted
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(result).not_to be_persisted
expect(internal_id.last_value).to eq(1) expect(internal_id.last_value).to eq(0)
end
end end
end 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