Commit graph

14 commits

Author SHA1 Message Date
GitLab Bot
f50cb4f63f Add latest changes from gitlab-org/gitlab@master 2021-10-27 15:13:41 +00:00
GitLab Bot
7e5b78ee03 Add latest changes from gitlab-org/gitlab@master 2021-07-21 12:09:35 +00:00
GitLab Bot
d899d2a373 Add latest changes from gitlab-org/gitlab@master 2021-04-30 18:10:09 +00:00
GitLab Bot
3ef9553486 Add latest changes from gitlab-org/gitlab@master 2020-06-12 12:08:56 +00:00
GitLab Bot
33795139ea Add latest changes from gitlab-org/gitlab@master 2020-02-19 18:09:10 +00:00
GitLab Bot
6b9d3a4e83 Add latest changes from gitlab-org/gitlab@master 2020-01-29 18:08:47 +00:00
GitLab Bot
3fe9588b1c Add latest changes from gitlab-org/gitlab@master 2019-10-30 15:14:17 +00:00
GitLab Bot
25989ab7ef Add latest changes from gitlab-org/gitlab@master 2019-10-18 11:11:44 +00:00
Peter Leitzen
8dd3dc182e Make ActionContorller::Parameters serializable for sidekiq jobs 2019-02-05 10:39:14 +00:00
blackst0ne
f40478fe19 Bump Ruby on Rails to 5.0.7.1
Fix the CVE-2018-16476 vulnerability.
2018-12-21 23:32:25 +11:00
Yorick Peterse
2039c8280d
Disable existing offenses for the CodeReuse cops
This whitelists all existing offenses for the various CodeReuse cops, of
which most are triggered by the CodeReuse/ActiveRecord cop.
2018-09-11 17:32:00 +02:00
gfyoung
7e87626acf Enable frozen string for app/workers/**/*.rb
Partially addresses #47424.
2018-06-27 01:12:01 -07:00
Sean McGivern
b5042e5301 Move NotificationService calls to Sidekiq
The NotificationService has to do quite a lot of work to calculate the
recipients for an email. Where possible, we should try to avoid doing this in an
HTTP request, because the mail are sent by Sidekiq anyway, so there's no need to
schedule those emails immediately.

This commit creates a generic Sidekiq worker that uses Global ID to serialise
and deserialise its arguments, then forwards them to the NotificationService.
The NotificationService gains an `#async` method, so you can replace:

    notification_service.new_issue(issue, current_user)

With:

    notification_service.async.new_issue(issue, current_user)

And have everything else work as normal, except that calculating the recipients
will be done by Sidekiq, which will then schedule further Sidekiq jobs to send
each email.
2018-04-25 12:48:14 +01:00
Sean McGivern
2db218f8bf Send emails for issues due tomorrow
Also, refactor the mail sending slightly: instead of one worker sending all
emails, create a worker per project with issues due, which will send all emails
for that project.
2018-03-30 14:55:05 +01:00