Search code in VSTS / Azure DevOps back in time - azure-devops

I am using Azure DevOps Code Sea​rch but I am only able to search in the code as it looks now. I would like to search in the code as it looked like 18 months ago.
​Some bit of code disappeared at some point and I would like to get it back. But I don't remember which file it was in so I need to search across all files in the repo.
​Is it possible?
I am using Azure DevOps (also called VSTS or visualstudio.com).
I have installed the Code Search Extension.

Search code in VSTS / Azure DevOps back in time
Sorry for any inconvenience.
I am afraid the Azure DevOps extension Code Search does not support history search at this moment.
According to the document How To: Use Code Search, which supports following tasks without history:
Search across all of your projects
Find specific types of code
Easily drill down or widen your search
Some other members submitted a related feature request on our main forum for product suggestions:
Azure DevOps extension CodeSearch: Also search in history
You could vote and add your comments for this feedback. When there are enough votes for this feedback, the product team might consider implementing it.
Hope this helps.

Unfortunately this is not possible as of now.
You can upvote the idea created in developer community for the same - https://developercommunity.visualstudio.com/idea/365924/search-filter-commit-messages.html
The request is currently under review. Till then you can follow a couple of suggestions provided in the idea chain:
Use the GitLens extension on VSCode
Use GItk
Hope this helps!

Related

Azure DevOps Code Review email does not list files that are to be reviewed

When I get a code review from another person, sometimes the code review states the project name and list the files that are contained in the review. More often than not, it just says none. (please see red box in the image below)
Unless the person gives a good title, it can be difficult to know which project I need to review.
When I open the review, all of the files show up and everything works just fine.
Its only the email that seems to be the issue.
Does anyone know how to resolve this?
I can reproduce above issue. It seems that the problem resides in azure devops server.
You can report this problem to microsoft development team. Hope they will look into this issue and provide a fix soon.
Click here to report a problem(Click Report a problem and choose Azure devops or Azure devops server if you are using on-premise server).

How to sort artifacts based on 'Last pushed' in Azure DevOps

I am trying to figure out how to sort artifacts in Azure DevOps. Is there a way I can view recently pushed artefact for a particular feed instead of trying to filter based on package names?
Thank you
Sorry but for now we don't support sort based on Last Pushed date. Azure Devops sorts the packages based on PackageName by default.
I'm afraid you have to use Filter and Feed button to find your package:
I think your idea is meaningful, so I add a feature request for you in User Voice Forum. You can vote for it and track the issue there, the product team would consider about it if it gets enough points.
Link here: https://developercommunity.visualstudio.com/idea/1089652/support-sorting-packages-in-azure-artifact-feed-vi.html

Is it possible to disable a marketplace extension in some Azure Devops projects only?

We are a large organization with different needs using a single Azure Devops organization with lots of projects. Over time lots of different marketplace extensions are being added but most of our projects do not need them and make the menu and the UX clumsy while they are beneficial for others.
Is it possible to disable some extensions in some projects only or are extensions only configurable for an entire organization?
Unfortunately #Chrizzo answer is correct.
There already are a few feature requests for this:
extensions-scoped-at-a-project-level
allow-extensions-to-be-installed-only-in-projects
Feel free to upvote them.
We have same problem => Short answer: No, not possible :(
Only configurable for organization.

Does TFVC in Azure DevOps automatically write the check-in comment to the discussion for a work item?

I have been tasked with figuring out to solve this issue. I am working on a project that uses TFVC in Azure Devops and when a check-in is made the system adds that comment to the discussion thread on the work item. What setting can I change to turn that off?
UPDATED:
I created a test TFVC project in a separate DevOps account that I had with no extensions installed. Checked in changes, a link was added to the Development sections as expected but just like described above it was also added to the discussion, see screenshot. So this appears to be default behavior so how do we turn it off?
As far as I know, you cannot turn this feature off once you have linked the checkin with the work item.
Does TFVC in Azure DevOps automatically write the check-in comment to
the discussion for a work item?
For this issue, the answer is no. The comment added in Check in will be used as the title of the changeset(TFVC) and will not be automatically written to the discussion of the work item.
Changesets will be linked to the Development field of the work item to drive development.
Does TFVC in Azure DevOps automatically write the check-in comment to the discussion for a work item?
Obviously not.
Automatically write check-in comments to the discussion of work items is not applicable to all users, so MS does not add it as the default behavior.
And as test, I could not found this issue on my side, and you could also to check this issue on the other organization or new organization.
As a bold guess, your organization may have one extension installed and these behaviors are performed by this extension, like Work Item Autosave. But I could not sure it, you need to check your extensions one by one, Organization Settings->Extensions.
If you find that extension, you can disable or change the settings to disable this feature.
Hope this helps.

Explaining GitHub to a TFS user

I have started to use Cloud9 IDE recently and have to say I really like it as an individual. I use VS 2010 at work and TFS 2010 too. This made me think about the TFS equivalent for Cloud9. GitHub is something I have always been aware of but never really used.
I have done my research and read docs etc, what I really need some clarification in though is the whole Work Item system. I know GitHub has an Issue tracking but does it have a Work Item system similar to TFS. With the main features such as assigning work items to developers?
A little explanation to just clarify would be fantastic. Thanks!
If you're looking for a way to have Issues show up like WorkItems in your task list in visual studio, I don't think there is a solution for this to date.
You can however assign developers to issues within GitHub:
Create or Edit an Issue
Click the gear next to "No one is assigned".
Select a member from your organization to assign the issue to them.