webContext in azure-devops-extension-api - azure-devops-extensions

Im attempting to create my first azure devops extension to plug a gap we have but I'll be honest I'm a little stuck.
I am using the new react templates from MS and have successfully created the shell of my extension that renders a tab item in the iterations board. This displays successfully in devops when deployed.
I now want to retrieve all work items for the visible iteration. I can see that the iteration id is available via the webContext. I can also see that its accessible via the VSS object, however the new typescript model takes a totally different approach:
public componentDidMount() {
SDK.init();
this.initializeComponent();
}
private async initializeComponent() {
const projects = await getClient(CoreRestClient).getProjects();
this.setState({
projects: new ArrayItemProvider(projects)
});
}
for example.
Does anyone know out there how to get the webContext using the SDK object or how I would go about getting the current displayed iteration id, project and team....so i can at least use a wiql query to get what i need?
Any help is appreciated.
Lee

I have been wrestling with the same issue. I have discovered that this isn't supported yet in the new SDK. Just to try something out I forked the sdk and modified it and I am able to get the webContext. However I myself am trying to develop a Dashboard Widget and realized that getting webContext was just one of many things that are missing from the new SDK. Hopefully Microsoft will do something to complete this new SDK - there are many comments under the issues tab of their git repos with people complaining about how unusable it is.

Related

Get specific release from github releases for electron-updater

I'm building an electron application that will be distributed to different clients. Currently, I'm testing how to update the application.
To describe my problem:
In order for this application to work client must buy a licens. And based on this licens I know who the client is and what features does he need. On star I must call my API endpoint that checks clients licens and returns where electron-updater should go and check for updates (not all clients get the same version; it's even possible that one client has a completely different version of the application from others).
Currently, I'm testing with local http-server and my URL look something like this: http://localhost:8080/v0.0.3 (inside this map I have the installer, latest.yml and blockmap files) and in main.js I use it like this:
autoUpdater.setFeedURL({
provider: 'generic',
url: ret.url // <- http://localhost:8080/v0.0.3
});
autoUpdater.checkForUpdates();
So far this approach works fine, but I'm testing now if it would be possible to use GitHub repository and through my API return URL to specific version, because all I could achieve from using GitHub was getting the latest version (it would be great if repository could be private).
So if it is could it be done something like this: https://github.com/<user>/<repo>/releases/tag/v0.0.3

Developing an API project

I recently created a project and the scripts were working fine.
Then the stopped loading the requests.
I looked at my dashboard to find there were several days with 10,000+ queries
which didn't make any sense.
I created a new key and restricted access to the IP only.
I changed the key on all of my scripts and it still does not display like it was.
Any suggestions about what to try next?
Thanks

New Process Template not applied after upload

I'm working on setting up a new installation of TFS, and I seem to be having some issues getting an updated version of a process template applied to my project. Here's what I've attempted so far:
Tried to update the existing Agile process template; but it was locked down (and apparently you can't change this). OK; not a big deal; I'll create a new template; and create a new project as you can't change the workflow of an existing one.
Created a new project; applied the new template (which only has a few new transitions & states applied to work item types) and everything looks good.
Now, i wanted to tweak this a little further; adding in a few new transitions. Updated the workflow, uploaded it back to the server, and that process went fine. However, my new transitions aren't showing up.
If I create a new project using the same process template my new transitions show up in that one.
Any ideas on how I can get the new template applied to an existing project?
You have to apply the changes to the project with the witadmin command.

Cant create new team project in TFS 2010

I have an old setup with a tfs2010 and sql2008 and the current Collection is holding 3 team Projects. Now i want to create a new team project but for some reason i cant. it seems that it has something to do with the SQL Reporting that dosent excists. i get an error TF218027.
Ive been going through the setup and im wondering a bit
What exactly does the TFS use the reportServer for (MSDN dosent seem to want to tell me)
is there any way to create a Team project without the reporting
Will it damage my excisting data if i create and connect to a new sql reportServer
Hope someone will take the time to give an answer
thanks.
I have already tried the different approtaches discussed on different threads and im primarily looking for information on the 3 questions written above
Try the steps below:
In browser go to: http://application-tier/Reports/Pages/Folder.aspx
Press Folder settings button in the toolbar
Press New Role Assignment button in the toolbar
Specify user name in Group or user name field, check Content Manager role and press OK.
So for the people that actually read the question the answer is.
Keeps track of agile work progress
yes and its actually easy. go to the reporting service and stop it and then tell TFS not to report under reporting
Since it was never running the answer here is No

Google Fusion - Won't Allow Me to Publish a Feature Map

Here is the link to my public fusion table: https://www.google.com/fusiontables/DataSource?docid=1dp1DTZKzXWLE4TbI2Z9q-5jetC0iVt6ee_0eZdU8#map:id=3
I'm trying to publish the feature map and embed on a website, however 'Publish' is grayed out. Since I've set everything to public, I can't figure out what's preventing me from publishing and embedding.
I suggested a workaround when you asked this question on the product forum.
I don't understand why it's happening, but there's something stuck in a strange state for this table. Can you try downloading it to a CSV file and reimporting to a new table? You'll have to redo your map styles, but publishing should work on a new version,

Resources