From 653bdc8b259157e8f883d5fab8ed1f3d82ec451d Mon Sep 17 00:00:00 2001 From: "Martin Hinshelwood nkdAgility.com" Date: Thu, 1 Aug 2024 14:21:22 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20(WorkItemMigrationContext.cs):?= =?UTF-8?q?=20fix=20variable=20name=20from=20=5Fconfig.WIQLQuery=20to=20ta?= =?UTF-8?q?rgetWIQLQuery?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- .../Execution/MigrationContext/WorkItemMigrationContext.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/VstsSyncMigrator.Core/Execution/MigrationContext/WorkItemMigrationContext.cs b/src/VstsSyncMigrator.Core/Execution/MigrationContext/WorkItemMigrationContext.cs index d7bd7e89e..6cdb5f460 100644 --- a/src/VstsSyncMigrator.Core/Execution/MigrationContext/WorkItemMigrationContext.cs +++ b/src/VstsSyncMigrator.Core/Execution/MigrationContext/WorkItemMigrationContext.cs @@ -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.",