Tiago Botelho
4bd8a427d4
Removes all the irrelevant import related code and columns
...
Clears the import related columns and code from the Project
model over to the ProjectImportState model
2018-11-27 12:58:13 +00:00
William George
1b153d497b
Make getting a user by the username case insensitive
2018-10-18 09:06:44 +00:00
James Lopez
fa1a75ae28
Merge branch 'sh-github-importer-improve-error' into 'master'
...
GitHub Rake importer: Fail with a clearer explanation if GitLab username is wrong
See merge request gitlab-org/gitlab-ce!19653
2018-06-11 18:29:03 +00:00
Stan Hu
28871d73ac
GitHub Rake importer: Fail with a clearer explanation if GitLab username is wrong
2018-06-11 11:03:17 -07:00
Stan Hu
6defeb0a7d
Expire Wiki content cache after importing a repository
...
The cache state for Wikis that were imported via GitHub or Bitbucket does
not appear to have been flushed after a successful import.
Closes #47546
2018-06-11 08:33:06 -07:00
Yorick Peterse
48cb1c5096
Restore GH enterprise support in the Rake task
...
This restores GH enterprise support in the GH import Rake task.
2017-11-08 21:20:46 +01:00
Yorick Peterse
ff082a003d
Fix the GH importer Rake task
...
This task was broken in a few areas with the removal of the old GitHub
importer code.
2017-11-08 18:17:27 +01:00
Yorick Peterse
6e242e8223
Replace old GH importer with the parallel importer
2017-11-07 23:25:03 +01:00
Rémy Coutable
f50b95b007
Ensure the import:github
task doesn't schedule an import job
...
The point of this task is to run the import in the foreground, so it
shouldn't schedule an import job!
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-10-05 10:48:26 +02:00
Rémy Coutable
80e4fee782
Don't mark the import as finished if it wasn't successful in the import:github
task
...
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-10-05 10:48:26 +02:00
Sean McGivern
5883ce95ef
current_application_settings
belongs on Gitlab::CurrentSettings
...
The initializers including this were doing so at the top level, so every object
loaded after them had a `current_application_settings` method. However, if
someone had rack-attack enabled (which was loaded before these initializers), it
would try to load the API, and fail, because `Gitlab::CurrentSettings` didn't
have that method.
To fix this:
1. Don't include `Gitlab::CurrentSettings` at the top level. We do not need
`Object.new.current_application_settings` to work.
2. Make `Gitlab::CurrentSettings` explicitly `extend self`, as we already use it
like that in several places.
3. Change the initializers to use that new form.
2017-08-31 13:38:33 +01:00
Bob Van Landuyt
22ef4ba3a4
Migrate creation of nested groups into a service
2017-08-23 13:36:38 +02:00
Douglas Barbosa Alexandre
812620527f
Fix small typoe on GitHub import rake task
2017-08-07 13:06:12 -03:00
Douglas Barbosa Alexandre
51186e72c5
Use a custom root endpoint if defined on GH ominiauth provider settings
2017-08-07 13:06:12 -03:00
Douglas Barbosa Alexandre
81995317f9
Use project.import_url to fetch repositories from Github
2017-08-07 13:06:12 -03:00
Tiago Botelho
810866ecb6
backports changed import logic from pull mirroring feature into CE
2017-06-05 23:09:10 +01:00
Douglas Barbosa Alexandre
d082b78998
Add basic progress output to GitHub import
2017-04-25 23:47:49 -03:00
Douglas Barbosa Alexandre
f184cb433b
Fix undefined attribute params from import task
2017-04-25 23:19:30 -03:00
Douglas Barbosa Alexandre
e50606cd2d
Refactor rake task to to import GitHub repositores
2017-04-24 16:17:52 -03:00
Douglas Barbosa Alexandre
bf0717802f
Does not remove the GitHub remote when importing from GitHub
2017-04-18 00:22:33 +00:00
Douglas Barbosa Alexandre
d4058995da
Fix rake test to import Github repositories
2017-04-07 14:45:08 -03:00
James Lopez
fca0097c0f
Github import rake task
2017-04-06 12:47:40 +00:00