Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can you cancel a Code Review Request?

Tags:

tfs

I made some changes and then requested Code Review in TFS, then realized I had made the changes to the wrong branch. So I tried to delete the work item to show that I no longer needed code review (at least in this branch). However, when I tried to do that, I got the beautiful red error:

Failed to delete work item: 1061. Error Details: VS402838: The work item 1061 cannot be deleted. Code Review Request work items cannot be deleted.

For now, I'll just have everybody complete the code review where it sits, and then I'll make the exact same changes in the correct branch. But I'm wondering what you are supposed to do in this case if they insist you can't delete Code Review Request work items.

like image 686
NH. Avatar asked Mar 07 '18 18:03

NH.


1 Answers

I think The Right Thing to do in TFS-land is to Abandon the Code Review, since you can't delete it from TFS.

The previous answers have two means of doing that. Here's a third, from within Visual Studio, since that seemed like a convenient alternative.


  1. Open My Work in the Team Explorer window.

my work link in the Team Explorer interface

  1. Find the Code Reviews section of My Work.

my work section of Team Explorer

  1. Right-click the Code Review you want to Abandon.

  2. Select Open.

  3. In the Code Review UI, select Close Review for the reason Abandon

Code Review UI with Close Review highlighted

  1. Profit.
like image 192
ruffin Avatar answered Oct 02 '22 08:10

ruffin