Code reviews are a really important part of developing software and should be implemented (in one form or another) by all dev teams. Prior to TFS11, there were many different attempts at creating a code review workflow with the various tools provided to us. Some of them were better than others, but at the end of the day, most automated solutions didn’t deliver.
VS11 integrates this new functionality in the My Work tab that I went over earlier. As you can see here, I have 2 pending changes and the “Request Review” link is available for me:
Clicking on that link navigates me to the New Code Review section, where I can enter the person that I want as a reviewer, code review name, area path, comments, and edit the items that should be reviewed. You can even submit the Code Review request to more than one person by clicking on the “Add Reviewer” link.
So what is happening behind the scenes? Two new Work Items types were introduced: Code Review Request and Code Review Response. If I click on the “Open as Query” link on the above screenshot, you can see those work items:
The valid states for the request are “Requested” and “Closed”. The states for the response are “Requested”, “Accepted”, “Closed”.
So again, lots of integration, and it just works. I’m really excited about this feature!