[7655] Upgrade GithubImport issue events mechanism
Firstly we tried to import issue event via request per each issue. It consumed to much time to be done although imported all events. Current upgrade uses single ednpoint per repository what descreases number of requests.But it unfortunately also exclude specificly cross-reference events. So, we keep ability to choose between - github_importer_single_endpoint_issue_events_import (that is expensive but full) - github_importer_issue_events_import (should become default) feature flags See details: https://gitlab.com/groups/gitlab-org/-/epics/7655 https://gitlab.com/gitlab-org/gitlab/-/issues/365977#note_1022018304
Showing
- app/workers/gitlab/github_import/stage/import_issue_events_worker.rb 15 additions, 13 deletions.../gitlab/github_import/stage/import_issue_events_worker.rb
- config/feature_flags/ops/github_importer_issue_events_import.yml 1 addition, 1 deletion...feature_flags/ops/github_importer_issue_events_import.yml
- config/feature_flags/ops/github_importer_single_endpoint_issue_events_import.yml 8 additions, 0 deletions...s/github_importer_single_endpoint_issue_events_import.yml
- db/structure.sql 71 additions, 71 deletionsdb/structure.sql
- lib/gitlab/github_import/importer/events/base_importer.rb 7 additions, 3 deletionslib/gitlab/github_import/importer/events/base_importer.rb
- lib/gitlab/github_import/importer/events/changed_assignee.rb 1 addition, 1 deletionlib/gitlab/github_import/importer/events/changed_assignee.rb
- lib/gitlab/github_import/importer/events/changed_label.rb 1 addition, 1 deletionlib/gitlab/github_import/importer/events/changed_label.rb
- lib/gitlab/github_import/importer/events/changed_milestone.rb 1 addition, 1 deletion...gitlab/github_import/importer/events/changed_milestone.rb
- lib/gitlab/github_import/importer/events/closed.rb 2 additions, 2 deletionslib/gitlab/github_import/importer/events/closed.rb
- lib/gitlab/github_import/importer/events/cross_referenced.rb 2 additions, 2 deletionslib/gitlab/github_import/importer/events/cross_referenced.rb
- lib/gitlab/github_import/importer/events/renamed.rb 1 addition, 1 deletionlib/gitlab/github_import/importer/events/renamed.rb
- lib/gitlab/github_import/importer/events/reopened.rb 2 additions, 2 deletionslib/gitlab/github_import/importer/events/reopened.rb
- lib/gitlab/github_import/importer/issue_event_importer.rb 2 additions, 3 deletionslib/gitlab/github_import/importer/issue_event_importer.rb
- lib/gitlab/github_import/importer/issue_events_importer.rb 35 additions, 0 deletionslib/gitlab/github_import/importer/issue_events_importer.rb
- lib/gitlab/github_import/importer/single_endpoint_issue_events_importer.rb 4 additions, 1 deletion..._import/importer/single_endpoint_issue_events_importer.rb
- lib/gitlab/github_import/issuable_finder.rb 2 additions, 0 deletionslib/gitlab/github_import/issuable_finder.rb
- lib/gitlab/github_import/representation/issue_event.rb 10 additions, 3 deletionslib/gitlab/github_import/representation/issue_event.rb
- spec/lib/gitlab/github_import/importer/events/base_importer_spec.rb 2 additions, 2 deletions...itlab/github_import/importer/events/base_importer_spec.rb
- spec/lib/gitlab/github_import/importer/events/changed_assignee_spec.rb 9 additions, 5 deletions...ab/github_import/importer/events/changed_assignee_spec.rb
- spec/lib/gitlab/github_import/importer/events/changed_label_spec.rb 9 additions, 4 deletions...itlab/github_import/importer/events/changed_label_spec.rb
Please register or sign in to comment