Commit 4aff69a
authored
Add fieldMapMode to FieldToFieldMap and update related documentation (#2957)
This pull request adds a new `fieldMapMode` option to the
FieldToFieldMap configuration, allowing users to specify how fields are
mapped during migration—either from the source to the target system or
between target fields. The update includes code changes, schema updates,
documentation, and example configurations to support this new feature.
**Field Mapping Mode Feature:**
* Introduced the `FieldMapMode` enum with `SourceToTarget` and
`TargetToTarget` options, and added the `fieldMapMode` property to
`FieldToFieldMapOptions`, defaulting to `SourceToTarget`. This allows
users to control the direction and context of field mapping.
[[1]](diffhunk://#diff-81182bfd75331f6d5d0de7c559392ef9f61f2c0b7636cde99743276795186f21R3-R31)
[[2]](diffhunk://#diff-81182bfd75331f6d5d0de7c559392ef9f61f2c0b7636cde99743276795186f21R53)
* Updated the `InternalExecute` method in `FieldToFieldMap.cs` to use
the new `fieldMapMode` property, determining whether to map from the
source or target field, and improved logging to reflect the mapping mode
used.
**Schema and Documentation Updates:**
* Added `fieldMapMode` to relevant JSON schema files
(`configuration.schema.json`, `schema.fieldmaps.fieldtofieldmap.json`,
`schema.tools.fieldmappingtool.json`) with descriptions and default
values, ensuring configuration validation and discoverability.
[[1]](diffhunk://#diff-52f03d9f526916598fa826728ae4633eae3ac279b3dd76548f1e6fdb93686ae4R1925-R1929)
[[2]](diffhunk://#diff-08b834ba0de2813a02c071d1dfb9f98d0c6ac07c677008117f4d347c57fe42ffR20-R24)
[[3]](diffhunk://#diff-8f718075f4ee2192874e43b363e8f395b1d9beb3f3024abd75a21fb64ed2f306R192-R196)
* Updated documentation and YAML reference files to include the new
`fieldMapMode` option in configuration samples and parameter lists,
providing clear guidance and usage examples.
[[1]](diffhunk://#diff-996da70e5724b7d991c1ad90fe0dc3d90658e67c22b3f787a8e5f3798ca2c507R57)
[[2]](diffhunk://#diff-996da70e5724b7d991c1ad90fe0dc3d90658e67c22b3f787a8e5f3798ca2c507R89-R94)
[[3]](diffhunk://#diff-d7cdd7597baae20026f0d5712a1fbba7d3daf959928a6001720f6d93e8d3c5f3R71)
**Miscellaneous:**
* Added a missing `using System.Windows.Forms;` directive in
`FieldToFieldMap.cs`File tree
7 files changed
+60
-8
lines changed- docs
- content/docs/how-to/migrating-plans-and-suites
- data/classes
- static/schema
- src
- MigrationTools.Clients.TfsObjectModel/Tools/FieldMappingTool/FieldMaps
- MigrationTools/Tools/FieldMappingTool/FieldMaps
7 files changed
+60
-8
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
88 | 95 | | |
89 | 96 | | |
90 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1922 | 1922 | | |
1923 | 1923 | | |
1924 | 1924 | | |
| 1925 | + | |
| 1926 | + | |
| 1927 | + | |
| 1928 | + | |
| 1929 | + | |
1925 | 1930 | | |
1926 | 1931 | | |
1927 | 1932 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
20 | 25 | | |
21 | 26 | | |
22 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
192 | 197 | | |
193 | 198 | | |
194 | 199 | | |
| |||
Lines changed: 15 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | | - | |
44 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
45 | 56 | | |
46 | 57 | | |
47 | 58 | | |
48 | 59 | | |
49 | | - | |
50 | 60 | | |
51 | | - | |
| 61 | + | |
52 | 62 | | |
53 | | - | |
| 63 | + | |
Lines changed: 22 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
7 | 18 | | |
8 | 19 | | |
9 | 20 | | |
10 | 21 | | |
11 | 22 | | |
12 | 23 | | |
13 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
14 | 32 | | |
15 | 33 | | |
16 | 34 | | |
17 | 35 | | |
18 | | - | |
| 36 | + | |
19 | 37 | | |
20 | 38 | | |
21 | 39 | | |
22 | 40 | | |
23 | | - | |
| 41 | + | |
24 | 42 | | |
25 | 43 | | |
26 | 44 | | |
| |||
32 | 50 | | |
33 | 51 | | |
34 | 52 | | |
| 53 | + | |
35 | 54 | | |
36 | 55 | | |
37 | | - | |
| 56 | + | |
0 commit comments