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
ad8813f8
Commit
ad8813f8
authored
Oct 14, 2021
by
Ash McKenzie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't attempt Issue rate liming for CSV imports
parent
a1ce1804
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
app/services/issuable/import_csv/base_service.rb
app/services/issuable/import_csv/base_service.rb
+8
-1
No files found.
app/services/issuable/import_csv/base_service.rb
View file @
ad8813f8
...
@@ -71,7 +71,14 @@ module Issuable
...
@@ -71,7 +71,14 @@ module Issuable
# NOTE: CSV imports are performed by workers, so we do not have a request context in order
# NOTE: CSV imports are performed by workers, so we do not have a request context in order
# to create a SpamParams object to pass to the issuable create service.
# to create a SpamParams object to pass to the issuable create service.
spam_params
=
nil
spam_params
=
nil
create_issuable_class
.
new
(
project:
@project
,
current_user:
@user
,
params:
attributes
,
spam_params:
spam_params
).
execute
create_service
=
create_issuable_class
.
new
(
project:
@project
,
current_user:
@user
,
params:
attributes
,
spam_params:
spam_params
)
# For now, if create_issuable_class prepends RateLimitedService let's bypass rate limiting
if
create_issuable_class
<
RateLimitedService
create_service
.
execute_without_rate_limiting
else
create_service
.
execute
end
end
end
def
email_results_to_user
def
email_results_to_user
...
...
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