Enable TfsNodeStructureTool upgrade command to convert old dictionary format to new array format#2754
Merged
Enable TfsNodeStructureTool upgrade command to convert old dictionary format to new array format#2754
Conversation
…array format Co-authored-by: MrHinsh <5205575+MrHinsh@users.noreply.github.com>
Co-authored-by: MrHinsh <5205575+MrHinsh@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Enable the Upgrade command to upgrade the old
Enable TfsNodeStructureTool upgrade command to convert old dictionary format to new array format
Jun 16, 2025
TfsNodeStructureTool format to the new one.
MrHinsh
approved these changes
Jun 16, 2025
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://blue-river-093197403-2754.westeurope.5.azurestaticapps.net |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
TfsNodeStructureToolhas been updated to use a new mapping format, but the upgrade command was not able to handle the conversion from the old dictionary format to the new array format.Problem
The old configuration format used dictionaries for mappings:
The new format uses arrays of mapping objects:
Solution
Enhanced the
OptionsConfigurationUpgraderto:NodeMappingobject withMatchandReplacementpropertiesNodeMappingobjects without requiring direct assembly dependenciesKey Changes
MapTfsNodeStructureOptions: Added intelligent format detection and conversion logic for both Areas and Iterations mappingsTesting
The upgrade command now successfully converts TfsNodeStructureTool configurations, enabling users to seamlessly migrate from the old dictionary-based format to the new array-based format.
Fixes #2752.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
api.elmah.io/home/REDACTED/work/azure-devops-migration-tools/azure-devops-migration-tools/src/MigrationTools.ConsoleCore/bin/Debug/net8.0/devopsmigration upgrade --config /tmp/test-old-format.json(dns block)/home/REDACTED/work/azure-devops-migration-tools/azure-devops-migration-tools/src/MigrationTools.ConsoleCore/bin/Debug/net8.0/devopsmigration upgrade --config /tmp/test-old-format-v150.json(dns block)/home/REDACTED/work/azure-devops-migration-tools/azure-devops-migration-tools/src/MigrationTools.ConsoleCore/bin/Debug/net8.0/devopsmigration upgrade --config /tmp/test-old-format-correct.json(dns block)westeurope-5.in.applicationinsights.azure.com/home/REDACTED/work/azure-devops-migration-tools/azure-devops-migration-tools/src/MigrationTools.ConsoleCore/bin/Debug/net8.0/devopsmigration upgrade --config /tmp/test-old-format.json(dns block)/home/REDACTED/work/azure-devops-migration-tools/azure-devops-migration-tools/src/MigrationTools.ConsoleCore/bin/Debug/net8.0/devopsmigration upgrade --config /tmp/test-old-format-v150.json(dns block)/home/REDACTED/work/azure-devops-migration-tools/azure-devops-migration-tools/src/MigrationTools.ConsoleCore/bin/Debug/net8.0/devopsmigration upgrade --config /tmp/test-old-format-correct.json(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.