Commit 10044dff authored by George Tsiolis's avatar George Tsiolis

Remove ci_pipeline_persisted_stages feature flag

parent 4a064587
...@@ -401,11 +401,6 @@ module Ci ...@@ -401,11 +401,6 @@ module Ci
# The `Ci::Stage` contains all up-to date data # The `Ci::Stage` contains all up-to date data
# as atomic processing updates all data in-bulk # as atomic processing updates all data in-bulk
stages stages
elsif Feature.enabled?(:ci_pipeline_persisted_stages, default_enabled: true) && complete?
# The `Ci::Stage` contains up-to date data only for `completed` pipelines
# this is due to asynchronous processing of pipeline, and stages possibly
# not updated inline with processing of pipeline
stages
else else
# In other cases, we need to calculate stages dynamically # In other cases, we need to calculate stages dynamically
legacy_stages legacy_stages
......
...@@ -26,10 +26,6 @@ describe Projects::PipelinesController do ...@@ -26,10 +26,6 @@ describe Projects::PipelinesController do
context 'when using persisted stages', :request_store do context 'when using persisted stages', :request_store do
render_views render_views
before do
stub_feature_flags(ci_pipeline_persisted_stages: true)
end
it 'returns serialized pipelines' do it 'returns serialized pipelines' do
expect(::Gitlab::GitalyClient).to receive(:allow_ref_name_caching).and_call_original expect(::Gitlab::GitalyClient).to receive(:allow_ref_name_caching).and_call_original
...@@ -67,10 +63,6 @@ describe Projects::PipelinesController do ...@@ -67,10 +63,6 @@ describe Projects::PipelinesController do
end end
context 'when using legacy stages', :request_store do context 'when using legacy stages', :request_store do
before do
stub_feature_flags(ci_pipeline_persisted_stages: false)
end
it 'returns JSON with serialized pipelines' do it 'returns JSON with serialized pipelines' do
get_pipelines_index_json get_pipelines_index_json
......
...@@ -1010,7 +1010,6 @@ describe Ci::Pipeline, :mailer do ...@@ -1010,7 +1010,6 @@ describe Ci::Pipeline, :mailer do
context 'when using legacy stages' do context 'when using legacy stages' do
before do before do
stub_feature_flags( stub_feature_flags(
ci_pipeline_persisted_stages: false,
ci_atomic_processing: false ci_atomic_processing: false
) )
end end
...@@ -1051,7 +1050,6 @@ describe Ci::Pipeline, :mailer do ...@@ -1051,7 +1050,6 @@ describe Ci::Pipeline, :mailer do
context 'when using persisted stages' do context 'when using persisted stages' do
before do before do
stub_feature_flags( stub_feature_flags(
ci_pipeline_persisted_stages: true,
ci_atomic_processing: false ci_atomic_processing: false
) )
end end
......
...@@ -10,10 +10,6 @@ describe PipelineSerializer do ...@@ -10,10 +10,6 @@ describe PipelineSerializer do
described_class.new(current_user: user, project: project) described_class.new(current_user: user, project: project)
end end
before do
stub_feature_flags(ci_pipeline_persisted_stages: true)
end
subject { serializer.represent(resource) } subject { serializer.represent(resource) }
describe '#represent' do describe '#represent' 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