File tree Expand file tree Collapse file tree 4 files changed +15
-1
lines changed
docs/content/docs/reference/tools/tfs-workitemtype-validator-tool
src/MigrationTools.Clients.TfsObjectModel Expand file tree Collapse file tree 4 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 33 "azureFunctions.projectLanguage" : " C#" ,
44 "azureFunctions.projectRuntime" : " ~4" ,
55 "debug.internalConsoleOptions" : " neverOpen" ,
6- "azureFunctions.preDeployTask" : " publish (functions)"
6+ "azureFunctions.preDeployTask" : " publish (functions)" ,
7+ "dotnet.defaultSolution" : " MigrationTools.slnx"
78}
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ dataFile: reference.tools.tfsworkitemtypevalidatortool.yaml
55schemaFile : schema.tools.tfsworkitemtypevalidatortool.json
66slug : work-item-type-validator-tool
77aliases :
8+ - /TfsWorkItemTypeValidatorTool
89- /docs/Reference/Tools/WorkItemTypeValidatorTool
910- /Reference/Tools/WorkItemTypeValidatorTool
1011- /learn/azure-devops-migration-tools/Reference/Tools/WorkItemTypeValidatorTool
Original file line number Diff line number Diff line change @@ -249,6 +249,11 @@ protected override void InternalExecute()
249249
250250 private void ValidateWorkItemTypes ( )
251251 {
252+ Log . LogInformation ( "[ValidateWorkItemTypes]" ) ;
253+ Log . LogInformation ( "------------------------------------" ) ;
254+ Log . LogInformation ( "Starting Pre-Validation: Validating work item types and fields with `WorkItemTypeValidatorTool`." ) ;
255+ Log . LogInformation ( "Refer to https://devopsmigration.io/TfsWorkItemTypeValidatorTool/ for configuration." ) ;
256+ Log . LogInformation ( "------------------------------------" ) ;
252257 if ( CommonTools . WorkItemTypeValidatorTool . Enabled )
253258 {
254259 var sourceWits = Source . WorkItems . Project
@@ -264,6 +269,7 @@ private void ValidateWorkItemTypes()
264269 if ( ! CommonTools . WorkItemTypeValidatorTool . ValidateWorkItemTypes (
265270 sourceWits , targetWits , Target . Options . ReflectedWorkItemIdField ) )
266271 {
272+ Log . LogError ( "Validation of work item types failed." ) ;
267273 Environment . Exit ( - 1 ) ;
268274 }
269275 }
@@ -275,6 +281,8 @@ private void ValidateWorkItemTypes()
275281 + " or migration may not work at all." ;
276282 Log . LogWarning ( msg ) ;
277283 }
284+ Log . LogInformation ( "------------------------------------" ) ;
285+ Log . LogInformation ( "[/ValidateWorkItemTypes]" ) ;
278286 }
279287
280288 private void ValidateAllUsersExistOrAreMapped ( List < WorkItemData > sourceWorkItems )
Original file line number Diff line number Diff line change 1010
1111namespace MigrationTools . Tools
1212{
13+ /// <summary>
14+ /// This tool checks if the work item types in the source system have corresponding types in the target system,
15+ /// and validates their fields and mappings.
16+ /// </summary>
1317 public class TfsWorkItemTypeValidatorTool : Tool < TfsWorkItemTypeValidatorToolOptions >
1418 {
1519 private readonly IWorkItemTypeMappingTool _witMappingTool ;
You can’t perform that action at this time.
0 commit comments