How to get a shelve set from closed review - tfs

Below is the scenario
1) I got code review suggestion
2) I worked on those suggestions.
3) I closed the Code review request to send a new code review request.
4) But I Did NOT sent any Code review Request. As I remember I forgot to add one Nuget Package. So I tried to add it, but it did nt worked as expected, so I uninstalled some dependent packages as well :|
Can I get the code at stage 3 ? I can not see the Request in Code reviews to unshelve as its closed.
Can someone guide me here ?

You could select Recently finished in your Code Reviews, find the code review that you need, open the code review and click View Shelveset. Check the screenshot below:

Related

Edit Pull Request comment for other users

We recently moved our Azure DevOps Server instance to another server, changing its public URL.
Because of this, any links/images in Pull Request comments are still pointing to the old URL.
I have written C# code to use the API to change the comments (UpdateCommentAsync), but it gives me the error:
Cannot update comment. Only the comment author and project admins can edit a comment.
But I am a project admin, and it still does not work...
Is this a bug, or do I have to set some property to override this behavior?
Using Microsoft.TeamFoundationServer.Client, 16.183.0-preview
Thanks Stein's feedback. This issue can be reproduced and temporarily we can edit the comments directly in the Azure DevOps database as a workaround. Posting it here so others also could follow this thread: https://developercommunity.visualstudio.com/t/Unable-to-edit-comments-in-Pull-Request/1376731 to get latest feedback from product support team.

TFS Code Review can not add comments from reviewer

in VS code review
I'm trying to add "overall comments" and add "file comment" from reviewer.
but these option are disabled (marked in grey)
See images below.
What is the reason for this?
Thanks.
Add overall comments button disabled
Add file comment button disabled
This code review is supposed to be closed by the requestor. You can check your code review to see whether it is closed as the screenshot shows:

Failing Unit-Test. Detailes not displayed

I am using TFS2018.3 and the recent build Agent.
if Tests fail, I don't get the Details displayed any more.
Instead I see error message:
We can't reach the server to fetch test results. Please refresh the page to try again.
Following the advise to refresh the page does not help.
What is the cause for this Issue?
I think I've found the cause. If I switch the Locale Language Settings back to German in my user profile the test results are shown correctly.
It's probably a TFS bug. Reported here: https://developercommunity.visualstudio.com/content/problem/556349/tests-tab-does-not-show-test-results.html

How can you cancel a Code Review Request?

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.
This can be accomplished by creating a query that includes the desired work item, then editing it from within the query.
Create a new query, then specify criteria such as Created By (yourself) that will find the work item. ID doesn't work so well if the work item was already assigned out, as each reviewer has their own work item.
Right-Click the work item you want to edit.
Select edit from the context menu.
Steps 1-3:
In the window that comes up, enter "State" for Field and "Closed" for Value:
Enter some notes about the manual change and then close the dialog with the "OK" button, and then don't forget to save your changes with this button:
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.
Open My Work in the Team Explorer window.
Find the Code Reviews section of My Work.
Right-click the Code Review you want to Abandon.
Select Open.
In the Code Review UI, select Close Review for the reason Abandon
Profit.
You can cancel a code review required by using excel
Please try this workaround: create a work query to get all that user’s Code Review Request work items which in Requested state, save this work item query and open this query in Excel, then edit them work items in Excel to change the state to Closed, then click Publish button to publish the updates to TFS Server.
See this URL https://social.msdn.microsoft.com/Forums/vstudio/en-US/83d96317-cdd7-436c-8415-fda54d1ce752/cancel-a-code-review-request?forum=tfsworkitemtracking

Remove "Related Work Items" from Code Review Request (TFS)

Is there a way to remove "Related Work Items" from a Code Review Request that was mistakenly added? (TFS2012, update2)
How about for another user?
Thanks!
No, it's impossible. Since the work item is related during the "pending changes" page. After the code review request created, there is no way to edit the related work item.
If you want to remove the wrong work item. So you may need to abandon this code request first. And in the "pending changes" page, right click the work item to remove work item. Create a code review request then.

Resources