Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 2cc3e515d1d..bca5614fe27 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -288,6 +288,12 @@ RSpec.configure do |config|
# Selectively disable by actor https://docs.gitlab.com/ee/development/feature_flags/#selectively-disable-by-actor
stub_feature_flags(remove_description_html_in_release_api_override: false)
+ # Disable issue respositioning to avoid heavy load on database when importing big projects.
+ # This is only turned on when app is handling heavy project imports.
+ # Can be removed when we find a better way to deal with the problem.
+ # For more information check https://gitlab.com/gitlab-com/gl-infra/production/-/issues/4321
+ stub_feature_flags(block_issue_repositioning: false)
+
allow(Gitlab::GitalyClient).to receive(:can_use_disk?).and_return(enable_rugged)
else
unstub_all_feature_flags