diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-23 21:10:06 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-23 21:10:06 +0300 |
commit | 4a6e6c740b131b6291d553fcdab5a0612f8c099b (patch) | |
tree | c9b31140b4161e25f5395447272187e344ea9ca1 /doc/development/github_importer.md | |
parent | 228eb2ee910e2fb7f9bedf713c43a30c55cf3314 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/development/github_importer.md')
-rw-r--r-- | doc/development/github_importer.md | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/doc/development/github_importer.md b/doc/development/github_importer.md index a733d6881fa..91df33e6d95 100644 --- a/doc/development/github_importer.md +++ b/doc/development/github_importer.md @@ -69,7 +69,23 @@ don't need to perform this work in parallel. This worker imports all pull requests. For every pull request a job for the `Gitlab::GithubImport::ImportPullRequestWorker` worker is scheduled. -### 5. Stage::ImportIssuesAndDiffNotesWorker +### 5. Stage::ImportPullRequestsMergedByWorker + +This worker imports the pull requests' _merged-by_ user information. The [_List pull +requests_](https://docs.github.com/en/rest/reference/pulls#list-pull-requests) +API doesn't provide this information. Therefore, this stage must fetch each merged pull request +individually to import this information. A +`Gitlab::GithubImport::ImportPullRequestMergedByWorker` job is scheduled for each fetched pull +request. + +### 6. Stage::ImportPullRequestsReviewsWorker + +This worker imports the pull requests' reviews. For each pull request, this worker: + +- Fetches all the pages of reviews. +- Schedules a `Gitlab::GithubImport::ImportPullRequestReviewWorker` job for each fetched review. + +### 7. Stage::ImportIssuesAndDiffNotesWorker This worker imports all issues and pull request comments. For every issue, we schedule a job for the `Gitlab::GithubImport::ImportIssueWorker` worker. For @@ -85,7 +101,7 @@ label links in the same worker removes the need for performing a separate crawl through the API data, reducing the number of API calls necessary to import a project. -### 6. Stage::ImportNotesWorker +### 8. Stage::ImportNotesWorker This worker imports regular comments for both issues and pull requests. For every comment, we schedule a job for the @@ -96,7 +112,7 @@ returns comments for both issues and pull requests. This means we have to wait for all issues and pull requests to be imported before we can import regular comments. -### 7. Stage::FinishImportWorker +### 9. Stage::FinishImportWorker This worker completes the import process by performing some housekeeping (such as flushing any caches) and by marking the import as completed. |