Robert Speicher
51c167eeb7
Enable Performance/RangeInclude cop and fix single offense
2016-05-23 13:10:42 -04:00
James Lopez
1322c981a0
create import data in service
2016-05-10 11:10:51 +02:00
James Lopez
ce9310d63f
fix var error
2016-04-27 09:28:08 +02:00
James Lopez
a1a1d1f7de
refactored create_or_update_import_data
2016-04-07 15:08:38 +02:00
James Lopez
15044e7d85
refactored a few things based on MR feedback
2016-04-07 15:00:20 +02:00
James Lopez
b97654393e
fix some issues with credentials
2016-04-06 10:36:30 +02:00
James Lopez
5e51fce4dc
some refactoring to symbolise keys across importers and left a TODO
2016-04-05 15:41:15 +02:00
James Lopez
255cd31652
fixes after more import testing
2016-04-01 17:27:07 +02:00
James Lopez
075b56aae2
more fixes after doing more manual testing on importing
2016-03-29 18:43:23 +02:00
James Lopez
c93570d8fb
fixing a few issues after testing imports
2016-03-29 16:10:35 +02: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
46346caf5b
fix rubocop warning
2016-03-22 18:14:13 +01:00
James Lopez
8aafe68583
first round of fixes and spec fixes
2016-03-22 17:53:53 +01:00
James Lopez
3b78885eac
encrypt credentials in project_creator for bitbucket by default
2016-03-22 12:26:50 +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
Gabriel Mazetto
b5291f9599
Fixed Rubocop offenses
2015-12-15 00:53:52 -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
31e4654b1f
Sort issues by creation date in Bitbucket importer
...
API reference here: https://bitbucket.org/site/master/issues/3571/api-issues-sorting-bb-3518
Closes https://github.com/gitlabhq/gitlabhq/issues/9519
2015-09-01 08:46:42 -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
Stan Hu
d7accda1ae
Show incompatible projects in Bitbucket import status
...
See #1871
2015-08-07 07:07:08 -07:00
Douwe Maan
42ebd902de
Fix bug causing Bitbucket importer to crash when OAuth application had been removed.
2015-07-28 15:33:16 +02:00
Douwe Maan
99abbe7dbe
Use Projects::CreateService to create imported projects so hooks are executed.
2015-04-06 14:51:09 +02:00
Stan Hu
5cce0645b0
Fix OAuth2 issue importing a new project from GitHub and GitLab
...
Closes #1268
2015-03-22 18:16:48 -07:00
Douwe Maan
2718955441
Fix import pages not working after first load.
2015-03-13 13:47:26 +01:00
Douwe Maan
3fde1dce1f
Satisfy Rubocop.
2015-02-24 15:07:25 +01:00
Douwe Maan
6979b3afd5
Delete deploy key from Bitbucket after importing.
2015-02-24 15:07:24 +01:00
Douwe Maan
448817c4de
Load public key in initializer.
2015-02-24 15:07:24 +01:00
Douwe Maan
ad6d623234
Add Bitbucket importer.
2015-02-24 15:07:24 +01:00