Commit Graph

14 Commits

Author SHA1 Message Date
Robert Speicher d281835ac6 Use Project `:repository` trait where necessary in migration specs 2017-03-27 18:45:36 -04:00
Kamil Trzciński 12dd5ac221 All CI offline migrations 2017-03-17 23:06:11 +00:00
Dmitriy Zaporozhets cd4db7b417
Reserve few project and nested group paths
That have wildcard routes associated and not reserved yet: artifacts,
graphs, badges and refs

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2017-03-13 15:47:24 +02:00
Douwe Maan 1fe7501b49 Revert "Prefer leading style for Style/DotPosition"
This reverts commit cb10b725c8929b8b4460f89c9d96c773af39ba6b.
2017-02-23 09:33:05 -06:00
Douwe Maan 206953a430 Prefer leading style for Style/DotPosition 2017-02-23 09:32:22 -06:00
Douwe Maan d78513cb6c Enable Security/JSONLoad 2017-02-23 09:31:57 -06:00
James Lopez 5d619ab8e5 fix typo, added relevant spec 2017-01-16 16:11:50 +01:00
Yorick Peterse c3a2d57415
Fill missing authorized projects rows
This ensures that the project_authorizations rows exist for all users
for which this data has not yet been populated.

Fixes #26194
2017-01-11 11:28:08 -05:00
Dmitriy Zaporozhets 6024697c10 Merge branch 'master' into 'dz-rename-reserved-project-names'
# Conflicts:
#   db/schema.rb
2016-12-27 16:34:20 +00:00
Yorick Peterse 123bc1d5eb
Fix rename projects spec so it doesn't hang
This spec would hang due to the use of transactions, and would
incorrectly stub Thread.new.
2016-12-27 13:45:44 +01:00
Dmitriy Zaporozhets dbfac0de06
Rename users with namespace ending with .git
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-12-26 16:14:41 +02:00
Dmitriy Zaporozhets d72b40423c Rename projects with reserved path names
We cant have project with name 'project' or 'tree' anymore.
This merge request containts a migration that will find and rename all
projects using reserved names by adding N digit to the end of the name.

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-12-24 19:39:51 +02:00
Yorick Peterse 43af4e5577
Encode when migrating ProcessCommitWorker jobs
If the source encoding is not UTF-8 we need to encode the data as
`JSON.dump` may throw an error if the input can not be converted to
UTF-8. We only encode when necessary to reduce the overhead.

Fixes gitlab-org/gitlab-ce#25489
2016-12-13 16:52:49 +01:00
Yorick Peterse 6b4d33566f
Pass commit data to ProcessCommitWorker
By passing commit data to this worker we remove the need for querying
the Git repository for every job. This in turn reduces the time spent
processing each job.

The migration included migrates jobs from the old format to the new
format. For this to work properly it requires downtime as otherwise
workers may start producing errors until they're using a newer version
of the worker code.
2016-12-01 13:36:06 +01:00