Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: TfsNodeStructureTool / Mappings is not stopping at the first match #2608

Open
2 tasks done
sbouchexbellomie-Philips opened this issue Jan 30, 2025 · 1 comment
Open
2 tasks done

Comments

@sbouchexbellomie-Philips

Version

  • I confirm that I am using the latest version

Source Version

Azure DevOps Service

Target Version

Azure DevOps Service

Relevant configuration

I'm using the TfsNodeStructureTool Iteration mappings to translate iteration paths.

I have 2 lines in the mapping definition:
- "Foo\\\\AAA\\\\123\\\\(.+)": "FooDest\\AAA\\$1"
- "Foo\\\\(.+)": "FooDest\\$1"

Relevant log output

[09:54:12 DBG] [16.0.10-Local.4-3-gd85fe4a5] NodeStructureEnricher.GetNewNodeName(Foo\AAA\123\test\azerty, Iteration)
[09:54:12 DBG] [16.0.10-Local.4-3-gd85fe4a5] NodeStructureEnricher.GetNewNodeName::Mappers
[09:54:12 DBG] [16.0.10-Local.4-3-gd85fe4a5] NodeStructureEnricher.GetNewNodeName::Mappers::Foo\\(.+)
[09:54:12 DBG] [16.0.10-Local.4-3-gd85fe4a5] NodeStructureEnricher.GetNewNodeName::Mappers::Foo\\(.+)::Match
[09:54:12 DBG] [16.0.10-Local.4-3-gd85fe4a5] NodeStructureEnricher.GetNewNodeName::Mappers::Foo\\(.+)::replaceWith(FooDest\AAA\123\test\azerty)

What happened?

Iteration path "Foo\AAA\123\test\azerty" should be translated to "Foo\AAA\test\azerty" instead of "FooDest\AAA\123\test\azerty"

Apparently, the match is done on all lines instead of stopping at the first match

Debug in Visual Studio

  • Visual Studio Debug
@MrHinsh
Copy link
Member

MrHinsh commented Jan 31, 2025

The first match would change the project to FooDest, and the second line would not then match. No?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants