Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
6703a259
Commit
6703a259
authored
Apr 09, 2021
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set issue_perform_after_creation_tasks_async feature flag to default
parent
34ce74e3
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
4 deletions
+9
-4
app/services/issues/create_service.rb
app/services/issues/create_service.rb
+1
-1
app/workers/new_issue_worker.rb
app/workers/new_issue_worker.rb
+1
-1
config/feature_flags/development/issue_perform_after_creation_tasks_async.yml
.../development/issue_perform_after_creation_tasks_async.yml
+1
-1
ee/app/services/ee/issues/create_service.rb
ee/app/services/ee/issues/create_service.rb
+1
-1
ee/changelogs/unreleased/21140-enable-issue-perform-after-creation-tasks-async-default.yml
...able-issue-perform-after-creation-tasks-async-default.yml
+5
-0
No files found.
app/services/issues/create_service.rb
View file @
6703a259
...
@@ -38,7 +38,7 @@ module Issues
...
@@ -38,7 +38,7 @@ module Issues
user_agent_detail_service
.
create
user_agent_detail_service
.
create
resolve_discussions_with_issue
(
issue
)
resolve_discussions_with_issue
(
issue
)
if
Feature
.
disabled?
(
:issue_perform_after_creation_tasks_async
,
issue
.
project
)
if
Feature
.
disabled?
(
:issue_perform_after_creation_tasks_async
,
issue
.
project
,
default_enabled: :yaml
)
Issues
::
AfterCreateService
Issues
::
AfterCreateService
.
new
(
issue
.
project
,
current_user
)
.
new
(
issue
.
project
,
current_user
)
.
execute
(
issue
)
.
execute
(
issue
)
...
...
app/workers/new_issue_worker.rb
View file @
6703a259
...
@@ -17,7 +17,7 @@ class NewIssueWorker # rubocop:disable Scalability/IdempotentWorker
...
@@ -17,7 +17,7 @@ class NewIssueWorker # rubocop:disable Scalability/IdempotentWorker
issuable
.
create_cross_references!
(
user
)
issuable
.
create_cross_references!
(
user
)
if
Feature
.
enabled?
(
:issue_perform_after_creation_tasks_async
,
issuable
.
project
)
if
Feature
.
enabled?
(
:issue_perform_after_creation_tasks_async
,
issuable
.
project
,
default_enabled: :yaml
)
Issues
::
AfterCreateService
Issues
::
AfterCreateService
.
new
(
issuable
.
project
,
user
)
.
new
(
issuable
.
project
,
user
)
.
execute
(
issuable
)
.
execute
(
issuable
)
...
...
config/feature_flags/development/issue_perform_after_creation_tasks_async.yml
View file @
6703a259
...
@@ -5,4 +5,4 @@ rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/21140
...
@@ -5,4 +5,4 @@ rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/21140
milestone
:
'
13.11'
milestone
:
'
13.11'
type
:
development
type
:
development
group
:
group::geo
group
:
group::geo
default_enabled
:
fals
e
default_enabled
:
tru
e
ee/app/services/ee/issues/create_service.rb
View file @
6703a259
...
@@ -31,7 +31,7 @@ module EE
...
@@ -31,7 +31,7 @@ module EE
private
private
def
add_issue_sla
(
issue
)
def
add_issue_sla
(
issue
)
return
if
::
Feature
.
enabled?
(
:issue_perform_after_creation_tasks_async
,
issue
.
project
)
return
if
::
Feature
.
enabled?
(
:issue_perform_after_creation_tasks_async
,
issue
.
project
,
default_enabled: :yaml
)
return
unless
issue
.
sla_available?
return
unless
issue
.
sla_available?
::
IncidentManagement
::
Incidents
::
CreateSlaService
.
new
(
issue
,
current_user
).
execute
::
IncidentManagement
::
Incidents
::
CreateSlaService
.
new
(
issue
,
current_user
).
execute
...
...
ee/changelogs/unreleased/21140-enable-issue-perform-after-creation-tasks-async-default.yml
0 → 100644
View file @
6703a259
---
title
:
Set issue_perform_after_creation_tasks_async feature flag to default
merge_request
:
59040
author
:
type
:
added
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment