On-Prem Work Item Migration Not using Dummy Work Item for Embedded Images #2653
-
My main collection backup size gradually grew to a point where we decided to migrate the most recent "living" (not-dead-code) projects over to a new collection on a test server. We are also converting to git using git-tfs. This post is only about our work item migration using the devopsmigration tool. After using the tool and seeing how well it worked, I wanted to "orchestrate" the move of the last year of work items to my test server collections (we only use one project for work items for the entire source collection). So I created a powershell script to create a lot of "dummy" work items in a "dummy" project in order to increment the work item number to my starting point. The goal was that I wanted the work item numbers in my source to match the work item numbers in the target for the latest 26,000 (one years worth) of work items. Everything worked fine until the tool decided to create a dummy work item for embedded images in the target. I tried various configuration changes to avoid that, but nothing worked. Eventually what DID work was pulling the source and changing the code in TfsEmbeddedImagesTool.cs in the MigrationTools.Clients.TfsObjectModel.dll to never create them. I only changed UploadImageToTarget like this:
Note the comments. Please understand that in all of my source work items there were only 3 work items with embedded images, and all of those were in the revision history of these items. And even if I choose not to replay history, or even if I attempted migrating a section of history that did not contain ANY embedded images the tool created the dummy item anyway, which threw off the target work item numbers by one each time. But this modification seems to have accomplished my goal. My question is: For the 3 items with embedded images in their revision histories, what should I expect to not be functional as a result of my commenting out the above code? SteveSims |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
We do not support maintaining the ID of the work items across migrations in any way.
The image links will still point back to the original organisation. All this code does is download the images from the source, upload them to the target through the temp work item, and then update the link in the comment / description. Why not turn that tool off? Was the flag not working? As per TfsWorkItemEmbededLinkTool you can turn it off with:
|
Beta Was this translation helpful? Give feedback.
We do not support maintaining the ID of the work items across migrations in any way.
The image links will still point back to the original organisation. All this code does is download the images from the source, upload them to the target through the temp work item, and then update the link in the comment / description.
Why not turn that tool off? Was the flag not working? As per TfsWorkItemEmbededLinkTool you can turn it off with: