Skip to content

Commit 4bd3306

Browse files
committed
changelog
1 parent d62e7e7 commit 4bd3306

File tree

4 files changed

+41
-28
lines changed

4 files changed

+41
-28
lines changed

CHANGELOG.md

+37
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,43 @@ under the License.
1919

2020
## Change Log
2121

22+
### 2.0.1 (Fri Jul 22 13:56:33 2022 -0400)
23+
**Database Migrations**
24+
25+
**Features**
26+
27+
**Fixes**
28+
- [#20830](https://github.com/apache/superset/pull/20830) fix: remove element reference in alerts report fetchs (@hughhhh)
29+
- [#20063](https://github.com/apache/superset/pull/20063) fix: Add locale for DatePicker component (@aehanno)
30+
- [#21302](https://github.com/apache/superset/pull/21302) fix: disallow users from viewing other user's profile on config (@dpgaspar)
31+
- [#21154](https://github.com/apache/superset/pull/21154) fix(explore): Prevent unnecessary series limit subquery (@codyml)
32+
- [#21498](https://github.com/apache/superset/pull/21498) fix: set correct favicon from config for login and FAB list views (@mayurnewase)
33+
- [#21380](https://github.com/apache/superset/pull/21380) fix(sqllab): Fix cursor alignment in SQL lab editor by avoiding Lucida Console font on Windows (@MichaelHintz)
34+
- [#20061](https://github.com/apache/superset/pull/20061) fix: Add french translation missing (@aehanno)
35+
- [#21044](https://github.com/apache/superset/pull/21044) fix(plugin-chart-echarts): missing value format in mixed timeseries (@justinpark)
36+
- [#21419](https://github.com/apache/superset/pull/21419) fix: cached common bootstrap Revert (#21018) (@dpgaspar)
37+
- [#21296](https://github.com/apache/superset/pull/21296) fix(plugin-chart-echarts): show zero value in tooltip (@villebro)
38+
- [#21294](https://github.com/apache/superset/pull/21294) fix(explore): Time column label not formatted when GENERIC_X_AXES enabled (@kgabryje)
39+
- [#21272](https://github.com/apache/superset/pull/21272) fix: adds TLS certificate validation option for SMTP (@dpgaspar)
40+
- [#21076](https://github.com/apache/superset/pull/21076) fix(celery cache warmup): add auth and use warm_up_cache endpoint (@nytai)
41+
- [#21216](https://github.com/apache/superset/pull/21216) fix(database-list): hide upload file button if no permission (@stephenLYZ)
42+
- [#21153](https://github.com/apache/superset/pull/21153) fix(sqllab): missing zero values while copy-to-clipboard (@justinpark)
43+
- [#21084](https://github.com/apache/superset/pull/21084) fix(native filters): groupby filter issue (@stevetracvc)
44+
- [#21005](https://github.com/apache/superset/pull/21005) fix(plugin-chart-handlebars): Sort-By and Sort-By-Descending control not work (@stephenLYZ)
45+
- [#20969](https://github.com/apache/superset/pull/20969) fix(dashboard): Fix scroll behaviour in DashboardBuilderSidepane (@EugeneTorap)
46+
- [#21007](https://github.com/apache/superset/pull/21007) fix(plugin-chart-echarts): gauge chart enhancements and fixes (@stephenLYZ)
47+
- [#21032](https://github.com/apache/superset/pull/21032) fix(plugin-chart-echarts): invalid total label location for negative values in stacked bar chart (@justinpark)
48+
- [#20962](https://github.com/apache/superset/pull/20962) fix: Explore scrolled down when navigating from dashboard (@kgabryje)
49+
- [#20946](https://github.com/apache/superset/pull/20946) fix(viz): Show zero percent changes in Big Number Viz (@Antonio-RiveroMartnez)
50+
- [#20819](https://github.com/apache/superset/pull/20819) fix: Temporal X Axis values are not properly displayed if the time column has a custom label defined (@diegomedina248)
51+
- [#20736](https://github.com/apache/superset/pull/20736) fix: getting default value in run-server.sh (@zhaoyongjie)
52+
- [#20733](https://github.com/apache/superset/pull/20733) fix(docker): Make Gunicorn max_requests and max_requests_jitter adjustable (@mdeshmu)
53+
- [#20714](https://github.com/apache/superset/pull/20714) fix: logger message (@betodealmeida)
54+
55+
**Others**
56+
- [#21018](https://github.com/apache/superset/pull/21018) perf: Memoize the common_bootstrap_payload (@bkyryliuk)
57+
- [#21091](https://github.com/apache/superset/pull/21091) chore(deps): unpin holidays dependency version (@ecederstrand)
58+
2259
### 2.0 (Tue Jun 28 08:53:02 2022 -0400)
2360

2461
**Database Migrations**

superset-embedded-sdk/README.md

+1-6
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,7 @@ embedDashboard({
4040
supersetDomain: "https://superset.example.com",
4141
mountPoint: document.getElementById("my-superset-container"), // any html element that can contain an iframe
4242
fetchGuestToken: () => fetchGuestTokenFromBackend(),
43-
dashboardUiConfig: { // dashboard UI config: hideTitle, hideTab, hideChartControls, filters.visible, filters.expanded (optional)
44-
hideTitle: true,
45-
filters: {
46-
expanded: true,
47-
}
48-
},
43+
dashboardUiConfig: { hideTitle: true }, // dashboard UI config: hideTitle, hideTab, hideChartControls (optional)
4944
});
5045
```
5146

superset-embedded-sdk/src/const.ts

-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,3 @@
1818
*/
1919

2020
export const IFRAME_COMMS_MESSAGE_TYPE = "__embedded_comms__";
21-
export const DASHBOARD_UI_FILTER_CONFIG_URL_PARAM_KEY: { [index: string]: any } = {
22-
visible: "show_filters",
23-
expanded: "expand_filters",
24-
}

superset-embedded-sdk/src/index.ts

+3-18
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@
1717
* under the License.
1818
*/
1919

20-
import {
21-
DASHBOARD_UI_FILTER_CONFIG_URL_PARAM_KEY,
22-
IFRAME_COMMS_MESSAGE_TYPE
23-
} from './const';
20+
import { IFRAME_COMMS_MESSAGE_TYPE } from './const';
2421

2522
// We can swap this out for the actual switchboard package once it gets published
2623
import { Switchboard } from '@superset-ui/switchboard';
@@ -37,11 +34,6 @@ export type UiConfigType = {
3734
hideTitle?: boolean
3835
hideTab?: boolean
3936
hideChartControls?: boolean
40-
filters?: {
41-
[key: string]: boolean | undefined
42-
visible?: boolean
43-
expanded?: boolean
44-
}
4537
}
4638

4739
export type EmbedDashboardParams = {
@@ -53,7 +45,7 @@ export type EmbedDashboardParams = {
5345
mountPoint: HTMLElement
5446
/** A function to fetch a guest token from the Host App's backend server */
5547
fetchGuestToken: GuestTokenFetchFn
56-
/** The dashboard UI config: hideTitle, hideTab, hideChartControls, filters.visible, filters.expanded **/
48+
/** The dashboard UI config: hideTitle, hideTab, hideChartControls **/
5749
dashboardUiConfig?: UiConfigType
5850
/** Are we in debug mode? */
5951
debug?: boolean
@@ -107,13 +99,6 @@ export async function embedDashboard({
10799
return new Promise(resolve => {
108100
const iframe = document.createElement('iframe');
109101
const dashboardConfig = dashboardUiConfig ? `?uiConfig=${calculateConfig()}` : ""
110-
const filterConfig = dashboardUiConfig?.filters || {}
111-
const filterConfigKeys = Object.keys(filterConfig)
112-
const filterConfigUrlParams = filterConfigKeys.length > 0
113-
? "&"
114-
+ filterConfigKeys
115-
.map(key => DASHBOARD_UI_FILTER_CONFIG_URL_PARAM_KEY[key] + '=' + filterConfig[key]).join('&')
116-
: ""
117102

118103
// setup the iframe's sandbox configuration
119104
iframe.sandbox.add("allow-same-origin"); // needed for postMessage to work
@@ -146,7 +131,7 @@ export async function embedDashboard({
146131
resolve(new Switchboard({ port: ourPort, name: 'superset-embedded-sdk', debug }));
147132
});
148133

149-
iframe.src = `${supersetDomain}/embedded/${id}${dashboardConfig}${filterConfigUrlParams}`;
134+
iframe.src = `${supersetDomain}/embedded/${id}${dashboardConfig}`;
150135
mountPoint.replaceChildren(iframe);
151136
log('placed the iframe')
152137
});

0 commit comments

Comments
 (0)