summaryrefslogtreecommitdiff
path: root/app/models/lfs_object.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix file_store for artifacts and lfs when savingKamil Trzciński2018-05-011-1/+1
|
* Fix direct_upload when records with null file_store are usedKamil Trzciński2018-04-191-2/+4
| | | | | | | | Old records have a null value of file_store column. This causes the problems with current direct_upload implementation, as this makes it to choose Store::REMOTE instead of Store::LOCAL. This change moves the store save when change saving the object.
* Revert the addition of goldiloaderYorick Peterse2018-04-181-1/+1
| | | | | | | | | 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.
* Add cop for has_many :through without disabled autoloadingfix-n-plus-one-when-getting-notification-settings-for-recipientsSean McGivern2018-04-091-1/+1
| | | | | | | | | | | | | 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.
* Port LFS direct_upload from EEac/lfs-direct-upload-ee-to-ceAlessio Caiazza2018-03-271-0/+6
|
* [cherry-pick] '4862-verify-file-checksums'Sean McGivern2018-03-081-0/+4
| | | | See merge request gitlab-org/gitlab-ee!4753
* fixing some broken mergesMicaël Bergeron2018-03-021-8/+0
|
* remove geo specific codeMicaël Bergeron2018-03-011-1/+1
|
* port the object storage to CEMicaël Bergeron2018-03-011-1/+7
|
* Merge branch '4163-move-uploads-to-object-storage' into 'master'Sean McGivern2018-02-281-1/+1
| | | | | | | | Move uploads to object storage Closes #4163 See merge request gitlab-org/gitlab-ee!3867
* Merge branch 'zj-auto-upload-job-artifacts' into 'master'Kamil Trzciński2018-02-281-0/+9
| | | | | | Transfer job archives after creation See merge request gitlab-org/gitlab-ee!3646
* Merge commit '7fabc892f251740dbd9a4755baede662e6854870' into ↵Kamil Trzciński2018-02-281-9/+1
|\ | | | | | | object-storage-ee-to-ce-backport
| * Handle forks in Gitlab::Checks::LfsIntegrityjej/fix-lfs-integrity-with-forksJames Edwards-Jones2017-11-091-9/+1
| |
* | Merge branch 'jej/lfs-object-storage' into 'master'Douwe Maan2018-02-281-0/+2
|/ | | | | | | | Can migrate LFS objects to S3 style object storage Closes #2841 See merge request !2760
* Added Cop to blacklist the use of `dependent:`Yorick Peterse2017-07-061-1/+1
| | | | | | | | 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).
* Remove unreferenced LFS objects from DB and fsFrank Groeneveld2016-10-281-0/+6
|
* Remove the annotate gem and delete old annotationsJeroen van Baarsen2016-05-091-12/+0
| | | | | | | | | 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
* Annotate the modelsZeger-Jan van de Weg2016-05-061-2/+2
|
* Update annotationsStan Hu2015-12-081-0/+12
|
* Add specs for showing lfs object in UI.Marin Jankovski2015-12-071-0/+4
|
* Recursivity needed if a fork is a fork of a fork.Marin Jankovski2015-12-041-1/+1
|
* Don't show diffs for lfs pointers.Marin Jankovski2015-12-041-2/+0
|
* If a user clicks on the LFS object, it should be served if the user has ↵Marin Jankovski2015-12-031-0/+10
| | | | access to the object.
* Add support for git lfs.lfsMarin Jankovski2015-11-161-0/+8