Giter VIP home page Giter VIP logo

Comments (4)

captaintightpants avatar captaintightpants commented on May 23, 2024

bump

from vss-web-extension-sdk.

dan-miller avatar dan-miller commented on May 23, 2024

I am encountering this as well for a custom dashboard widget that was working fine until all of the sudden it was not. The configuration section does not load at all, so the widget is essentially useless because you can not put it on another dashboard.

We are running Azure DevOps Services, and from what I've seen I have to assume some sort of system update has broken this functionality.

I can't use the the newer azure-devops-extension-sdk, because Dashboard Widgets aren't supported per microsoft/azure-devops-extension-sdk#17

Please either fix this issue in this package, or advise on a timeline for supporting Dashboard Widgets in the azure-devops-extension-sdk.

from vss-web-extension-sdk.

Fritzoid avatar Fritzoid commented on May 23, 2024

So basically, making dashboard widgets is broken both in the old and the new SDK? This is really strange. I've been trying this as well for some time now and keep hitting roadblocks. Looking at the 2 SDK repos, it seems weird that none of them have had any activity since mid last year. Also the docs for the new API is laking at best. Looks like the whole thing has been 'pulled the plug on'. It smells like MS are about to ditch dashboard widgets? Are both repos just dead and MS is making a brand new thing we dont know about? Would be nice with some kind of official statement from MS about the status of extensions in azure devops.

from vss-web-extension-sdk.

dan-miller avatar dan-miller commented on May 23, 2024

Yeah MSFT really doesn't seem to give a crap about this.

For the record, I was able to fix my widget config by making sure I returned the Promise from Get Queries:

VSS.require(['TFS/Dashboards/WidgetHelpers', 'TFS/WorkItemTracking/RestClient'], (WidgetHelpers, RestClient) => {
    WidgetHelpers.IncludeWidgetConfigurationStyles();

    VSS.register('OlaWidget.Configuration', () => {
    return {
            load: (widgetSettings, widgetConfigurationContext) => {

                // Retrieve the project name from the web context and use the REST Client
                // to retrieve the queries or folders at the project root.
                const projectName = VSS.getWebContext().project.name;
                return RestClient.getClient().getQueries(projectName, 'Minimal', 1).then(result => {

That last return is crucial, apparently.

from vss-web-extension-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.