nkdAgility/azure-devops-migration-tools

Remove `PrefixProjectToNodes` and replace with instructions for a Regex Mapping

MrHinsh opened this issue · 2 comments

PrefixProjectToNodes causes confusion and may not work will after so many years. Rather than debug it, it makes more sense to rely on the new, and more flexible, Regex area and iteration mappings.

"AreaMaps": {
  "^OriginalProject\\\\(DescopeThis|DescopeThat)": "TargetProject\\Archive\\Descoped\\",
  "^OriginalProject\\\\(?!DescopeThis|DescopeThat)": "TargetProject\\NewArea\\",
}

It may require an additional "ProjectNodeMapping" that will apply to the OriginalProject to TargetProject conversation for all area and iterations.

I tihnk this would do it!

"AreaMaps": {
  "^OriginalProject(?:\\\\([^\\\\]+))?\\\\([^\\\\]+)$": "TargetProject\\Q1\$2": "TargetProject\\BucketForIncommingAreas\$2",
}