Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find all Code Reviews across Projects and Collections in TFS?

We have 4 Team Project Collections with a dozen-or-so Team Projects each. We've started using the integrated Code Review system, and request reviews across those Collections and Projects.

Is there an easy way to find all Code Reviews you're involved in, across Collections or at least across Projects in a Collection? I'd prefer a way to do it in the Team Explorer inside Visual Studio, but have access to the web portal as well. I'd already be happy if I could search within a Collection, if it's not possible to do it across them.

I've carefully review the "My Work" section of the Team Explorer, and also closed the sln to try to force the context of the Explorer to the entire Collection. No dice: the "My Work" header still shows the actual Project in a dropdown.

I've tried to create a custom "Query", but am not sure how to proceed. The query that is generated has a clause to filter on Team Project = @Project, but I deleted that leaving me with basically this query:

Work Item Type = Code Review Request

I've left out State <> Closed for testing purposes, and I'd create a seperate query (I think) for work item type Code Review Response, but before I go there: the above query seems to give only reviews for the currently selected Team Project. Additionally, upon saving it, I get presented with a dialog that wants me to save the query inside a specific Project, further suggesting that it's still project-specific.

I'm using TFS 2013 but we tend to upgrade whenever it's useful so if there's upcoming features in newer version that solve this I'd be happy to hear about them.

Bottom line: how to get an overview of all your Code Reviews on your TFS server?

like image 740
Jeroen Avatar asked Oct 28 '15 08:10

Jeroen


People also ask

How do you see review comments in Visual Studio?

Click on the badge and the extension will open the Team Explorer "My Work" page. "My Work" page will have Code Review Comments section at the bottom.

What is code review in TFS?

TFS Code Review Review Assistant is a convenient tool that integrates with TFS and allows you to perform iterative code reviews directly within the Visual Studio IDE, while supporting work scenarios that are not covered by the Microsoft's built-in code review tool.

How are code reviews conducted?

A code review — also known as a peer code review — involves one or more team members checking another teammate's work. This involves viewing changes made to the source code before they are implemented into the codebase.


1 Answers

On VS 2015, Go to Team Explorer Home > Click on Work Items ... > Select New Query > Select "Reviewed By" in the Field column and add the related username in the Value field and run the query. You will see all the Code reviews you have been a part.

like image 67
Learner Avatar answered Oct 06 '22 00:10

Learner