Commit graph

12 commits

Author SHA1 Message Date
GitLab Bot
11df4bf91b Add latest changes from gitlab-org/gitlab@master 2022-05-11 18:07:55 +00:00
GitLab Bot
1613500bf7 Add latest changes from gitlab-org/gitlab@master 2021-07-09 09:09:53 +00:00
GitLab Bot
b89bcf56ec Add latest changes from gitlab-org/gitlab@master 2021-04-08 00:09:11 +00:00
GitLab Bot
9c918ae5c6 Add latest changes from gitlab-org/gitlab@master 2021-03-31 21:09:15 +00:00
GitLab Bot
6092dcc437 Add latest changes from gitlab-org/gitlab@master 2020-10-02 12:09:03 +00:00
GitLab Bot
4c5468b408 Add latest changes from gitlab-org/gitlab@master 2020-06-24 15:08:50 +00:00
Thong Kuah
85b29c1c2f Add frozen_string_literal to spec/services
Probably useful as we often move these files to "new" files.
2019-04-12 10:14:54 +12:00
Jasper Maes
f0eaf22553 Rails5 fix MySQL milliseconds problem in specs 2018-06-27 18:49:22 +02:00
Rémy Coutable
6d81905faf
Introduce a new Keys::DestroyService service
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-05-16 20:26:22 +02:00
Nick Thomas
5af8465396 Simplify a test 2017-09-21 13:19:05 +01:00
Yorick Peterse
b3566a0104
Stop using Sidekiq for updating Key#last_used_at
This makes things simpler as no scheduling is involved. Further we
remove the need for running a SELECT + UPDATE just to get the key and
update it, whereas we only need an UPDATE when setting last_used_at
directly in a request.

The added service class takes care of updating Key#last_used_at without
using Sidekiq. Further it makes sure we only try to obtain a Redis lease
if we're confident that we actually need to do so, instead of always
obtaining it. We also make sure to _only_ update last_used_at instead of
also updating updated_at.

Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/36663
2017-09-20 14:24:14 +02:00
haseeb
cc2daa74d8 created services for keys 2017-09-15 15:35:24 +00:00