summaryrefslogtreecommitdiff
path: root/app/services/keys
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-06-151-0/+8
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-132-0/+4
|
* Fix typos in comments and specsGeorge Tsiolis2018-11-011-1/+1
|
* Enable frozen string in apps/services/**/*.rbrepo-forks/gitlab-ce-frozen-string-enable-apps-services-innergfyoung2018-07-164-0/+8
| | | | | | For directories application_settings --> labels. Partially addresses #47424.
* Introduce a new Keys::DestroyService serviceRémy Coutable2018-05-162-1/+13
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* uypdated keys controller logicJames Lopez2017-10-311-0/+1
|
* Create idea of read-only databasetc-geo-read-only-ideaToon Claes2017-10-061-0/+2
| | | | | | | | | | | | In GitLab EE, a GitLab instance can be read-only (e.g. when it's a Geo secondary node). But in GitLab CE it also might be useful to have the "read-only" idea around. So port it back to GitLab CE. Also having the principle of read-only in GitLab CE would hopefully lead to less errors introduced, doing write operations when there aren't allowed for read-only calls. Closes gitlab-org/gitlab-ce#37534.
* Stop using Sidekiq for updating Key#last_used_atremove-use-key-workerYorick Peterse2017-09-201-0/+33
| | | | | | | | | | | | | | | 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
* created services for keyshaseeb2017-09-152-0/+22