Handle missing users when user mapping in Bitbucket Server importer
What does this MR do and why?
In some cases, the BBS API returns no user details. When user mapping was
enabled, we would previously try to create an Import::SourceUser
with
a nil
source_user_identifier
which led to an ActiveRecord::RecordInvalid
error.
This change returns a nil
user ID in this situation which is handled
by existing code in the same way as when user mapping is disabled.
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.
Edited by Luke Duncalfe