Skip to content

Move collaborators import to stage before pull requests import

Carla Drago requested to merge 436320-map-by-username-gh into master

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.

  1. Checkout the branch
  2. In the console enable the feature flag: Feature.enable(:github_import_prioritize_collaborators)
  3. Import a GitHub project
  4. Observe in the "details" drop-down that collaborators import first

Related to #436320 (closed)

Edited by Carla Drago

Merge request reports