gitlab-org--gitlab-foss/config/routes
Rémy Coutable 367b68a01d Merge branch '22348-gitea-importer' into 'master'
It adds a brand new importer for Gitea!

This is a continuation of !6945 started by @bkc.

Gitea aims to be 100% GitHub-compatible but there's a few differences:

- Gitea is not an OAuth provider (yet): https://github.com/go-gitea/gitea/issues/27
  - This means we cannot map Gitea users given an assignee ID => assignees are not set on imported issues and merge requests
- No releases API for now: https://github.com/go-gitea/gitea/issues/330
- API version is `v1` (GitHub is `v3`)
- The IID field for milestones is `id` compared to `number` in GitHub.
- Issues, PRs, milestones, labels don't have a `url` field (the importer now fallback to `''` in that case)

**Known issues:**

- Comments are not imported because comments JSON always have a blank `html_url`/`issue_url`/`pull_request_url`, so the IID cannot be extracted and the issuable cannot be found... :( This is tracked in https://github.com/go-gitea/gitea/issues/401, and solved by https://github.com/gogits/gogs/pull/3624 but this needs to be submitted / merged in Gitea.

This is noted in the documentation.

## Are there points in the code the reviewer needs to double check?

1. I've made `Import::GiteaController` inherit from `Import::GithubController` since both controllers should be identical in the long-term and their current differences are small.
1. I've added a base `IssuableFormatter` class from which `IssueFormatter` & `PullRequestFormatter` inherit
1. I've added shared examples for GitHub/Gitea importer classes
1. I've made `Gitlab::ImportSources` more robust and tested! 🎄 
1. I've added routing specs for import routes! 🎄 

Closes #22348

See merge request !8116
2016-12-20 11:11:24 +00:00
..
admin.rb Add support for nested groups to admin routing 2016-12-11 10:30:10 +02:00
api.rb Cleanup config/routes.rb even further by extracting more routes into separate files 2016-10-05 18:43:47 +03:00
ci.rb Cleanup config/routes.rb even further by extracting more routes into separate files 2016-10-05 18:43:47 +03:00
dashboard.rb
development.rb Cleanup config/routes.rb even further by extracting more routes into separate files 2016-10-05 18:43:47 +03:00
explore.rb
git_http.rb Add nested groups support to the routing 2016-11-23 14:08:36 +02:00
group.rb Fix 404 error when visit group label edit page 2016-12-06 18:50:48 +02:00
help.rb Cleanup config/routes.rb even further by extracting more routes into separate files 2016-10-05 18:43:47 +03:00
import.rb Rename Gogs to Gitea, DRY the controller and improve views 2016-12-19 17:35:51 +01:00
profile.rb Create relation between chat user and GitLab user and allow to authorize them [ci skip] 2016-11-16 13:42:35 +01:00
project.rb Add terminal UI and controller actions 2016-12-19 21:27:08 +00:00
repository.rb Add nested groups support to the routing 2016-11-23 14:08:36 +02:00
sherlock.rb Cleanup config/routes.rb even further by extracting more routes into separate files 2016-10-05 18:43:47 +03:00
sidekiq.rb Cleanup config/routes.rb even further by extracting more routes into separate files 2016-10-05 18:43:47 +03:00
snippets.rb Added 'Download' button to snippet view 2016-10-11 15:36:59 -04:00
uploads.rb
user.rb Add nested groups support to the routing 2016-11-23 14:08:36 +02:00
wiki.rb Add nested groups support to the routing 2016-11-23 14:08:36 +02:00