Skip to content

Conversation

MrHinsh
Copy link
Member

@MrHinsh MrHinsh commented Aug 29, 2025

Users are reporting confusion when rerunning the migration tool. Specifically, they expect changes to sync across but find that nothing happens when UpdateCreatedDate and UpdateCreatedBy are set to false.

This confusion arises because:

  • When UpdateCreatedDate and UpdateCreatedBy are false, revisions in the source must have a higher date than the target, otherwise they are filtered out.
  • This behaviour is correct but not obvious, leading users to believe updates are being skipped incorrectly.
  • These flags were originally introduced only to support TFS 2008, which does not allow setting revision dates in the past.

Current Behaviour

  • If UpdateCreatedDate and UpdateCreatedBy are set to false, rerunning the tool does not sync new changes unless the revision date in the source is newer than the target.
  • Users mistake this for incorrect syncing behaviour.

Expected Behaviour

  • The tool should make it clear that these settings are legacy, only relevant for TFS 2008, and not recommended for modern TFS/Azure DevOps versions.

Resolution

  • Removed UpdateCreatedDate and UpdateCreatedBy properties from TfsWorkItemMigrationProcessor.

  • Added a new property ProductVersion on the Target to clarify intent and scope:

    • OnPremises (default)
    • OnPremisesLegacy (for older TFS versions like 2008)
    • Cloud (for Azure DevOps Services)

Benefits

  • Removes ambiguity around legacy flags.
  • Makes it clear that behaviour differs by product version rather than hidden behind boolean switches.
  • Provides a more explicit and maintainable way to configure processor behaviour.

@MrHinsh MrHinsh self-assigned this Aug 29, 2025
@MrHinsh MrHinsh marked this pull request as ready for review August 29, 2025 16:59
@MrHinsh MrHinsh enabled auto-merge August 29, 2025 17:00
@nkdagility-actions-bot
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://blue-river-093197403-2960.westeurope.5.azurestaticapps.net

@MrHinsh MrHinsh changed the title Add better logic for diferent tfs versions Confusing behaviour of UpdateCreatedDate and UpdateCreatedBy in TfsWorkItemMigrationProcessor Aug 29, 2025
@MrHinsh MrHinsh merged commit 5f7edda into main Aug 29, 2025
15 checks passed
@MrHinsh MrHinsh deleted the Add-better-logic-for-diferent-TFS-versions branch August 29, 2025 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Confusing behaviour of UpdateCreatedDate and UpdateCreatedBy in TfsWorkItemMigrationProcessor

1 participant