Open jakobsack-tag opened 10 months ago
Could the maintainers look into this?
Now that we the api repo implemented the necessary types for the dashboard extension to work, we expected being able to author dashboard widgets with the new SDK.
However, the init function pretty much never works (and so do attempts to register a callback to the ready
function using //@ts-ignore
.
Being able to use the new SDK for dashboard widget has been asked for years and now that we are one step away from the finish line, it would be great to look into this ticket and implement what looks like a 5 min fix.
I would really appreciate if this can be resolved a.s.a.p. given there's a proposed solution.
handshakeData.context.pageContext.webContext is now present.
But pageContext doesn't have all the properties of IPageContext (globalization and timeZonesConfiguration are missing) and webContext doesn't have all properties of IWebContext (project and team are missing).
Any updates here? I'm also getting this same issue
Still no updates? Doing workarounds but SDK is not working properly when obtaining most contexts
I'm trying to implement a dashboard widget using the azure-devops-extension-sdk and azure-devops-extension-api libraries. However, the widget fails to load on Azure DevOps. Whenever I'm trying to call
SDK.getWebContext()
I'm getting the error Attempted to call getWebContext() before init() was complete. Wait for init to complete or place within a ready() callback.This error even appears after adding
To me it looks like the change introduced with #89 actually raised the issue, at least in my context. Intercepting the handshake reveals that
handshakeData.context
does not contain a keypageContext
, however there is a full keyhandshakeData.pageContext
.Locally I could fix the issue by applying this patch:
Is this a valid solution? Then I'd create a PR for it. Otherwise, what should I do? Are there any more information you need?