Skip to content
Snippets Groups Projects
Commit 7bca7492 authored by Manoj M J's avatar Manoj M J :speech_balloon:
Browse files

Remove feature flag

Remove feature flag

Changelog: added
parent abaa5720
No related branches found
No related tags found
1 merge request!107358Remove flag `enable_minor_delay_during_project_authorizations_refresh`"
......@@ -64,8 +64,7 @@ def self.delete_all_in_batches_for_user(user:, project_ids:, per_batch: BATCH_SI
# catch up with the primary when large batches of records are being added/removed.
# Hance, we add a delay only if the GitLab installation has a replica database configured.
entire_size > batch_size &&
!::Gitlab::Database::LoadBalancing.primary_only? &&
Feature.enabled?(:enable_minor_delay_during_project_authorizations_refresh)
!::Gitlab::Database::LoadBalancing.primary_only?
end
private_class_method def self.log_details(entire_size:, batch_size:)
......
---
name: enable_minor_delay_during_project_authorizations_refresh
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/97805
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/373672
milestone: '15.4'
type: development
group: group::workspace
default_enabled: true
......@@ -126,7 +126,6 @@
before do
# Configure as if a replica database is enabled
allow(::Gitlab::Database::LoadBalancing).to receive(:primary_only?).and_return(false)
stub_feature_flags(enable_minor_delay_during_project_authorizations_refresh: true)
end
shared_examples_for 'inserts the rows in batches, as per the `per_batch` size, without a delay between each batch' do
......@@ -192,7 +191,6 @@
before do
# Configure as if a replica database is enabled
allow(::Gitlab::Database::LoadBalancing).to receive(:primary_only?).and_return(false)
stub_feature_flags(enable_minor_delay_during_project_authorizations_refresh: true)
end
before_all do
......@@ -264,7 +262,6 @@
before do
# Configure as if a replica database is enabled
allow(::Gitlab::Database::LoadBalancing).to receive(:primary_only?).and_return(false)
stub_feature_flags(enable_minor_delay_during_project_authorizations_refresh: true)
end
before_all do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment