Kamil Trzciński
8af23def1d
Revert "Merge branch '3867-port-to-ce' into 'master'"
...
This reverts commit 54a575f1bb , reversing
changes made to c63af942e5 .
2018-02-28 21:09:34 +01:00
Micaël Bergeron
2057a6acde
port of 594e6a0a625^..f74c90f68c6
2018-02-01 12:14:46 -05:00
Lin Jen-Shin
4f00a05152
Introduce PredicateMemoization cop and fix offenses
...
with StrongMemoize
2018-01-12 17:54:55 +08:00
Michael Kozono
fcbd2fe625
Follow symlinks
...
In particular, the Omnibus uploads directory is generally a symlink.
2017-12-04 12:57:44 -08:00
Michael Kozono
74b3870a95
Address Rubocop offenses
2017-12-01 15:26:42 -08:00
Michael Kozono
61a73cadb7
Get rid of timestamps on untracked files table
...
`updated_at` is now unnecessary and `created_at` is less useful due to removing the tracked field.
2017-12-01 15:26:42 -08:00
Michael Kozono
67b58ffdc3
Get rid of tracked field
...
It makes a debugging slightly easier, but is not necessary, and is a waste of resources.
2017-12-01 15:26:41 -08:00
Michael Kozono
a9155a94fe
Refactor
2017-12-01 15:26:41 -08:00
Michael Kozono
8def25d9f1
Fix datetime inserts on MySQL
2017-12-01 15:26:41 -08:00
Michael Kozono
edb5cac46c
Use bulk inserts
2017-12-01 15:26:41 -08:00
Michael Kozono
17ce21d74e
Use ionice absolute path
2017-12-01 15:26:41 -08:00
Michael Kozono
5552d1adf4
Log the find command used
2017-12-01 15:26:41 -08:00
Michael Kozono
87529ce582
Move temp table creation into the prepare job
...
* 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.
2017-12-01 15:26:41 -08:00
Michael Kozono
10c660be00
Fix migration for pre-Postgres 9.5
2017-12-01 15:26:41 -08:00
Michael Kozono
7fd2643419
Fix Rubocop offenses
2017-12-01 15:26:41 -08:00
Michael Kozono
c25b7c0e3f
Speed up inserts
2017-12-01 15:26:41 -08:00
Michael Kozono
3dc0b118ec
Store paths relative to CarrierWave.root
...
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.
2017-12-01 15:26:41 -08:00
Michael Kozono
81f061d5a4
Fix `ionice` prepend
2017-12-01 15:26:41 -08:00
Michael Kozono
c77a353dca
Remove unnecessary clearing
...
Since duplicate inserts are now ignored.
2017-12-01 15:26:41 -08:00
Michael Kozono
a210cb6b82
Rename table to untracked_files_for_uploads
2017-12-01 15:26:41 -08:00