Skip to content

Commit f066ce8

Browse files
committed
Merged PR 141832: Bug fix: use post request instead put in update filters for visual API
1 parent 064b515 commit f066ce8

File tree

6 files changed

+19
-13
lines changed

6 files changed

+19
-13
lines changed

dist/powerbi-client.d.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! powerbi-client v2.17.1 | (c) 2016 Microsoft Corporation MIT */
1+
/*! powerbi-client v2.17.2 | (c) 2016 Microsoft Corporation MIT */
22
declare module "util" {
33
import { HttpPostMessage } from 'http-post-message';
44
/**
@@ -1133,8 +1133,11 @@ declare module "report" {
11331133
*
11341134
* ```javascript
11351135
* const newSettings = {
1136-
* navContentPaneEnabled: true,
1137-
* filterPaneEnabled: false
1136+
* panes: {
1137+
* filters: {
1138+
* visible: false
1139+
* }
1140+
* }
11381141
* };
11391142
*
11401143
* report.updateSettings(newSettings)

dist/powerbi.js

Lines changed: 8 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/powerbi.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "powerbi-client",
3-
"version": "2.17.1",
3+
"version": "2.17.2",
44
"description": "JavaScript library for embedding Power BI into your apps. Provides service which makes it easy to embed different types of components and an object model which allows easy interaction with these components such as changing pages, applying filters, and responding to data selection.",
55
"main": "dist/powerbi.js",
66
"types": "dist/powerbi-client.d.ts",

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/** @ignore *//** */
22
const config = {
3-
version: '2.17.1',
3+
version: '2.17.2',
44
type: 'js'
55
};
66

src/visual.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ export class Visual extends Report {
232232

233233
const url: string = this.getFiltersLevelUrl(filtersLevel);
234234
try {
235-
return await this.service.hpm.put<void>(url, updateFiltersRequest, { uid: this.config.uniqueId }, this.iframe.contentWindow);
235+
return await this.service.hpm.post<void>(url, updateFiltersRequest, { uid: this.config.uniqueId }, this.iframe.contentWindow);
236236
} catch (response) {
237237
throw response.body;
238238
}

0 commit comments

Comments
 (0)