Full-fidelity history and data migration are mutually exclusive
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.”
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.
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:
upgrade in place
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?
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.
Published at DZone with permission of Martin Hinshelwood, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.