diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-12-20 13:37:47 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-12-20 13:37:47 +0000 |
commit | aee0a117a889461ce8ced6fcf73207fe017f1d99 (patch) | |
tree | 891d9ef189227a8445d83f35c1b0fc99573f4380 /app/services/issues/create_service.rb | |
parent | 8d46af3258650d305f53b819eabf7ab18d22f59e (diff) | |
download | gitlab-ce-aee0a117a889461ce8ced6fcf73207fe017f1d99.tar.gz |
Add latest changes from gitlab-org/gitlab@14-6-stable-eev14.6.0-rc42
Diffstat (limited to 'app/services/issues/create_service.rb')
-rw-r--r-- | app/services/issues/create_service.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/services/issues/create_service.rb b/app/services/issues/create_service.rb index fa8d380404b..79b59eee5e1 100644 --- a/app/services/issues/create_service.rb +++ b/app/services/issues/create_service.rb @@ -41,7 +41,7 @@ module Issues user = current_user issue.run_after_commit do NewIssueWorker.perform_async(issue.id, user.id) - IssuePlacementWorker.perform_async(nil, issue.project_id) + Issues::PlacementWorker.perform_async(nil, issue.project_id) Namespaces::OnboardingIssueCreatedWorker.perform_async(issue.namespace.id) end end @@ -50,6 +50,7 @@ module Issues def after_create(issue) user_agent_detail_service.create resolve_discussions_with_issue(issue) + create_escalation_status(issue) super end @@ -80,6 +81,10 @@ module Issues attr_reader :spam_params + def create_escalation_status(issue) + ::IncidentManagement::IssuableEscalationStatuses::CreateService.new(issue).execute if issue.supports_escalation? + end + def user_agent_detail_service UserAgentDetailService.new(spammable: @issue, spam_params: spam_params) end |