Skip to content

Commit 55bd081

Browse files
CopilotMrHinsh
andcommitted
📝 Add comprehensive property documentation to Options classes
Co-authored-by: MrHinsh <[email protected]>
1 parent c4f0e2c commit 55bd081

21 files changed

+158
-8
lines changed

src/MigrationTools.Clients.AzureDevops.Rest/Processors/AzureDevOpsPipelineProcessorOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public AzureDevOpsPipelineProcessorOptions()
4646
public bool MigrateTaskGroups { get; set; }
4747

4848
/// <summary>
49-
/// Migrate Valiable Groups
49+
/// Migrate Variable Groups
5050
/// </summary>
5151
/// <default>true</default>
5252
public bool MigrateVariableGroups { get; set; }

src/MigrationTools.Clients.TfsObjectModel/Endpoints/TfsLanguageMapOptions.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,21 @@
55

66
namespace MigrationTools.Endpoints
77
{
8+
/// <summary>
9+
/// Configuration options for mapping language-specific field names between source and target TFS systems. Used to translate area path and iteration path field names when migrating between TFS instances with different language configurations.
10+
/// </summary>
811
public class TfsLanguageMapOptions : IValidateOptions<TfsLanguageMapOptions>
912
{
13+
/// <summary>
14+
/// Gets or sets the field name for the area path in the TFS system language (e.g., "Area" for English, "Zone" for French).
15+
/// </summary>
16+
/// <default>Area</default>
1017
public string AreaPath { get; set; }
18+
19+
/// <summary>
20+
/// Gets or sets the field name for the iteration path in the TFS system language (e.g., "Iteration" for English, "Itération" for French).
21+
/// </summary>
22+
/// <default>Iteration</default>
1123
public string IterationPath { get; set; }
1224

1325
public ValidateOptionsResult Validate(string name, TfsLanguageMapOptions options)

src/MigrationTools.Clients.TfsObjectModel/Endpoints/TfsWorkItemEndpointOptions.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,14 @@
22

33
namespace MigrationTools.Endpoints
44
{
5+
/// <summary>
6+
/// Configuration options for the TFS/Azure DevOps Work Item Endpoint that defines connection settings and query options for accessing work items in Team Foundation Server or Azure DevOps Server.
7+
/// </summary>
58
public class TfsWorkItemEndpointOptions : TfsEndpointOptions
69
{
10+
/// <summary>
11+
/// Gets or sets the query options that define which work items to retrieve from the source endpoint, including WIQL queries and parameters.
12+
/// </summary>
713
public QueryOptions Query { get; set; }
814

915
//public override void SetDefaults()

src/MigrationTools.Clients.TfsObjectModel/Processors/TfsWorkItemBulkEditProcessorOptions.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ namespace MigrationTools._EngineV1.Configuration.Processing
1111
/// </summary>
1212
public class TfsWorkItemBulkEditProcessorOptions : ProcessorOptions, IWorkItemProcessorConfig
1313
{
14+
/// <summary>
15+
/// Gets or sets a value indicating whether to run in "what if" mode without making actual changes to work items.
16+
/// </summary>
17+
/// <default>false</default>
1418
public bool WhatIf { get; set; }
1519

1620

src/MigrationTools.Clients.TfsObjectModel/Processors/TfsWorkItemDeleteProcessorOptions.cs

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,45 @@
66

77
namespace MigrationTools.Processors
88
{
9+
/// <summary>
10+
/// Configuration options for the TFS Work Item Delete Processor that removes work items from the target system based on specified criteria.
11+
/// </summary>
912
public class TfsWorkItemDeleteProcessorOptions : ProcessorOptions, IWorkItemProcessorConfig
1013
{
1114

12-
15+
/// <summary>
16+
/// Initializes a new instance of the TfsWorkItemDeleteProcessorOptions class with default settings.
17+
/// </summary>
1318
public TfsWorkItemDeleteProcessorOptions()
1419
{
1520
Enabled = false;
1621
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";
1722
}
1823

24+
/// <summary>
25+
/// Gets or sets the WIQL query used to select work items for deletion. Should return a list of work item IDs.
26+
/// </summary>
27+
/// <default>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</default>
1928
public string WIQLQuery { get; set; }
29+
30+
/// <summary>
31+
/// Gets or sets a specific list of work item IDs to delete. When specified, takes precedence over the WIQL query.
32+
/// </summary>
2033
public IList<int> WorkItemIDs { get; set; }
34+
35+
/// <summary>
36+
/// Gets or sets a value indicating whether to filter out work items that already exist in the target before deletion. Typically used to avoid deleting items that shouldn't be removed.
37+
/// </summary>
2138
public bool FilterWorkItemsThatAlreadyExistInTarget { get; set; }
39+
40+
/// <summary>
41+
/// Gets or sets a value indicating whether to pause after each work item is deleted for review or debugging purposes.
42+
/// </summary>
2243
public bool PauseAfterEachWorkItem { get; set; }
44+
45+
/// <summary>
46+
/// Gets or sets the number of retry attempts for work item deletion operations when they fail due to transient errors.
47+
/// </summary>
2348
public int WorkItemCreateRetryLimit { get; set; }
2449

2550
}

src/MigrationTools.Clients.TfsObjectModel/Tools/TfsAttachmentToolOptions.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
namespace MigrationTools.Tools
44
{
5+
/// <summary>
6+
/// Configuration options for the TFS Attachment Tool that handles the migration of work item attachments between TFS/Azure DevOps systems.
7+
/// </summary>
58
public class TfsAttachmentToolOptions : ToolOptions, ITfsAttachmentToolOptions
69
{
710
/// <summary>

src/MigrationTools.Clients.TfsObjectModel/Tools/TfsUserMappingToolOptions.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
namespace MigrationTools.Tools
66
{
7+
/// <summary>
8+
/// Configuration options for the TFS User Mapping Tool that handles the mapping of user identities between source and target systems during work item migration.
9+
/// </summary>
710
public class TfsUserMappingToolOptions : ToolOptions, ITfsUserMappingToolOptions
811
{
912

src/MigrationTools.Clients.TfsObjectModel/Tools/TfsValidateRequiredFieldToolOptions.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
namespace MigrationTools.Tools
66
{
7+
/// <summary>
8+
/// Configuration options for the TFS Validate Required Field Tool that ensures all required fields are properly populated during work item migration.
9+
/// </summary>
710
public class TfsValidateRequiredFieldToolOptions : ToolOptions
811
{
912

src/MigrationTools.Clients.TfsObjectModel/Tools/TfsWorkItemLinkToolOptions.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66

77
namespace MigrationTools.Tools
88
{
9+
/// <summary>
10+
/// Configuration options for the TFS Work Item Link Tool that manages the migration and processing of work item links between items.
11+
/// </summary>
912
public class TfsWorkItemLinkToolOptions : ToolOptions, ITfsWorkItemLinkToolOptions
1013
{
1114

src/MigrationTools.ConsoleDataGenerator/ClassDataLoader.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ namespace MigrationTools.ConsoleDataGenerator
2121
public class ClassDataLoader
2222
{
2323
private DataSerialization saveData;
24-
private static CodeDocumentation codeDocs = new CodeDocumentation("../../../../../docs/Reference/Generated/");
25-
private static CodeFileFinder codeFinder = new CodeFileFinder("../../../../../src/");
24+
private static CodeDocumentation codeDocs = new CodeDocumentation("../../docs/Reference/Generated/");
25+
private static CodeFileFinder codeFinder = new CodeFileFinder("../");
2626
private IConfiguration configuration;
2727
public ClassDataLoader(DataSerialization saveData, Microsoft.Extensions.Configuration.IConfiguration configuration)
2828
{

0 commit comments

Comments
 (0)