Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-08-30Use self.ignored_columns += instead of =Stan Hu
This is to accomodate prepended modules.
2019-08-29Remove dependency on IgnorableColumn concerndineshpanda
2019-08-05Speed up loading and filtering deploy keys and their projectsNick Thomas
This commit changes how we eager-load projects, routes, and namespaces required by the deploy keys endpoint, getting a 10x improvement in my local testing. The endpoint still doesn't scale in-general, but going from ~13 seconds to dump a 63K result to generating the same thing in ~1.6 seconds seems like a good improvement to me.
2019-08-05Stop using pluck to get deploy keys for a userNick Thomas
2018-09-18Fix rubocop Style/ZeroLengthPredicateSemyon Pupkov
2018-07-27Enable frozen string in app/models/*.rbgfyoung
Partially addresses #47424.
2018-04-18Revert the addition of goldiloaderYorick Peterse
This reverts the addition of the "goldiloader" Gem and all use of it. While this Gem is very promising it's causing a variety of problems on GitLab.com due to it eager-loading too much data in places where we don't expect/can handle this. At least for the time being this means we have to go back to manually fixing N+1 query problems, but at least those should not cause a negative impact on availability.
2018-04-09Add cop for has_many :through without disabled autoloadingSean McGivern
Goldiloader is great, but has several issues with has_many :through relations: * https://github.com/salsify/goldiloader/issues/12 * https://github.com/salsify/goldiloader/issues/14 * https://github.com/salsify/goldiloader/issues/18 Rather than try to figure out which applies in each case, we should just do the drudge work of manually disabling autoloading for all relations of this type. We can always use regular preloading for specific cases, but this way we avoid generating invalid queries through Goldiloader's magic.
2018-03-28Fall back on ghost user when deploy key user is not setDouwe Maan
2018-01-17Merge branch 'sh-migrate-can-push-to-deploy-keys-projects-10-3' into ↵Douwe Maan
'security-10-3' [10.3] Migrate `can_push` column from `keys` to `deploy_keys_project` See merge request gitlab/gitlabhq!2276 (cherry picked from commit f6ca52d31bac350a23938e0aebf717c767b4710c) 1f2bd3c0 Backport to 10.3
2017-09-15created services for keyshaseeb
2017-07-06Added Cop to blacklist the use of `dependent:`Yorick Peterse
This is allowed for existing instances so we don't end up 76 offenses right away, but for new code one should _only_ use this if they _have_ to remove non database data. Even then it's usually better to do this in a service class as this gives you more control over how to remove the data (e.g. in bulk).
2016-11-17Don't notify user for deploy keys, feedback:Lin Jen-Shin
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7383#note_18517263
2016-11-16Introduce has_access_to? so that we could reuse itLin Jen-Shin
Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7383#note_18439108
2016-11-11Add more tests and fix write to project checkLin Jen-Shin
2016-05-09Remove the annotate gem and delete old annotationsJeroen van Baarsen
In 8278b763d96ef10c6494409b18b7eb541463af29 the default behaviour of annotation has changes, which was causing a lot of noise in diffs. We decided in #17382 that it is better to get rid of the whole annotate gem, and instead let people look at schema.rb for the columns in a table. Fixes: #17382
2016-05-06Annotate the modelsZeger-Jan van de Weg
2015-05-03Re-annotate modelsStan Hu
2015-04-03Clean up code.Douwe Maan
2015-04-03Allow admin to create public deploy keys that are accessible to any project.Douwe Maan
2014-04-09Re-annotate modelsDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2013-08-21ReannotateDmitriy Zaporozhets
2013-06-19AnnotatedDmitriy Zaporozhets
2013-05-06Feature: Deploy keys between projectsDmitriy Zaporozhets
2013-05-06Create DeployKey & DeployKeysProject models. Bulding many to many relation ↵Dmitriy Zaporozhets
between deploy keys and projects