Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Don't use the same repository on disk in create_merge_request_handler_specjprovazn-testfix | Jan Provaznik | 2017-12-07 | 1 | -15/+11 |
| | | | | | | | | Use of skip_disk_validation causes failing tests, as a hotfix the test which depends on the repository is temporarily commented out (it will be fixed in a followup patch). Closes #40900 | ||||
* | Merge branch 'mk-add-old-attachments-to-uploads-table' into 'master' | Stan Hu | 2017-12-07 | 14 | -4/+1323 |
|\ | | | | | | | | | Add old files to uploads table See merge request gitlab-org/gitlab-ce!15270 | ||||
| * | Fix specs for MySQL | Michael Kozono | 2017-12-06 | 2 | -0/+5 |
| | | |||||
| * | Fix specs after rebase | Michael Kozono | 2017-12-06 | 4 | -89/+20 |
| | | | | | | | | | | | | | | | | Later migrations added fields to the EE DB which were used by factories which were used in these specs. And in CE on MySQL, a single appearance row is enforced. The migration and migration specs should not depend on the codebase staying the same. | ||||
| * | Process normal paths in batch containing bad paths | Michael Kozono | 2017-12-05 | 2 | -4/+45 |
| | | |||||
| * | Guarantee all IDs are included | Michael Kozono | 2017-12-05 | 1 | -5/+5 |
| | | |||||
| * | Make sure empty uploads doesn’t break anything | Michael Kozono | 2017-12-04 | 1 | -1/+9 |
| | | |||||
| * | Follow symlinks | Michael Kozono | 2017-12-04 | 1 | -1/+1 |
| | | | | | | | | In particular, the Omnibus uploads directory is generally a symlink. | ||||
| * | Handle race condition | Michael Kozono | 2017-12-01 | 1 | -1/+2 |
| | | |||||
| * | Add tests for disable_quote option | Michael Kozono | 2017-12-01 | 1 | -0/+16 |
| | | |||||
| * | Address Rubocop offenses | Michael Kozono | 2017-12-01 | 2 | -39/+82 |
| | | |||||
| * | Fix test for MySQL | Michael Kozono | 2017-12-01 | 1 | -4/+6 |
| | | |||||
| * | Ensure consistent column order | Michael Kozono | 2017-12-01 | 1 | -1/+1 |
| | | |||||
| * | Don’t quote `NOW()` for created_at column | Michael Kozono | 2017-12-01 | 2 | -3/+9 |
| | | | | | | | | To fix for MySQL. | ||||
| * | Refactor | Michael Kozono | 2017-12-01 | 1 | -6/+6 |
| | | |||||
| * | Don’t recreate deleted uploads | Michael Kozono | 2017-12-01 | 3 | -12/+51 |
| | | |||||
| * | Get rid of timestamps on untracked files table | Michael Kozono | 2017-12-01 | 1 | -3/+2 |
| | | | | | | | | `updated_at` is now unnecessary and `created_at` is less useful due to removing the tracked field. | ||||
| * | Bulk insert uploads | Michael Kozono | 2017-12-01 | 1 | -49/+14 |
| | | |||||
| * | Filter existing uploads with one query | Michael Kozono | 2017-12-01 | 2 | -92/+68 |
| | | |||||
| * | Refactor | Michael Kozono | 2017-12-01 | 2 | -16/+13 |
| | | |||||
| * | Get rid of tracked field | Michael Kozono | 2017-12-01 | 3 | -29/+7 |
| | | | | | | | | It makes a debugging slightly easier, but is not necessary, and is a waste of resources. | ||||
| * | Refactor | Michael Kozono | 2017-12-01 | 1 | -10/+3 |
| | | |||||
| * | Fix datetime inserts on MySQL | Michael Kozono | 2017-12-01 | 1 | -3/+1 |
| | | |||||
| * | Fix Rubocop offense | Michael Kozono | 2017-12-01 | 1 | -0/+1 |
| | | |||||
| * | Use bulk inserts | Michael Kozono | 2017-12-01 | 3 | -71/+184 |
| | | |||||
| * | Use ionice absolute path | Michael Kozono | 2017-12-01 | 1 | -2/+3 |
| | | |||||
| * | Attempt to fix spec in CI | Michael Kozono | 2017-12-01 | 1 | -1/+1 |
| | | |||||
| * | Log the find command used | Michael Kozono | 2017-12-01 | 1 | -0/+2 |
| | | |||||
| * | Move temp table creation into the prepare job | Michael Kozono | 2017-12-01 | 6 | -77/+76 |
| | | | | | | | | | | * Hopefully fixes spec failures in which the table doesn’t exist * Decouples the background migration from the post-deploy migration, e.g. we could easily run it again even though the table is dropped when finished. | ||||
| * | Fix migration for pre-Postgres 9.5 | Michael Kozono | 2017-12-01 | 1 | -1/+15 |
| | | |||||
| * | Fix Rubocop offenses | Michael Kozono | 2017-12-01 | 4 | -11/+9 |
| | | |||||
| * | Drop temporary tracking table when finished | Michael Kozono | 2017-12-01 | 6 | -92/+131 |
| | | |||||
| * | Refactor specs | Michael Kozono | 2017-12-01 | 4 | -337/+183 |
| | | |||||
| * | Speed up inserts | Michael Kozono | 2017-12-01 | 1 | -2/+4 |
| | | |||||
| * | Fallback on checksum jobs | Michael Kozono | 2017-12-01 | 1 | -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 code | Michael Kozono | 2017-12-01 | 1 | -20/+0 |
| | | |||||
| * | Fix uploads.path length for long filenames | Michael Kozono | 2017-12-01 | 2 | -1/+26 |
| | | | | | | | | This will prevent our other migration for adding old files to the uploads table from breaking. | ||||
| * | Fix MySQL path field length | Michael Kozono | 2017-12-01 | 1 | -1/+1 |
| | | | | | | | | | | | | I believe the field only needs to fit 519 at the moment but I’m rounding up to be a little safer. See the migration spec for more detail on the magic number 519. | ||||
| * | Store paths relative to CarrierWave.root | Michael Kozono | 2017-12-01 | 5 | -68/+79 |
| | | | | | | | | | | | | 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. | ||||
| * | Fix `ionice` prepend | Michael Kozono | 2017-12-01 | 1 | -1/+1 |
| | | |||||
| * | Exclude `untracked_files_for_uploads` from schema | Michael Kozono | 2017-12-01 | 1 | -10/+0 |
| | | | | | | | | | | | | Because it is a temporary table meant only to facilitate a migration of data. It is referenced only by the post-deploy migration and 2 related background migrations. It should be dropped when the data migration is finished. | ||||
| * | Clean up after test | Michael Kozono | 2017-12-01 | 1 | -1/+7 |
| | | |||||
| * | Remove unnecessary clearing | Michael Kozono | 2017-12-01 | 2 | -7/+2 |
| | | | | | | | | Since duplicate inserts are now ignored. | ||||
| * | Reword test | Michael Kozono | 2017-12-01 | 1 | -1/+1 |
| | | |||||
| * | Rename table to untracked_files_for_uploads | Michael Kozono | 2017-12-01 | 7 | -157/+157 |
| | | |||||
| * | Refactor, no change in behavior | Michael Kozono | 2017-12-01 | 5 | -39/+53 |
| | | |||||
| * | Use `find` `-prune` option for performance | Michael Kozono | 2017-12-01 | 1 | -2/+4 |
| | | |||||
| * | Make regexes more readable | Michael Kozono | 2017-12-01 | 2 | -13/+13 |
| | | |||||
| * | Avoid instantiating an AR object and ignore dupes | Michael Kozono | 2017-12-01 | 1 | -1/+15 |
| | | |||||
| * | Add changelog entry | Michael Kozono | 2017-12-01 | 1 | -0/+5 |
| | |