Skip to content

Commit

Permalink
[preview] Cleanup (#1995)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrHinsh authored Mar 20, 2024
1 parent 048cd37 commit 8aadc6c
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 63 deletions.
3 changes: 0 additions & 3 deletions configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,11 @@
"UpdateCreatedDate": true,
"UpdateCreatedBy": true,
"WIQLQuery": "SELECT [System.Id] FROM WorkItems WHERE [System.Id] =137 AND [System.TeamProject] = @TeamProject AND [System.WorkItemType] NOT IN ('Program', 'Portfolio', 'Test Suite', 'Test Plan','Shared Steps','Shared Parameter','Feedback Request') ORDER BY [System.ChangedDate] desc",
"LinkMigration": true,
"FixHtmlAttachmentLinks": false,
"SkipToFinalRevisedWorkItemType": false,
"WorkItemCreateRetryLimit": 5,
"FilterWorkItemsThatAlreadyExistInTarget": false,
"PauseAfterEachWorkItem": false,
"AttachRevisionHistory": false,
"LinkMigrationSaveEachAsAdded": false,
"GenerateMigrationComment": true,
"WorkItemIDs": null,
"MaxGracefulFailures": 0,
Expand Down
3 changes: 1 addition & 2 deletions configuration2-wit.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,7 @@
},
{
"$type": "TfsWorkItemLinkEnricherOptions",
"Enabled": true,
"LinkMigrationSaveEachAsAdded": false
"Enabled": true
},
{
"$type": "TfsWorkItemCreatedEnricherOptions",
Expand Down
3 changes: 1 addition & 2 deletions configuration2.json
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,7 @@
},
{
"$type": "TfsWorkItemLinkEnricherOptions",
"Enabled": true,
"LinkMigrationSaveEachAsAdded": true
"Enabled": true
},
{
"$type": "TfsWorkItemCreatedEnricherOptions",
Expand Down
14 changes: 0 additions & 14 deletions docs/Reference/Generated/MigrationTools.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 0 additions & 10 deletions docs/_data/reference.v1.processors.workitemmigrationcontext.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@ configurationSamples:
"UpdateCreatedBy": true,
"WIQLQuery": "SELECT [System.Id] FROM WorkItems WHERE [System.TeamProject] = @TeamProject AND [System.WorkItemType] NOT IN ('Test Suite', 'Test Plan','Shared Steps','Shared Parameter','Feedback Request') ORDER BY [System.ChangedDate] desc",
"FixHtmlAttachmentLinks": false,
"SkipToFinalRevisedWorkItemType": false,
"WorkItemCreateRetryLimit": 5,
"FilterWorkItemsThatAlreadyExistInTarget": false,
"PauseAfterEachWorkItem": false,
"AttachRevisionHistory": false,
"LinkMigrationSaveEachAsAdded": false,
"GenerateMigrationComment": true,
"WorkItemIDs": null,
"MaxGracefulFailures": 0,
Expand Down Expand Up @@ -49,10 +47,6 @@ options:
type: Boolean
description: If enabled, adds a comment recording the migration
defaultValue: false
- parameterName: LinkMigrationSaveEachAsAdded
type: Boolean
description: "If you have changed parents before re-running a sync you may get a `TF26194: unable to change the value of the 'Parent' field` error. This will resolve it, but will slow migration."
defaultValue: false
- parameterName: MaxGracefulFailures
type: Int32
description: The maximum number of failures to tolerate before the migration fails. When set above zero, a work item migration error is logged but the migration will continue until the number of failed items reaches the configured value, after which the migration fails.
Expand All @@ -69,10 +63,6 @@ options:
type: Boolean
description: This will skip a revision if the source iteration has not been migrated i.e. it was deleted
defaultValue: missng XML code comments
- parameterName: SkipToFinalRevisedWorkItemType
type: Boolean
description: "**beta** If enabled this will fix any image attachments URL's, work item mention URL's or user mentions in the HTML fields as well as discussion comments. You must specify a PersonalAccessToken in the Source project for Azure DevOps; TFS should use integrated authentication."
defaultValue: false
- parameterName: UpdateCreatedBy
type: Boolean
description: "If this is enabled the creation process on the target project will create the items with the original creation date. (Important: The item history is always pointed to the date of the migration, it's change only the data column CreateDate, not the internal create date)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ configurationSamples:
"UpdateCreatedBy": true,
"WIQLQuery": "SELECT [System.Id] FROM WorkItems WHERE [System.TeamProject] = @TeamProject AND [System.WorkItemType] NOT IN ('Test Suite', 'Test Plan','Shared Steps','Shared Parameter','Feedback Request') ORDER BY [System.ChangedDate] desc",
"FixHtmlAttachmentLinks": false,
"SkipToFinalRevisedWorkItemType": false,
"WorkItemCreateRetryLimit": 5,
"FilterWorkItemsThatAlreadyExistInTarget": false,
"PauseAfterEachWorkItem": false,
"AttachRevisionHistory": false,
"LinkMigrationSaveEachAsAdded": false,
"GenerateMigrationComment": true,
"WorkItemIDs": null,
"MaxGracefulFailures": 0,
Expand Down Expand Up @@ -50,10 +48,6 @@ options:
type: Boolean
description: If enabled, adds a comment recording the migration
defaultValue: false
- parameterName: LinkMigrationSaveEachAsAdded
type: Boolean
description: "If you have changed parents before re-running a sync you may get a `TF26194: unable to change the value of the 'Parent' field` error. This will resolve it, but will slow migration."
defaultValue: false
- parameterName: MaxGracefulFailures
type: Int32
description: The maximum number of failures to tolerate before the migration fails. When set above zero, a work item migration error is logged but the migration will continue until the number of failed items reaches the configured value, after which the migration fails.
Expand All @@ -70,10 +64,6 @@ options:
type: Boolean
description: This will skip a revision if the source iteration has not been migrated i.e. it was deleted
defaultValue: missng XML code comments
- parameterName: SkipToFinalRevisedWorkItemType
type: Boolean
description: "**beta** If enabled this will fix any image attachments URL's, work item mention URL's or user mentions in the HTML fields as well as discussion comments. You must specify a PersonalAccessToken in the Source project for Azure DevOps; TFS should use integrated authentication."
defaultValue: false
- parameterName: UpdateCreatedBy
type: Boolean
description: "If this is enabled the creation process on the target project will create the items with the original creation date. (Important: The item history is always pointed to the date of the migration, it's change only the data column CreateDate, not the internal create date)"
Expand Down Expand Up @@ -251,7 +241,7 @@ topics:
- topic: introduction
path: /docs/Reference/v1/Processors/WorkItemMigrationContext-introduction.md
exists: true
markdown: >+
markdown: >
The `WorkItemMigrationContext` processor is used for migrating work items from one Azure DevOps instance to another. This encompasses a variety of activities:
Expand Down
6 changes: 1 addition & 5 deletions src/MigrationTools.Samples/configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,17 +128,13 @@
"AppendMigrationToolSignatureFooter": false,
"WiqlQuery": "SELECT [System.Id] FROM WorkItems WHERE [System.TeamProject] = @TeamProject AND [System.WorkItemType] NOT IN ('Test Suite', 'Test Plan')",
"Enabled": true,
"LinkMigration": true,
"AttachmentMigration": true,
"AttachmentWorkingPath": "c:\\temp\\WorkItemAttachmentWorkingFolder\\",
"FixHtmlAttachmentLinks": false,
"SkipToFinalRevisedWorkItemType": false,
"WorkItemCreateRetryLimit": 5,
"FilterWorkItemsThatAlreadyExistInTarget": true,
"PauseAfterEachWorkItem": false,
"AttachmentMaxSize": 480000000,
"CollapseRevisions": false,
"LinkMigrationSaveEachAsAdded": false
"CollapseRevisions": false
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,6 @@ public class WorkItemMigrationConfig : IWorkItemProcessorConfig
/// <default>?</default>
public bool FixHtmlAttachmentLinks { get; set; }

/// <summary>
/// **beta** If enabled this will fix any image attachments URL's, work item mention URL's or user mentions in the HTML fields as well as discussion comments. You must specify a
/// PersonalAccessToken in the Source project for Azure DevOps; TFS should use integrated authentication.
/// </summary>
/// <default>false</default>
public bool SkipToFinalRevisedWorkItemType { get; set; }

/// <summary>
/// **beta** If set to a number greater than 0 work items that fail to save will retry after a number of seconds equal to the retry count.
/// This allows for periodic network glitches not to end the process.
Expand All @@ -81,13 +74,6 @@ public class WorkItemMigrationConfig : IWorkItemProcessorConfig
/// <default>?</default>
public bool AttachRevisionHistory { get; set; }

/// <summary>
/// If you have changed parents before re-running a sync you may get a `TF26194: unable to change the value of the 'Parent' field` error.
/// This will resolve it, but will slow migration.
/// </summary>
/// <default>false</default>
public bool LinkMigrationSaveEachAsAdded { get; set; }

/// <summary>
/// If enabled, adds a comment recording the migration
/// </summary>
Expand Down Expand Up @@ -134,8 +120,6 @@ public WorkItemMigrationConfig()
FixHtmlAttachmentLinks = false;
UpdateCreatedBy = true;
UpdateCreatedDate = true;
SkipToFinalRevisedWorkItemType = false;
LinkMigrationSaveEachAsAdded = false;
GenerateMigrationComment = true;
WIQLQuery = @"SELECT [System.Id] FROM WorkItems WHERE [System.TeamProject] = @TeamProject AND [System.WorkItemType] NOT IN ('Test Suite', 'Test Plan','Shared Steps','Shared Parameter','Feedback Request') ORDER BY [System.ChangedDate] desc";
AttachRevisionHistory = false;
Expand Down

0 comments on commit 8aadc6c

Please sign in to comment.