From e1fa16e999771b1430f6261115ba60a1e072c751 Mon Sep 17 00:00:00 2001 From: "Martin Hinshelwood nkdAgility.com" Date: Thu, 5 Sep 2024 12:52:26 +0100 Subject: [PATCH 1/3] Update to lower case --- docs/setup/{ReflectedWorkItemId.md => reflectedworkitemid.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename docs/setup/{ReflectedWorkItemId.md => reflectedworkitemid.md} (100%) diff --git a/docs/setup/ReflectedWorkItemId.md b/docs/setup/reflectedworkitemid.md similarity index 100% rename from docs/setup/ReflectedWorkItemId.md rename to docs/setup/reflectedworkitemid.md From 305af7015bc32cf0f84480c81318a79c002985ec Mon Sep 17 00:00:00 2001 From: "Martin Hinshelwood nkdAgility.com" Date: Thu, 5 Sep 2024 13:00:34 +0100 Subject: [PATCH 2/3] Updated error message for missing work item type names --- .../Processors/TfsWorkItemMigrationProcessor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MigrationTools.Clients.TfsObjectModel/Processors/TfsWorkItemMigrationProcessor.cs b/src/MigrationTools.Clients.TfsObjectModel/Processors/TfsWorkItemMigrationProcessor.cs index df9e553c5..77363fce9 100644 --- a/src/MigrationTools.Clients.TfsObjectModel/Processors/TfsWorkItemMigrationProcessor.cs +++ b/src/MigrationTools.Clients.TfsObjectModel/Processors/TfsWorkItemMigrationProcessor.cs @@ -357,7 +357,7 @@ private WorkItemData CreateWorkItem_Shell(ProjectData destProject, WorkItemData } else { - throw new Exception(string.Format("WARNING: Unable to find '{0}' in the target project. Most likley this is due to a typo in the .json configuration under WorkItemTypeDefinition! ", destType)); + throw new Exception(string.Format("WARNING: Unable to find '{0}' in the target project. Either the work item specific is from the source, or its being specified in the {tool} defenition in your configuration file! ", destType, nameof(WorkItemTypeMappingTool))); } activity?.Stop(); activity?.SetStatus(ActivityStatusCode.Ok); From 18f628b7af20565fbeb8def0d07ba4dd98a7722e Mon Sep 17 00:00:00 2001 From: "Martin Hinshelwood nkdAgility.com" Date: Thu, 5 Sep 2024 16:51:36 +0100 Subject: [PATCH 3/3] Move over to production metrics --- src/MigrationTools/Services/ActivitySourceProvider.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MigrationTools/Services/ActivitySourceProvider.cs b/src/MigrationTools/Services/ActivitySourceProvider.cs index 492b44243..21e6c3f0c 100644 --- a/src/MigrationTools/Services/ActivitySourceProvider.cs +++ b/src/MigrationTools/Services/ActivitySourceProvider.cs @@ -22,7 +22,7 @@ namespace MigrationTools.Services public class ActivitySourceProvider { public static readonly string ActivitySourceName = "MigrationTools"; - private static string OpenTelemetryConnectionString = "InstrumentationKey=823d0de3-69c9-42ee-b902-de7675f681bc;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=4dd8f684-2f91-48ac-974f-dc898b686786"; + //private static string OpenTelemetryConnectionString = "InstrumentationKey=823d0de3-69c9-42ee-b902-de7675f681bc;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=4dd8f684-2f91-48ac-974f-dc898b686786"; private static string MigrationToolAIConnectionString = "InstrumentationKey=2d666f84-b3fb-4dcf-9aad-65de038d2772;IngestionEndpoint=https://northeurope-0.in.applicationinsights.azure.com/;LiveEndpoint=https://northeurope.livediagnostics.monitor.azure.com/;ApplicationId=9146fe72-5c18-48d7-a0f2-8fb891ef1277"; @@ -33,7 +33,7 @@ public class ActivitySourceProvider public static string GetConnectionString() { - return OpenTelemetryConnectionString; + return MigrationToolAIConnectionString; }