-
- Downloads
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.
Showing
- app/controllers/application_controller.rb 5 additions, 1 deletionapp/controllers/application_controller.rb
- app/controllers/import/phabricator_controller.rb 35 additions, 0 deletionsapp/controllers/import/phabricator_controller.rb
- app/views/import/gitlab_projects/new.html.haml 1 addition, 22 deletionsapp/views/import/gitlab_projects/new.html.haml
- app/views/import/manifest/new.html.haml 1 addition, 5 deletionsapp/views/import/manifest/new.html.haml
- app/views/import/phabricator/new.html.haml 25 additions, 0 deletionsapp/views/import/phabricator/new.html.haml
- app/views/import/shared/_errors.html.haml 4 additions, 0 deletionsapp/views/import/shared/_errors.html.haml
- app/views/import/shared/_new_project_form.html.haml 21 additions, 0 deletionsapp/views/import/shared/_new_project_form.html.haml
- app/views/projects/_import_project_pane.html.haml 7 additions, 0 deletionsapp/views/projects/_import_project_pane.html.haml
- config/routes/import.rb 2 additions, 0 deletionsconfig/routes/import.rb
- config/sidekiq_queues.yml 1 addition, 0 deletionsconfig/sidekiq_queues.yml
- doc/user/project/import/index.md 1 addition, 0 deletionsdoc/user/project/import/index.md
- doc/user/project/import/phabricator.md 32 additions, 0 deletionsdoc/user/project/import/phabricator.md
- lib/gitlab/github_import/parallel_importer.rb 1 addition, 17 deletionslib/gitlab/github_import/parallel_importer.rb
- lib/gitlab/http.rb 7 additions, 0 deletionslib/gitlab/http.rb
- lib/gitlab/import/set_async_jid.rb 27 additions, 0 deletionslib/gitlab/import/set_async_jid.rb
- lib/gitlab/import_sources.rb 2 additions, 1 deletionlib/gitlab/import_sources.rb
- lib/gitlab/phabricator_import.rb 12 additions, 0 deletionslib/gitlab/phabricator_import.rb
- lib/gitlab/phabricator_import/base_worker.rb 80 additions, 0 deletionslib/gitlab/phabricator_import/base_worker.rb
- lib/gitlab/phabricator_import/cache/map.rb 65 additions, 0 deletionslib/gitlab/phabricator_import/cache/map.rb
- lib/gitlab/phabricator_import/conduit.rb 9 additions, 0 deletionslib/gitlab/phabricator_import/conduit.rb
app/views/import/phabricator/new.html.haml
0 → 100644
app/views/import/shared/_errors.html.haml
0 → 100644
doc/user/project/import/phabricator.md
0 → 100644
lib/gitlab/import/set_async_jid.rb
0 → 100644
lib/gitlab/phabricator_import.rb
0 → 100644
lib/gitlab/phabricator_import/base_worker.rb
0 → 100644
lib/gitlab/phabricator_import/cache/map.rb
0 → 100644
lib/gitlab/phabricator_import/conduit.rb
0 → 100644
Please register or sign in to comment