-
-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR 37: Merge fixBuildNumber to master +semver:minor
- Updated to use full build number +semver:patch - Merge branch 'master' - Fixed build number and added more trace to detect user erros - Updated to add new blanking field
- Loading branch information
Showing
10 changed files
with
80 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
TfsWitMigrator.Core/Configuration/FieldMap/FieldBlankMapConfig.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using VSTS.DataBulkEditor.Engine.ComponentContext; | ||
|
||
namespace VSTS.DataBulkEditor.Engine.Configuration.FieldMap | ||
{ | ||
public class FieldBlankMapConfig : IFieldMapConfig | ||
{ | ||
public string WorkItemTypeName { get; set; } | ||
public string targetField { get; set; } | ||
public Type FieldMap | ||
{ | ||
get | ||
{ | ||
return typeof(FieldBlankMap); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using Microsoft.TeamFoundation.WorkItemTracking.Client; | ||
using System.Diagnostics; | ||
using VSTS.DataBulkEditor.Engine.Configuration.FieldMap; | ||
|
||
namespace VSTS.DataBulkEditor.Engine.ComponentContext | ||
{ | ||
public class FieldBlankMap : FieldMapBase | ||
{ | ||
private FieldBlankMapConfig config; | ||
|
||
public FieldBlankMap(FieldBlankMapConfig config) | ||
{ | ||
this.config = config; | ||
} | ||
|
||
internal override void InternalExecute(WorkItem source, WorkItem target) | ||
{ | ||
if (target.Fields.Contains(config.targetField)) | ||
{ | ||
target.Fields[config.targetField].Value = ""; | ||
Trace.WriteLine(string.Format(" [UPDATE] field mapped {0}:{1} to {2} blanked", source.Id, target.Id, this.config.targetField)); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters