From 49bb78aac34a111c0fb13aae3a83b078be351fd3 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Mon, 17 May 2021 18:10:42 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- spec/spec_helper.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'spec/spec_helper.rb') 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 -- cgit v1.2.3