Skip to content

Commit

Permalink
[Bug]: Target Query not Used (#2233)
Browse files Browse the repository at this point in the history
🐛 (WorkItemMigrationContext.cs): fix variable name from
_config.WIQLQuery to targetWIQLQuery

The variable name _config.WIQLQuery is incorrect and should be
targetWIQLQuery to match the intended logic and improve code
readability. This change ensures that the correct query is used for
filtering existing work items, preventing potential migration issues.

Fixes: #2232
  • Loading branch information
MrHinsh authored Aug 1, 2024
2 parents 08f4211 + 653bdc8 commit 272c96d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ protected override void InternalExecute()
Engine.Source.WorkItems.Project.Name, Engine.Target.WorkItems.Project.Name, contextLog);

sourceWorkItems = ((TfsWorkItemMigrationClient)Engine.Target.WorkItems).FilterExistingWorkItems(
sourceWorkItems, _config.WIQLQuery,
sourceWorkItems, targetWIQLQuery,
(TfsWorkItemMigrationClient)Engine.Source.WorkItems);
contextLog.Information(
"!! After removing all found work items there are {SourceWorkItemCount} remaining to be migrated.",
Expand Down

0 comments on commit 272c96d

Please sign in to comment.