Commit graph

16 commits

Author SHA1 Message Date
Valery Sizov
5b0ebbe5b4 Add Wiki import to BB importer 2016-12-19 20:48:08 +02:00
Valery Sizov
26628fb91a BB importer: Fixed bug with putting expired token to a project.clone_url 2016-12-15 14:19:28 +02:00
Stan Hu
9860488360 Fix missing Bitbucket ProjectController changes for specifying namespace/project 2016-11-21 16:47:28 -08:00
Douglas Barbosa Alexandre
ceac7878e9 Clone Bitbucket repositories over HTTPS 2016-11-21 16:47:26 -08:00
James Lopez
1322c981a0 create import data in service 2016-05-10 11:10:51 +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
5e51fce4dc some refactoring to symbolise keys across importers and left a TODO 2016-04-05 15:41:15 +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
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
Gabriel Mazetto
b5291f9599 Fixed Rubocop offenses 2015-12-15 00:53:52 -02: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
99abbe7dbe Use Projects::CreateService to create imported projects so hooks are executed. 2015-04-06 14:51:09 +02:00
Douwe Maan
ad6d623234 Add Bitbucket importer. 2015-02-24 15:07:24 +01:00