Commit Graph

863 Commits

Author SHA1 Message Date
digitalMoksha 30a9fc33f3 static-analysis fix 2017-11-25 15:20:24 +01:00
digitalMoksha 3bb103f282 refactored the hashed repository name 2017-11-25 14:23:41 +01:00
digitalMoksha 17069a9547 ignore hashed repositories when doing rake gitlab:cleanup:dirs 2017-11-24 19:29:25 +01:00
Nick Thomas 11d0787961
Speed up Unicorn specs by using a dummy Rack application instead of GitLab 2017-11-22 19:51:57 +00:00
Jacob Vosmaer (GitLab) 571f1dda17 Add FetchSourceBranch Gitaly call 2017-11-22 10:19:42 +00:00
Brett Walker 5e861a0525 ignore hashed repos (for now) when using `rake gitlab:cleanup:repos` 2017-11-21 20:26:53 +00:00
Alejandro Rodríguez c33ca9d807 Use `make install` for Gitaly setups in non-test environments 2017-11-21 17:45:36 +00:00
Jacob Vosmaer (GitLab) 6f1e9f7ef7 Fix slow gitaly dev test bundle 2017-11-21 12:28:02 +00:00
digitalMoksha d8dee231bf remove the rake task `gitlab:sidekiq:drop_post_receive`
This task is no longer being used and is not documented.
2017-11-20 17:23:12 +01:00
Rémy Coutable 4f09d099e9 Merge branch '18040-rubocop-line-break-after-guard-clause' into 'master'
Adds Rubocop rule for line break after guard clause

Closes #18040

See merge request gitlab-org/gitlab-ce!15188
2017-11-20 09:22:14 +00:00
Jacopo 181cd299f9 Adds Rubocop rule for line break after guard clause
Adds a rubocop rule (with autocorrect) to ensure line break after guard clauses.
2017-11-16 17:58:29 +01:00
Eric Eastwood ce1a1aa1f6 Move :gay_pride_flag: to flags category 2017-11-15 07:36:19 -06:00
Eric Eastwood b5b3586543 Regenerate emoji digests with latest gemojione 2017-11-14 16:14:02 -06:00
Yorick Peterse 48cb1c5096
Restore GH enterprise support in the Rake task
This restores GH enterprise support in the GH import Rake task.
2017-11-08 21:20:46 +01:00
Yorick Peterse ff082a003d
Fix the GH importer Rake task
This task was broken in a few areas with the removal of the old GitHub
importer code.
2017-11-08 18:17:27 +01:00
Yorick Peterse 6e242e8223
Replace old GH importer with the parallel importer 2017-11-07 23:25:03 +01:00
James Lopez 1c8af321dd Improve GitLab Import rake task to work with Hashed Storage and Subgroups 2017-11-07 19:11:42 +00:00
digitalMoksha 734fab8a6b show better message when deciding not to continue 2017-11-07 16:10:57 +01:00
digitalMoksha 52bacf96b1 Make warning message more explicit 2017-11-07 15:29:04 +01:00
Douwe Maan c03d39df82 Remove tokens:reset_all_auth rake task 2017-11-02 11:39:02 +01:00
Douwe Maan cd3b4ba4ab Remove gitlab:users:clear_all_authentication_tokens rake task 2017-11-02 11:39:02 +01:00
Rémy Coutable b2373e3d6c
Ensure the ee-compat-check uses the correct patch URL for forks
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-10-31 17:44:07 +01:00
Rémy Coutable a5cc1c2613 Improve the gitlab:dev:ee_compat_check task to pass a repo URL without credentials
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-10-18 15:10:31 +02:00
Rémy Coutable c2efb6b193
Fix the ee_compat_check task for forks
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-10-06 12:20:03 +02:00
Douwe Maan cd60a02ad9 Merge branch 'zj-gitaly-namespace-service' into 'master'
Gitaly namespace service enabled for GitLab

See merge request gitlab-org/gitlab-ce!14274
2017-10-05 15:01:52 +00:00
Zeger-Jan van de Weg 4656283c5c
Gitaly namespace service enabled for GitLab 2017-10-05 14:11:32 +02:00
Rémy Coutable f50b95b007 Ensure the `import:github` task doesn't schedule an import job
The point of this task is to run the import in the foreground, so it
shouldn't schedule an import job!

Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-10-05 10:48:26 +02:00
Rémy Coutable 80e4fee782 Don't mark the import as finished if it wasn't successful in the `import:github` task
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-10-05 10:48:26 +02:00
Tim Zallmann 412571a4df Load only the currently needed JS locale file 2017-10-04 11:23:52 +00:00
Jacob Vosmaer e5fecc3a37 Create repositories via Gitaly 2017-09-29 18:27:06 +02:00
Gabriel Mazetto f4de14d71f
Add support to migrate existing projects to Hashed Storage async 2017-09-28 16:32:14 +01:00
Lin Jen-Shin 6be736a7d2 Enable ee_compat_check for forks, but not EE
We exclude known EE projects, and check the project directory
name for EE forks.
2017-09-15 02:06:48 +08:00
Gabriel Mazetto 2c489f8289 Refactor on namespace and repository checks and added specs 2017-09-12 06:57:22 +02:00
Gabriel Mazetto cc28abeafd Detect orphaned repositories and namespaces in any storage 2017-09-12 04:06:00 +02:00
Yorick Peterse 235b105c91
Finish migration to the new events setup
This finishes the procedure for migrating events from the old format
into the new format. Code no longer uses the old setup and the database
tables used during the migration process are swapped, with the old table
being dropped.

While the database migration can be reversed this will 1) take a lot of
time as data has to be coped around 2) won't restore data in the
"events.data" column as we have no way of restoring this.

Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/37241
2017-09-06 16:40:31 +02:00
Sean McGivern 446c7fc6f1 Merge branch 'system-checks-incoming-email' into 'master'
Move Incoming Email checks to System Checks

See merge request !14028
2017-09-06 09:02:47 +00:00
DJ Mountney f9dd41a775 Do not require the simple_po_parser in the gettext rake task when in a 2017-09-05 14:09:58 +00:00
Nick Thomas 48115be509 Add a system check for the git user's custom SSH configuration 2017-09-04 18:16:31 +01:00
Bob Van Landuyt 7199e882db Only require `simple_po_parser` in rake task that needs it
That way we don't need to install it in production, since it's really
not needed there.
2017-09-04 08:30:10 +02:00
Gabriel Mazetto 71000b394b Refactored Incoming Email checks to use SystemCheck library 2017-09-04 04:25:58 +02:00
Douwe Maan dceb2112d2 Merge branch 'bvl-validate-po-files' into 'master'
Validate PO files in static analysis

See merge request !13000
2017-09-01 14:30:43 +00:00
Bob Van Landuyt 0fa0ed7d85 Move `PoLinter` into `Gitlab::I18n` 2017-08-31 21:13:00 +02:00
Sean McGivern 5883ce95ef `current_application_settings` belongs on `Gitlab::CurrentSettings`
The initializers including this were doing so at the top level, so every object
loaded after them had a `current_application_settings` method. However, if
someone had rack-attack enabled (which was loaded before these initializers), it
would try to load the API, and fail, because `Gitlab::CurrentSettings` didn't
have that method.

To fix this:

1. Don't include `Gitlab::CurrentSettings` at the top level. We do not need
   `Object.new.current_application_settings` to work.
2. Make `Gitlab::CurrentSettings` explicitly `extend self`, as we already use it
   like that in several places.
3. Change the initializers to use that new form.
2017-08-31 13:38:33 +01:00
Bob Van Landuyt bde39322f1 Add a linter for PO files 2017-08-31 14:10:04 +02:00
Lin Jen-Shin c5553ce772 Use `git update-ref --stdin -z` to delete refs 2017-08-30 22:01:23 +08:00
Maxim Rydkin 6a56bec735 replace `is_gitlab_user?` with `gitlab_user?` 2017-08-29 11:14:41 +03:00
Bob Van Landuyt 22ef4ba3a4 Migrate creation of nested groups into a service 2017-08-23 13:36:38 +02:00
Bob Van Landuyt d8d2b73b9f Improve bare repository import
- Allow imports into nested groups
- Make sure it sets the correct visibility level when creating new
  groups

While doing this, I moved the import into a testable class, that made
it easier to improve.
2017-08-23 13:36:37 +02:00
Gabriel Mazetto 78823675b2 Prevent using gitlab import task when hashed storage is enabled 2017-08-22 06:33:20 +02:00
Robert Speicher 4edfad9678 Enable Layout/TrailingWhitespace cop and auto-correct offenses 2017-08-15 13:44:37 -04:00