DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
  1. DZone
  2. Data Engineering
  3. Data
  4. Full-fidelity history and data migration are mutually exclusive

Full-fidelity history and data migration are mutually exclusive

Martin Hinshelwood user avatar by
Martin Hinshelwood
·
May. 31, 12 · Interview
Like (0)
Save
Tweet
Share
5.91K Views

Join the DZone community and get the full member experience.

Join For Free

if you have ever had to migrate data from any system that contains lots of data and especially history then you will have run into this problem. effectively you have two choices:

  • upgrade with full history, correct dates and uninterrupted reporting

  • migrate with tip/full history with truncated dates and no past reporting

this is also the case with team foundation server and every customer that we have that wants to do a migration of data voices the same concern:

“we can’t be the first company to make such a request, as financial institutions and other companies need to have the history moved, have it searchable and reportable.”
-anonymous customer

in order to support little things like sarbanes oxley (sox), crf11, hippa, fda or nra you need to, generally, be able to prove tractability from “source code | builds | tests| requirements”. you need to be able to show, on demand, how a line of code got into your application, why, who requested it and how it was tested. this is hard at the best of times and impossible most of the time if you have separate systems that all authenticate differently or store data differently.

visual studio alm tractability matrix
figure: visual studio alm tractability matrix

do a test on your software. pick a like of code and figure out who added it to the system and how it was changed over time. now, for each of those changes figure out why that change was done and who authorised it. can you do that?

now consider a couple of…modifiers. how sure are you that the system told you the truth? it is is not active directory integrated can you really be sure that this is a traceable user? when was the last time that you changed that visual sourcesafe account password? if it was not in the last 90 days then you may be out of compliance.

its not just for enterprises; if your software in any way contributes to the decisions made by executives of public companies then you need to be able to provide that tractability. what about banks? has your software ever been used by a financial institution to figure out what to do? yes, that means excel is covered by sox and if an algorithm was not interpreted correctly then the sox folks would be going through the excel source with a tooth comb.

because of these small requirements it is impossible to edit data in the past in team foundation server and indeed to add data to the past. that means that when you do a “migration” and not an “upgrade” you are effectively replaying all of that history at speed against a new instance. all of your dates will be consecutive and be as close together as the api can cope with. this for some is just not good enough. in these circumstance i have to aske them to choose:

  1. upgrade in place

  2. migrate to new place

which is more important? migrating and “starting fresh” with clean data unburdened by legacy fields or work item types (can make your cube a little clogged). or do you require to have all of the dates exactly as they are. this is not a team foundation server thing, or a microsoft thing but a simple tractability thing and all of the oversight rules mentioned above require it. really, if you are concocting any sort of application lifecycle strategy then you need it too…

when you migrate however all is not lost. you don’t loose the history of the dates, nor your tractability it is just moved a little and becomes a little less discoverable, but no less traceable. in the case of the tfs integration platform you retaining the original date and user in the “history” for work items and the “comment” for source control. while not ideal, it does allow you to maintain that fidelity of history. in addition you can have the tfs integration platform retain the id from the old system and thus you can even keep the old system alive for those infrequent spelunking sessions. if you must retain the integrity of dates then the only option is process template upgrade #7 – rename work items and import new ones and all of the migration options with pros and cons documented on upgrading your process template in team foundation server .

using method #7 you will be able to:

  • move to a single process template

  • retain history and dates in work items

  • retain history and dates on source files

you will however not be able to:

  • consolidate to a single team project collection

    msdn: visual studio tfs team project and collection guidance

  • remove old fields until their history is no longer required

    we can rename the legacy work item type fields so that they all appear as “[legacy] my old field” until teams no longer need the data. do you know what your records retention policy is?

tfs integration platform - migration guidance poster
figure: tfs integration platform – migration guidance poster

there are a bunch of other workarounds to this that i have discussed on many occasions with customers but they still need to choose … which do you want? make sure that you look at all of the pros and cons carefully and decide what you want to do. an additional thing to note is that migration is very expensive in time and expertise, so choose carefully.

History (command) Data (computing) Data migration Integration platform

Published at DZone with permission of Martin Hinshelwood, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • A Deep Dive Into AIOps and MLOps
  • Low-Code Development: The Future of Software Development
  • 5 Steps for Getting Started in Deep Learning
  • Keep Your Application Secrets Secret

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: