summaryrefslogtreecommitdiff
path: root/lib/gitlab/background_migration/populate_untracked_uploads.rb
Commit message (Collapse)AuthorAgeFilesLines
* Process normal paths in batch containing bad pathsMichael Kozono2017-12-051-4/+25
|
* Handle race conditionMichael Kozono2017-12-011-1/+2
|
* Address Rubocop offensesMichael Kozono2017-12-011-21/+43
|
* Don’t quote `NOW()` for created_at columnMichael Kozono2017-12-011-1/+1
| | | | To fix for MySQL.
* RefactorMichael Kozono2017-12-011-6/+6
|
* Don’t recreate deleted uploadsMichael Kozono2017-12-011-5/+35
|
* Bulk insert uploadsMichael Kozono2017-12-011-49/+14
|
* Filter existing uploads with one queryMichael Kozono2017-12-011-38/+42
|
* RefactorMichael Kozono2017-12-011-13/+10
|
* Get rid of tracked fieldMichael Kozono2017-12-011-11/+3
| | | | It makes a debugging slightly easier, but is not necessary, and is a waste of resources.
* Fix Rubocop offenseMichael Kozono2017-12-011-0/+1
|
* Drop temporary tracking table when finishedMichael Kozono2017-12-011-0/+6
|
* Fallback on checksum jobsMichael Kozono2017-12-011-0/+2
| | | | Since `calculate_checksum` depends on `Uploader` classes which are not defined in this background migration and may change at any time.
* Remove irrelevant copy-pasted codeMichael Kozono2017-12-011-20/+0
|
* Store paths relative to CarrierWave.rootMichael Kozono2017-12-011-8/+4
| | | | | | So the path on source installs cannot be too long for our column. And fix the column length test since Route.path is limited to 255 chars, it doesn’t matter how many nested groups there are.
* Rename table to untracked_files_for_uploadsMichael Kozono2017-12-011-8/+8
|
* Refactor, no change in behaviorMichael Kozono2017-12-011-6/+4
|
* Make regexes more readableMichael Kozono2017-12-011-11/+11
|
* Fix Rubocop offensesMichael Kozono2017-12-011-8/+8
|
* Allow individual failuresMichael Kozono2017-12-011-16/+24
|
* Calculate checksumsMichael Kozono2017-12-011-2/+65
| | | | | | by copy-pasting in the whole `Upload` class. Also, fix `Namespace` `model_type` (it should not be `Group`).
* Add untracked files to uploadsMichael Kozono2017-12-011-11/+133
|
* Kick off follow up background migration jobsMichael Kozono2017-12-011-0/+51
To process the unhashed_upload_files table.