Skip to content

[Bug]: TfsNodeStructureTool not applying filter properly #3001

@xFiero

Description

@xFiero

Version

  • I confirm that I am using the latest version

Source Version

Azure DevOps Service

Target Version

Azure DevOps Service

Relevant configuration

"TfsNodeStructureTool": {
        "Enabled": true,
        "Iterations": {
            "Filters": ["*"],
            "Mappings": [
              {
                "Match": "^ProjectA(\\\\.*)?$",
                "Replacement": "ProjectB\\ProjectA$1"
              }
            ]
          },
          "Areas": {
            "Filters": ["*"],
            "Mappings": [
              {
                "Match": "^ProjectA(\\\\.*)?$",
                "Replacement": "ProjectB\\ProjectA$1"
              }
            ]
          },
        "ReplicateAllExistingNodes": true,
        "ShouldCreateMissingRevisionPaths": true
      },

Relevant log output

MigrationTools.Tools.TfsNodeStructureTool[0]
The node \Project B\Area\ABC is being excluded due to your Filters setting on TfsNodeStructureToolOptions.

MigrationTools.Tools.TfsNodeStructureTool[0]
The node \Project B\Iteration\XYZ is being excluded due to your Filters setting on TfsNodeStructureToolOptions.

etc. for all iterations/areas from the source project.

What happened?

I am trying to apply a filter on iteration and area paths for migration. I have tried filter combinations as described in the documentation, but none of them seem to work. My filter is never applied.

For testing, I used a wildcard filter "*", expecting it to include all nodes and migrate them accordingly. However, even with the asterisk filter, all nodes are excluded and none get migrated. The mapping works fine though.

Debug in Visual Studio

  • Visual Studio Debug

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions