589b2db06c
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.
25 lines
1.1 KiB
Text
25 lines
1.1 KiB
Text
- title = _('Phabricator Server Import')
|
|
- page_title title
|
|
- breadcrumb_title title
|
|
- header_title _("Projects"), root_path
|
|
|
|
%h3.page-title
|
|
= icon 'issues', text: _('Import tasks from Phabricator into issues')
|
|
|
|
= render 'import/shared/errors'
|
|
|
|
= form_tag import_phabricator_path, class: 'new_project', method: :post do
|
|
= render 'import/shared/new_project_form'
|
|
|
|
%h4.prepend-top-0= _('Enter in your Phabricator Server URL and personal access token below')
|
|
|
|
.form-group.row
|
|
= label_tag :phabricator_server_url, _('Phabricator Server URL'), class: 'col-form-label col-md-2'
|
|
.col-md-4
|
|
= text_field_tag :phabricator_server_url, params[:phabricator_server_url], class: 'form-control append-right-8', placeholder: 'https://your-phabricator-server', size: 40
|
|
.form-group.row
|
|
= label_tag :api_token, _('API Token'), class: 'col-form-label col-md-2'
|
|
.col-md-4
|
|
= password_field_tag :api_token, params[:api_token], class: 'form-control append-right-8', placeholder: _('Personal Access Token'), size: 40
|
|
.form-actions
|
|
= submit_tag _('Import tasks'), class: 'btn btn-success'
|