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 'db/fixtures/development/33_triage_ops.rb')
-rw-r--r--db/fixtures/development/33_triage_ops.rb48
1 files changed, 25 insertions, 23 deletions
diff --git a/db/fixtures/development/33_triage_ops.rb b/db/fixtures/development/33_triage_ops.rb
index aaf92315125..b2dd3861169 100644
--- a/db/fixtures/development/33_triage_ops.rb
+++ b/db/fixtures/development/33_triage_ops.rb
@@ -11,29 +11,31 @@ class Gitlab::Seeder::TriageOps
puts "Updating settings to allow web hooks to localhost"
ApplicationSetting.current_without_cache.update!(allow_local_requests_from_web_hooks_and_services: true)
- Sidekiq::Testing.inline! do
- puts "Ensuring required groups"
- ensure_group('gitlab-com')
- ensure_group('gitlab-com/gl-security/appsec')
- ensure_group('gitlab-jh/jh-team')
- ensure_group('gitlab-org')
- ensure_group('gitlab-org/gitlab-core-team/community-members')
- ensure_group('gitlab-org/security')
-
- puts "Ensuring required projects"
- ensure_project('gitlab-org/gitlab')
- ensure_project('gitlab-org/security/gitlab')
-
- puts "Ensuring required bot user"
- ensure_bot_user
-
- puts "Setting up webhooks"
- ensure_webhook_for('gitlab-com')
- ensure_webhook_for('gitlab-org')
-
- puts "Ensuring work type labels"
- ensure_work_type_labels_for('gitlab-com')
- ensure_work_type_labels_for('gitlab-org')
+ Sidekiq::Worker.skipping_transaction_check do
+ Sidekiq::Testing.inline! do
+ puts "Ensuring required groups"
+ ensure_group('gitlab-com')
+ ensure_group('gitlab-com/gl-security/appsec')
+ ensure_group('gitlab-jh/jh-team')
+ ensure_group('gitlab-org')
+ ensure_group('gitlab-org/gitlab-core-team/community-members')
+ ensure_group('gitlab-org/security')
+
+ puts "Ensuring required projects"
+ ensure_project('gitlab-org/gitlab')
+ ensure_project('gitlab-org/security/gitlab')
+
+ puts "Ensuring required bot user"
+ ensure_bot_user
+
+ puts "Setting up webhooks"
+ ensure_webhook_for('gitlab-com')
+ ensure_webhook_for('gitlab-org')
+
+ puts "Ensuring work type labels"
+ ensure_work_type_labels_for('gitlab-com')
+ ensure_work_type_labels_for('gitlab-org')
+ end
end
end