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
44ee04da
Commit
44ee04da
authored
Sep 28, 2021
by
Ash McKenzie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure Issue seeding isn't rate limited
parent
fd7a09ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
lib/quality/seeders/issues.rb
lib/quality/seeders/issues.rb
+2
-1
No files found.
lib/quality/seeders/issues.rb
View file @
44ee04da
...
...
@@ -30,7 +30,8 @@ module Quality
labels:
labels
.
join
(
','
)
}
params
[
:closed_at
]
=
params
[
:created_at
]
+
rand
(
35
).
days
if
params
[
:state
]
==
'closed'
issue
=
::
Issues
::
CreateService
.
new
(
project:
project
,
current_user:
team
.
sample
,
params:
params
,
spam_params:
nil
).
execute
issue
=
::
Issues
::
CreateService
.
new
(
project:
project
,
current_user:
team
.
sample
,
params:
params
,
spam_params:
nil
).
execute_without_rate_limiting
if
issue
.
persisted?
created_issues_count
+=
1
...
...
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