Move collaborators import to stage before pull requests import
What does this MR do and why?
This change moves collaborators import in the github importer run to before pull requests are imported. This change is required in order to eventually map usernames to email addresses for correct assignment when users are mentioned in pull request comments.
See #436320 (closed) for more details.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before
With the feature flag disabled: Pull Requests import before Collaborators:
After
With the feature flag enabled: Collaborators import before Pull Requests:
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Checkout the branch
- In the console enable the feature flag:
Feature.enable(:github_import_prioritize_collaborators)
- Import a GitHub project
- Observe in the "details" drop-down that
collaborators
import first
Related to #436320 (closed)