Commit 631a643
committed
🐛 (TfsTestPlansAndSuitesMigrationProcessor.cs): handle duplicate test plan names
Enhance the `FindTestPlan` method to handle scenarios where multiple
test plans have the same name. Previously, the code assumed that test
plan names were unique, which could lead to unexpected behavior or
errors if duplicates existed. The updated logic checks for multiple
test plans with the same name, logs a warning with their IDs, and
throws an exception to prevent further execution. This ensures that
the migration process does not proceed with ambiguous test plan
identification, maintaining data integrity.1 parent 80f93c2 commit 631a643
File tree
1 file changed
+11
-3
lines changed- src/MigrationTools.Clients.TfsObjectModel/Processors
1 file changed
+11
-3
lines changedLines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
607 | 607 | | |
608 | 608 | | |
609 | 609 | | |
610 | | - | |
611 | | - | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
612 | 620 | | |
613 | 621 | | |
614 | 622 | | |
| |||
1173 | 1181 | | |
1174 | 1182 | | |
1175 | 1183 | | |
1176 | | - | |
| 1184 | + | |
0 commit comments