I am trying to find out method level history from TFS. I am able to get the history (associated work items and changesets) for an item, but unable to do the same at method level. The intent is to find the work items and changesets linked with a method in class. Any pointers to accomplish this would be highly helpful.
This is implemented in the CodeLens API's which are not exposed publicly. Source control in itself doesn't have a semantic concept of the contents of the file. The Code Lens API uses Roslyn to parse the files and uses clever heuristics to link different versions of the same method to each other.
Given that CodeLens API's aren't available for public use, TFS doesn't have anything that will help you accomplish this, without re-building the heuristic+semantic processing that CodeLens provides.
Related
The question pretty much sums it up. I'd like to create/delete/update events in a calendar that's accessed by several people on a public folder using the Graph API, but haven't been able to find much about how to do it, at least not in the official documentation.
I found this post from 2018 saying "Public Folders aren't yet accessible via the Graph API", but I don't know if that still applies in 2021.
As for SO, the only other question I could find which seems related to this was How to read Public calendar with MS Graph API , but it unfortunately doesn't contain much information either.
In case Graph doesn't support this, would it be possible to do it in some other way (e.g. with some other API)? Ideally something that can be used from Java. Thanks in advance!
No you can't access Public Folders (or Online Archives) using the Microsoft Graph and given the legacy status of Public Folders I don't think they have plans to change this. You can use EWS to access them (make sure you include routing headers through https://learn.microsoft.com/en-us/exchange/client-developer/exchange-web-services/public-folder-access-with-ews-in-exchange).
Moving your Public Folder Calendars to a Office365 Unified Groups is generally a better idea you get improved functionality and you can use the Graph API and other Group workloads for future needs etc.
After reading through the docs for the REST API and the JS SDK, as well as the class definitions for the newer partially complete lib on GitHub, I've been unable to find a definitive list of properties that can be updated via the JS SDK when using the .update() method. The only two shown are ActivitySid and FriendlyName - and the other docs have different casing on these properties. I thought casing might not be important, but the source for the JSSDK shows ActivitySid. Can someone please point me in the direction of what properties are actually available with the JSSDK? I'm assuming the best bet is that they match the properties listed here if someone could confirm?
Note: If you're from Twilio and see this, I'd be happy to open a PR with documentation corrections if it's possible. Otherwise, in the description of update() below - ActiveSid isn't a thing and it'd be helpful to see a list of properties for methods or at least a link to them.
Updates properties of a Worker. There are properties of a Worker, such as ActiveSid, FriendlyName, etc.
Thanks!
I'm using the Rally SDK 2 to manipulate user stories from Javascript in a "Custom HTML" application.
I can query a story and retrieve its attributes.
I can update some of the attributes, like the Name of the Iteration for instance.
How can I add a successor to my story?
If I understand well, I should edit the "/HierarchicalRequirement/.../Successors" of my story, but I don't understand how to do that.
Would someone have an example, please?
Unfortunately, I don't have an exact example you can use, but the successors (or predecessors) are 'collections'. As such, you need to 'add' to the collection. There is an explanation of some of this here: https://docs.ca.com/ca-agile-central/saas/apps/2.1/doc/#!/guide/collections_in_v2
Built into the model for the artefact are routines to handle all the details. If you want more details, then you can download the sdk-debug.js file from the Rally server. To get to it, open up the developer tools in your browser and have a look where a custom app would get the sdk.js file from. The debug variant is formatted for humans to read and a very useful source of how to do things at the low levels. The definition of Rally.data.wsapi.ModelFactory has some good tips.
One of the recommendations I make to people starting out writing custom apps, is to use the developer tools in the browser to watch the network traffic that the Rally UI makes - and then work backwards to code.
Is there a way to get all Work Item types for a project via tfsodata.visualstudio.com?
In documentation: https://tfsodata.visualstudio.com I was not able to find anything about it, and it is hard to imagine that something so important is not implemented.
Any help appreciated!
No such OData API to get the list of work item types. It's suggested to use REST API if you use TFS 2015 or VSTS:
GET https://{instance}/defaultcollection/{project}/_apis/wit/workitemtypes?api-version={version}
I am working GWT project which using History Class(com.google.gwt.user.client.History). Now the project work well. But the customer want the project run with unique url for security.
I tried to investigate the way to use the GWT History with a unique url but no luck.
If you know the solution, please give me the suggestion. Thank so much.
Well, the History implementation in GWT is based on hash fragments so if you remove that part (for instance overriding the nativeUpdate() method in HistoryImpl your app will never be notified when the state changes.
The solution I see is to override the History mechanism in GWT with your own based on the window.history.pushState() HTML5 API. It is supported by modern browsers (not IE9).
With push state you can change the state of the browser with and without changing the url.
There is an implementation of History based on pushState at gitHub. Johannes Barop gave a presentation of this project in the gwt-meetup 2013, videos are not avaliable yet (they will be in few days though). I think it does not implements your edge case of not changing the url, but probably it should be easy to add, or ask him at github.