Skip to content

Commit

Permalink
Parent IsEmpty check when consuming the mapped node name
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Hjelm committed Apr 21, 2024
1 parent ea1857d commit 38315e0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/WorkItemMigrator/WorkItemImport/Agent.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Microsoft.TeamFoundation.Core.WebApi;
using Microsoft.TeamFoundation.Common;
using Microsoft.TeamFoundation.Core.WebApi;
using Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models;
using Microsoft.VisualStudio.Services.Common;
using Microsoft.VisualStudio.Services.Operations;
Expand Down Expand Up @@ -453,12 +454,12 @@ public string EnsureClasification(
if (structureGroup == TreeStructureGroup.Iterations)
{
nameMapped = GetMappedClassificationNodePath(_iterationPathMap, name);
fullNameMapped = $"{parent}/{nameMapped}";
fullNameMapped = parent.IsNullOrEmpty() ? nameMapped : $"{parent}/{nameMapped}";
}
else if (structureGroup == TreeStructureGroup.Areas)
{
nameMapped = GetMappedClassificationNodePath(_areaPathMap, name);
fullNameMapped = $"{parent}/{nameMapped}";
fullNameMapped = parent.IsNullOrEmpty() ? nameMapped : $"{parent}/{nameMapped}";
}
else
{
Expand Down

0 comments on commit 38315e0

Please sign in to comment.