Commit Graph

23 Commits

Author SHA1 Message Date
GitLab Bot e9ab418709 Add latest changes from gitlab-org/gitlab@master 2021-10-04 15:12:14 +00:00
GitLab Bot eaec42f9e3 Add latest changes from gitlab-org/gitlab@master 2021-09-30 15:12:24 +00:00
GitLab Bot a1ed241c82 Add latest changes from gitlab-org/gitlab@master 2021-02-03 21:09:17 +00:00
GitLab Bot dcacb5daf7 Add latest changes from gitlab-org/gitlab@master 2021-01-11 18:10:43 +00:00
GitLab Bot 142890d5bb Add latest changes from gitlab-org/gitlab@master 2020-11-26 12:09:48 +00:00
GitLab Bot 9086e66ee7 Add latest changes from gitlab-org/gitlab@master 2020-10-23 15:08:42 +00:00
GitLab Bot 5c2377d195 Add latest changes from gitlab-org/gitlab@master 2020-09-29 18:09:52 +00:00
GitLab Bot 57a4861dd1 Add latest changes from gitlab-org/gitlab@master 2020-08-19 00:10:34 +00:00
GitLab Bot db73de5d6d Add latest changes from gitlab-org/gitlab@master 2020-08-07 21:10:07 +00:00
GitLab Bot d5cf5cf4f7 Add latest changes from gitlab-org/gitlab@master 2020-07-17 00:09:37 +00:00
GitLab Bot 4774fa00b7 Add latest changes from gitlab-org/gitlab@master 2020-06-15 15:08:20 +00:00
GitLab Bot 7379b60d2c Add latest changes from gitlab-org/gitlab@master 2020-05-21 09:08:04 +00:00
GitLab Bot 219eead23f Add latest changes from gitlab-org/gitlab@master 2020-03-10 18:08:17 +00:00
Bob Van Landuyt 589b2db06c Setup Phabricator import
This sets up all the basics for importing Phabricator tasks into
GitLab issues.

To import all tasks from a Phabricator instance into GitLab, we'll
import all of them into a new project that will have its repository
disabled.

The import is hooked into a regular ProjectImport setup, but similar
to the GitHub parallel importer takes care of all the imports itself.

In this iteration, we're importing each page of tasks in a separate
sidekiq job.

The first thing we do when requesting a new page of tasks is schedule
the next page to be imported. But to avoid deadlocks, we only allow a
single job per worker type to run at the same time.

For now we're only importing basic Issue information, this should be
extended to richer information.
2019-05-31 09:40:54 +02:00
Luke Bennett 534a61179e
Improve the GitHub and Gitea import feature table interface
These are backend changes.
Use Vue for the import feature UI for "githubish"
providers (GitHub and Gitea).
Add "Go to project" button after a successful import.
Use CI-style status icons and improve spacing of the
table and its component.
Adds ETag polling to the github and gitea import
jobs endpoint.
2019-02-13 00:15:57 +00:00
Stan Hu 1f18823687 Downcase aliased OAuth2 callback providers
Users may specify an OAuth2 callback with a custom name, such as
AWSCognito, but Rails will reject this with the following message:

```
'import/AWSCognito' is not a supported controller name. This can
lead to potential routing problems. See
http://guides.rubyonrails.org/routing.html#specifying-a-controller-to-use
```

To avoid these errors, we can just downcase all the provider names.
Note that this will make it impossible to specify a duplicate name with
different cases.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/57156
2019-02-01 22:32:53 -08:00
Stan Hu 88f2e9615c
Alias GitHub and BitBucket OAuth2 callback URLs
To prevent an OAuth2 covert redirect vulnerability, this commit adds and
uses an alias for the GitHub and BitBucket OAuth2 callback URLs to the
following paths:

GitHub: /users/auth/-/import/github
Bitbucket: /users/auth/-/import/bitbucket

This allows admins to put a more restrictive callback URL in the OAuth2
configuration settings. Instead of https://example.com, admins can now use:

https://example.com/users/auth

It's possible but not trivial to change Devise and OmniAuth to use a
different prefix for callback URLs instead of /users/auth. For now,
aliasing the import URLs under the /users/auth namespace should suffice.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/56663
2019-01-31 16:52:48 +01:00
Stan Hu 2d3fd6a142 Merge branch 'master' into sh-support-bitbucket-server-import 2018-07-12 05:21:37 -07:00
Dmitriy Zaporozhets 88e640374a Add manifest import feature
It allows user to automatically import multiple repositories
with nested structure by uploading a manifest xml file.

AOSP project was used as an example during development of this feature.

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2018-07-11 12:22:57 +03:00
Stan Hu ebd8e4333a WIP: Add support for Bitbucket Server imports 2018-06-25 13:06:10 -07:00
Rémy Coutable 103114e3d7 Rename Gogs to Gitea, DRY the controller and improve views
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-12-19 17:35:51 +01:00
Kim "BKC" Carlbäcker 5d4531db25 Gogs Importer 2016-12-19 17:35:51 +01:00
Dmitriy Zaporozhets f223a41660
Split routes on multiple files
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-10-05 15:21:27 +03:00