Replies: 1 comment
-
It does a private static bool TryMatchIdentity(
TeamMemberCapacityIdentityRef sourceCapacity,
Lazy<List<TeamFoundationIdentity>> identityCache,
Dictionary<string, string> userMapping,
out TeamFoundationIdentity targetIdentity)
{
var sourceName = sourceCapacity.TeamMember.DisplayName;
var index = sourceName.IndexOf("<");
if (index > 0)
{
sourceName = sourceName.Substring(0, index).Trim();
}
targetIdentity = MatchIdentity(sourceName, identityCache);
if ((targetIdentity is null) && (userMapping is not null))
{
if (userMapping.TryGetValue(sourceName, out var mappedName) && !string.IsNullOrEmpty(mappedName))
{
targetIdentity = MatchIdentity(mappedName, identityCache);
}
}
// last attempt to match on unique name
// Match: "John Michael Bolden" to Bolden, "John Michael" on "[email protected]" unique name
if (targetIdentity is null)
{
var sourceUniqueName = sourceCapacity.TeamMember.UniqueName;
targetIdentity = identityCache.Value.FirstOrDefault(i => i.UniqueName == sourceUniqueName);
}
return targetIdentity is not null;
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When running TfsWorkItemMigrationProcessor, all my Teams are being re-created nicely, but without any Team Members.
I just get :
[SKIP] Team Member xx was not found on target when replacing capacities on iteration yy
I have previously run TfsExportUsersForMappingProcesnsorOptions, which generates an empty file "{}", which might be the case, even if I set OnlyListUsersInWorkItems to false
Beta Was this translation helpful? Give feedback.
All reactions