Skip to content

Conversation

@orshemesh16
Copy link
Contributor

No description provided.

Shahak Yosef and others added 8 commits February 22, 2022 07:26
Add `powerbi.getSDKVersion` method

In ISV scenario it is hard to find the SDK version in the dev tools so I am adding a method to return it.
Remove comments in OE: powerbi-javascript
hosting apps (like TypeScript) that creates a double instance of `service` will cause double registration for eventHooks listener which leads to miss the callback from the iframe.

moving `router.post` from `service` constructor to `report` constructor resolves the issue.
For an unknown reason, 2.20.0 was released 2 weeks ago to internal feed although it was not triggered.
This causes the internal feed phase to fail as package already existed.
release version 2.21.0, updating models version
sdkType tells us which SDK wrapper performs the actions, e.g: powerbi-client-react, powerbi-client-angular...

To update it we should pass the type in the header 'x-sdk-type` which is populated in the service constructor. Therefore, each wrapper needs to pass the correct sdkType when initiating the service (see example: [Pull Request 274150](https://dev.azure.com/powerbi/Embedded/_git/powerbi-client-react/pullrequest/274150)).

**What is the problem?** if user injects a new powerbi service to the wrapper and doesn't use the default service, the sdkType won't be populated.
As a result, I created new API in the service, so we could update in each wrapper the sdk type after the service is created.

In addition, create new header `x-sdk-wrapper-version`.
@orshemesh16 orshemesh16 merged commit e3e3282 into master Jul 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants