Commit Graph

36 Commits

Author SHA1 Message Date
Valery Sizov 3bc114a7c1 [BB Importer] Save the error trace and the whole raw document 2017-04-11 19:27:15 +03:00
Dongqing Hu 6dd7695444 Labels support color names in backend 2017-03-29 11:45:15 +00:00
Valery Sizov 5b0ebbe5b4 Add Wiki import to BB importer 2016-12-19 20:48:08 +02:00
Douglas Barbosa Alexandre fe9a372c0b Fix import issues method 2016-12-16 19:11:48 -02:00
Douglas Barbosa Alexandre dbe2ac8ccc Fix rubucop offenses 2016-12-16 17:11:54 -02:00
Valery Sizov 7985b52286 BB importer: Adressed more review comments 2016-12-16 17:36:56 +02:00
Valery Sizov b0501c34c4 BB importer: address review comment 2016-12-16 15:40:38 +02:00
Valery Sizov 3b4e81eed5 BB importer: Milestone importer 2016-12-16 13:24:12 +02:00
Valery Sizov 6bbe2f118e BB importer: More advanced error handling 2016-12-14 15:18:30 +02:00
Valery Sizov 8f0cef0b6e BB importer: Refactoring user importing logic[ci skip] 2016-12-14 12:35:13 +02:00
Valery Sizov e39f024029 BB importer: Adding created_by only when used is not found[ci skip] 2016-12-13 21:28:07 +02:00
Valery Sizov ff2193a3db Fix specs 2016-12-09 19:40:22 +02:00
Valery Sizov cc30a9f7ed Fix rubocop[ci skip] 2016-12-09 17:25:45 +02:00
Valery Sizov 00cd864237 BitBucket importer: import issues with labels 2016-12-07 18:04:02 +02:00
Valery Sizov 98c0eb0f75 BitBucket refactoring. Iteration 3 2016-12-07 15:54:32 +02:00
Valery Sizov b12d654183 BitBuckpet importer. Refactoring. Iteration 2 2016-12-07 14:00:06 +02:00
Valery Sizov 67b7637e5d Apply review comments. Iteration 1 2016-12-07 11:33:32 +02:00
Valery Sizov ee8433466e Fix importing PRs with not existing branches 2016-12-06 17:12:11 +02:00
Valery Sizov 54221b5a3b Fix inline comment importing for 1:1 diff type 2016-12-05 21:14:46 +02:00
Stan Hu 7a155137a4 Fix spec for Bitbucket importer 2016-11-21 22:06:09 -08:00
Stan Hu 402cc95c1a Fix Bitbucket importer spec to pass with 2.0 API 2016-11-21 20:49:40 -08:00
Stan Hu b8bf28348f Rubocop fixes 2016-11-21 16:47:29 -08:00
Stan Hu ea393e6f30 Import pull request comments 2016-11-21 16:47:28 -08:00
Stan Hu 82d7a3a3dd Fix typos in pull requests failing to import 2016-11-21 16:47:28 -08:00
Douglas Barbosa Alexandre 704115c726 Import opened pull request from Bitbucket 2016-11-21 16:47:27 -08:00
Douglas Barbosa Alexandre 317b020932 Refactoring Bitbucket importer to use the new OAuth2 client 2016-11-21 16:47:26 -08:00
Andrew Smith 9a9e22a88c
Rename `gl_user_id` to `gitlab_user_id` in importer classes 2016-09-08 11:57:22 +10:00
James Lopez 459ad34493 refactored code based on feedback plus fixed a couple of other issues 2016-03-28 16:35:03 +02:00
James Lopez 8aafe68583 first round of fixes and spec fixes 2016-03-22 17:53:53 +01:00
James Lopez 23146fca18 update bitbucket importer 2016-03-22 12:25:28 +01:00
Iuri de Silvio 591bf92ce7 Fix bug where Bitbucket `closed` issues were imported as `opened` 2016-03-07 19:23:47 +01:00
Douglas Barbosa Alexandre b58a2e30b2 Wrap errors on GitHub importer to raise Projects::ImportService::Error 2016-01-26 10:56:22 -02:00
Douglas Barbosa Alexandre c040323419 Move Gitlab::BitbucketImport::KeyDeleter to it's own importer 2016-01-26 10:56:22 -02:00
Stan Hu 2e9c922dd1 Fix bug where only the first 15 Bitbucket issues would be imported.
Also fix a number of issues where author/reporter names were not available.
2015-09-01 08:50:20 -07:00
Stan Hu ed1d4fa477 Remove user OAuth tokens stored in database for Bitbucket, GitHub, and GitLab
and request them each session. Pass these tokens to the project import data.

This prevents the need to encrypt these tokens and clear them in case they
expire or get revoked.

For example, if you deleted and re-created OAuth2 keys for Bitbucket, you would get
an Error 500 with no way to recover:

```
Started GET "/import/bitbucket/status" for x.x.x.x at 2015-08-07 05:24:10 +0000
Processing by Import::BitbucketController#status as HTML
Completed 500 Internal Server Error in 607ms (ActiveRecord: 2.3ms)

NameError (uninitialized constant Import::BitbucketController::Unauthorized):
  app/controllers/import/bitbucket_controller.rb:77:in `rescue in go_to_bitbucket_for_permissions'
  app/controllers/import/bitbucket_controller.rb:74:in `go_to_bitbucket_for_permissions'
  app/controllers/import/bitbucket_controller.rb:86:in `bitbucket_unauthorized'
```

Closes #1871
2015-08-23 09:23:44 -07:00
Douwe Maan ad6d623234 Add Bitbucket importer. 2015-02-24 15:07:24 +01:00