From 027c72b024fa0cd2d0ecde333205da46397390c8 Mon Sep 17 00:00:00 2001 From: AAfghahi <48933336+AAfghahi@users.noreply.github.com> Date: Wed, 2 Jun 2021 13:06:45 -0400 Subject: [PATCH 01/18] changed name to be more descriptive (#1145) --- packages/superset-ui-core/src/utils/featureFlags.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/superset-ui-core/src/utils/featureFlags.ts b/packages/superset-ui-core/src/utils/featureFlags.ts index 5ca1754cfc..f8f0d38a94 100644 --- a/packages/superset-ui-core/src/utils/featureFlags.ts +++ b/packages/superset-ui-core/src/utils/featureFlags.ts @@ -42,7 +42,7 @@ export enum FeatureFlag { GLOBAL_ASYNC_QUERIES = 'GLOBAL_ASYNC_QUERIES', ENABLE_TEMPLATE_PROCESSING = 'ENABLE_TEMPLATE_PROCESSING', ENABLE_EXPLORE_DRAG_AND_DROP = 'ENABLE_EXPLORE_DRAG_AND_DROP', - FORCE_SSL = 'FORCE_SSL', + FORCE_DATABASE_CONNECTIONS_SSL = 'FORCE_DATABASE_CONNECTIONS_SSL', ENABLE_TEMPLATE_REMOVE_FILTERS = 'ENABLE_TEMPLATE_REMOVE_FILTERS', DASHBOARD_RBAC = 'DASHBOARD_RBAC', ALERTS_ATTACH_REPORTS = 'ALERTS_ATTACH_REPORTS', From 39407c04e554b6f26dc264dae96f2bc3306117af Mon Sep 17 00:00:00 2001 From: Ville Brofeldt Date: Thu, 3 Jun 2021 13:58:10 +0300 Subject: [PATCH 02/18] chore: publish v0.17.53 --- lerna.json | 2 +- .../superset-ui-chart-controls/package.json | 4 +- packages/superset-ui-core/package.json | 2 +- packages/superset-ui-demo/package.json | 50 +++++++++---------- .../legacy-plugin-chart-calendar/package.json | 6 +-- .../legacy-plugin-chart-chord/package.json | 6 +-- .../package.json | 6 +-- .../package.json | 6 +-- .../package.json | 6 +-- .../legacy-plugin-chart-heatmap/package.json | 6 +-- .../package.json | 6 +-- .../legacy-plugin-chart-horizon/package.json | 6 +-- .../legacy-plugin-chart-map-box/package.json | 6 +-- .../package.json | 6 +-- .../package.json | 6 +-- .../package.json | 6 +-- .../package.json | 6 +-- plugins/legacy-plugin-chart-rose/package.json | 6 +-- .../package.json | 6 +-- .../legacy-plugin-chart-sankey/package.json | 6 +-- .../legacy-plugin-chart-sunburst/package.json | 6 +-- .../package.json | 6 +-- .../legacy-plugin-chart-treemap/package.json | 6 +-- .../package.json | 6 +-- .../package.json | 6 +-- plugins/legacy-preset-chart-nvd3/package.json | 6 +-- plugins/plugin-chart-echarts/package.json | 6 +-- plugins/plugin-chart-pivot-table/package.json | 6 +-- plugins/plugin-chart-table/package.json | 6 +-- plugins/plugin-chart-word-cloud/package.json | 6 +-- plugins/preset-chart-xy/package.json | 6 +-- 31 files changed, 110 insertions(+), 110 deletions(-) diff --git a/lerna.json b/lerna.json index 4f3b50a665..0753e4a5a2 100644 --- a/lerna.json +++ b/lerna.json @@ -6,7 +6,7 @@ "plugins/*" ], "useWorkspaces": true, - "version": "0.17.52", + "version": "0.17.53", "ignoreChanges": [ "**/*.md", "**/*.spec.tsx?", diff --git a/packages/superset-ui-chart-controls/package.json b/packages/superset-ui-chart-controls/package.json index b2e03ac676..e47eb89da4 100644 --- a/packages/superset-ui-chart-controls/package.json +++ b/packages/superset-ui-chart-controls/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/chart-controls", - "version": "0.17.52", + "version": "0.17.53", "description": "Superset UI control-utils", "sideEffects": false, "main": "lib/index.js", @@ -26,7 +26,7 @@ "access": "public" }, "dependencies": { - "@superset-ui/core": "0.17.52", + "@superset-ui/core": "0.17.53", "lodash": "^4.17.15", "prop-types": "^15.7.2" }, diff --git a/packages/superset-ui-core/package.json b/packages/superset-ui-core/package.json index fb85fcec39..0233c53e08 100644 --- a/packages/superset-ui-core/package.json +++ b/packages/superset-ui-core/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/core", - "version": "0.17.52", + "version": "0.17.53", "description": "Superset UI core", "sideEffects": false, "main": "lib/index.js", diff --git a/packages/superset-ui-demo/package.json b/packages/superset-ui-demo/package.json index 27ed60f718..f1f28e0f90 100644 --- a/packages/superset-ui-demo/package.json +++ b/packages/superset-ui-demo/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/demo", - "version": "0.17.52", + "version": "0.17.53", "description": "Storybook for Superset UI ✨", "private": true, "main": "index.js", @@ -39,31 +39,31 @@ "@storybook/preset-typescript": "^3.0.0", "@storybook/react": "^5.3.18", "@superset-ui/core": "file:../superset-ui-core/src", - "@superset-ui/legacy-plugin-chart-calendar": "0.17.52", - "@superset-ui/legacy-plugin-chart-chord": "0.17.52", - "@superset-ui/legacy-plugin-chart-country-map": "0.17.52", - "@superset-ui/legacy-plugin-chart-event-flow": "0.17.52", - "@superset-ui/legacy-plugin-chart-force-directed": "0.17.52", - "@superset-ui/legacy-plugin-chart-heatmap": "0.17.52", - "@superset-ui/legacy-plugin-chart-histogram": "0.17.52", - "@superset-ui/legacy-plugin-chart-horizon": "0.17.52", - "@superset-ui/legacy-plugin-chart-map-box": "0.17.52", - "@superset-ui/legacy-plugin-chart-paired-t-test": "0.17.52", - "@superset-ui/legacy-plugin-chart-parallel-coordinates": "0.17.52", - "@superset-ui/legacy-plugin-chart-partition": "0.17.52", - "@superset-ui/legacy-plugin-chart-pivot-table": "0.17.52", - "@superset-ui/legacy-plugin-chart-rose": "0.17.52", - "@superset-ui/legacy-plugin-chart-sankey": "0.17.52", - "@superset-ui/legacy-plugin-chart-sankey-loop": "0.17.52", - "@superset-ui/legacy-plugin-chart-sunburst": "0.17.52", - "@superset-ui/legacy-plugin-chart-time-table": "0.17.52", - "@superset-ui/legacy-plugin-chart-treemap": "0.17.52", + "@superset-ui/legacy-plugin-chart-calendar": "0.17.53", + "@superset-ui/legacy-plugin-chart-chord": "0.17.53", + "@superset-ui/legacy-plugin-chart-country-map": "0.17.53", + "@superset-ui/legacy-plugin-chart-event-flow": "0.17.53", + "@superset-ui/legacy-plugin-chart-force-directed": "0.17.53", + "@superset-ui/legacy-plugin-chart-heatmap": "0.17.53", + "@superset-ui/legacy-plugin-chart-histogram": "0.17.53", + "@superset-ui/legacy-plugin-chart-horizon": "0.17.53", + "@superset-ui/legacy-plugin-chart-map-box": "0.17.53", + "@superset-ui/legacy-plugin-chart-paired-t-test": "0.17.53", + "@superset-ui/legacy-plugin-chart-parallel-coordinates": "0.17.53", + "@superset-ui/legacy-plugin-chart-partition": "0.17.53", + "@superset-ui/legacy-plugin-chart-pivot-table": "0.17.53", + "@superset-ui/legacy-plugin-chart-rose": "0.17.53", + "@superset-ui/legacy-plugin-chart-sankey": "0.17.53", + "@superset-ui/legacy-plugin-chart-sankey-loop": "0.17.53", + "@superset-ui/legacy-plugin-chart-sunburst": "0.17.53", + "@superset-ui/legacy-plugin-chart-time-table": "0.17.53", + "@superset-ui/legacy-plugin-chart-treemap": "0.17.53", "@superset-ui/legacy-plugin-chart-word-cloud": "^0.11.15", - "@superset-ui/legacy-plugin-chart-world-map": "0.17.52", - "@superset-ui/legacy-preset-chart-big-number": "0.17.52", - "@superset-ui/plugin-chart-echarts": "0.17.52", - "@superset-ui/plugin-chart-table": "0.17.52", - "@superset-ui/plugin-chart-word-cloud": "0.17.52", + "@superset-ui/legacy-plugin-chart-world-map": "0.17.53", + "@superset-ui/legacy-preset-chart-big-number": "0.17.53", + "@superset-ui/plugin-chart-echarts": "0.17.53", + "@superset-ui/plugin-chart-table": "0.17.53", + "@superset-ui/plugin-chart-word-cloud": "0.17.53", "@types/react-loadable": "^5.5.3", "@types/react-resizable": "^1.7.2", "@types/storybook__react": "5.2.1", diff --git a/plugins/legacy-plugin-chart-calendar/package.json b/plugins/legacy-plugin-chart-calendar/package.json index c54c693403..28bfeaef95 100644 --- a/plugins/legacy-plugin-chart-calendar/package.json +++ b/plugins/legacy-plugin-chart-calendar/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-calendar", - "version": "0.17.52", + "version": "0.17.53", "description": "Superset Legacy Chart - Calendar Heatmap", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.52", - "@superset-ui/core": "0.17.52", + "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/core": "0.17.53", "d3-array": "^2.0.3", "d3-selection": "^1.4.0", "d3-tip": "^0.9.1", diff --git a/plugins/legacy-plugin-chart-chord/package.json b/plugins/legacy-plugin-chart-chord/package.json index ccdac2e010..c2d66a73ef 100644 --- a/plugins/legacy-plugin-chart-chord/package.json +++ b/plugins/legacy-plugin-chart-chord/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-chord", - "version": "0.17.52", + "version": "0.17.53", "description": "Superset Legacy Chart - Chord Diagram", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.52", - "@superset-ui/core": "0.17.52", + "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/core": "0.17.53", "d3": "^3.5.17", "prop-types": "^15.6.2", "react": "^16.13.1" diff --git a/plugins/legacy-plugin-chart-country-map/package.json b/plugins/legacy-plugin-chart-country-map/package.json index 66ac41a7a0..02e8399d1b 100644 --- a/plugins/legacy-plugin-chart-country-map/package.json +++ b/plugins/legacy-plugin-chart-country-map/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-country-map", - "version": "0.17.52", + "version": "0.17.53", "description": "Superset Legacy Chart - Country Map", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.52", - "@superset-ui/core": "0.17.52", + "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/core": "0.17.53", "d3": "^3.5.17", "d3-array": "^2.0.3", "prop-types": "^15.6.2" diff --git a/plugins/legacy-plugin-chart-event-flow/package.json b/plugins/legacy-plugin-chart-event-flow/package.json index e277f616f3..2015cfaefd 100644 --- a/plugins/legacy-plugin-chart-event-flow/package.json +++ b/plugins/legacy-plugin-chart-event-flow/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-event-flow", - "version": "0.17.52", + "version": "0.17.53", "description": "Superset Legacy Chart - Event Flow", "sideEffects": [ "*.css" @@ -29,8 +29,8 @@ }, "dependencies": { "@data-ui/event-flow": "^0.0.84", - "@superset-ui/chart-controls": "0.17.52", - "@superset-ui/core": "0.17.52", + "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/core": "0.17.53", "prop-types": "^15.6.2" }, "peerDependencies": { diff --git a/plugins/legacy-plugin-chart-force-directed/package.json b/plugins/legacy-plugin-chart-force-directed/package.json index d2f41874bb..ccebcb372f 100644 --- a/plugins/legacy-plugin-chart-force-directed/package.json +++ b/plugins/legacy-plugin-chart-force-directed/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-force-directed", - "version": "0.17.52", + "version": "0.17.53", "description": "Superset Legacy Chart - Force-directed Graph", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.52", - "@superset-ui/core": "0.17.52", + "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/core": "0.17.53", "d3": "^3.5.17", "prop-types": "^15.7.2" }, diff --git a/plugins/legacy-plugin-chart-heatmap/package.json b/plugins/legacy-plugin-chart-heatmap/package.json index d740f8363d..229c85b01f 100644 --- a/plugins/legacy-plugin-chart-heatmap/package.json +++ b/plugins/legacy-plugin-chart-heatmap/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-heatmap", - "version": "0.17.52", + "version": "0.17.53", "description": "Superset Legacy Chart - Heatmap", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.52", - "@superset-ui/core": "0.17.52", + "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/core": "0.17.53", "d3": "^3.5.17", "d3-svg-legend": "^1.x", "d3-tip": "^0.9.1", diff --git a/plugins/legacy-plugin-chart-histogram/package.json b/plugins/legacy-plugin-chart-histogram/package.json index 0379536c10..a439c91703 100644 --- a/plugins/legacy-plugin-chart-histogram/package.json +++ b/plugins/legacy-plugin-chart-histogram/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-histogram", - "version": "0.17.52", + "version": "0.17.53", "description": "Superset Legacy Chart - Histogram", "sideEffects": [ "*.css" @@ -30,8 +30,8 @@ "dependencies": { "@data-ui/histogram": "^0.0.84", "@data-ui/theme": "^0.0.84", - "@superset-ui/chart-controls": "0.17.52", - "@superset-ui/core": "0.17.52", + "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/core": "0.17.53", "@vx/legend": "^0.0.198", "@vx/responsive": "^0.0.199", "@vx/scale": "^0.0.197", diff --git a/plugins/legacy-plugin-chart-horizon/package.json b/plugins/legacy-plugin-chart-horizon/package.json index 47755a977c..1af575f5c0 100644 --- a/plugins/legacy-plugin-chart-horizon/package.json +++ b/plugins/legacy-plugin-chart-horizon/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-horizon", - "version": "0.17.52", + "version": "0.17.53", "description": "Superset Legacy Chart - Horizon", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.52", - "@superset-ui/core": "0.17.52", + "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/core": "0.17.53", "d3-array": "^2.0.3", "d3-scale": "^3.0.1", "prop-types": "^15.6.2" diff --git a/plugins/legacy-plugin-chart-map-box/package.json b/plugins/legacy-plugin-chart-map-box/package.json index b45688b473..d9fabdd1df 100644 --- a/plugins/legacy-plugin-chart-map-box/package.json +++ b/plugins/legacy-plugin-chart-map-box/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-map-box", - "version": "0.17.52", + "version": "0.17.53", "description": "Superset Legacy Chart - MapBox", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.52", - "@superset-ui/core": "0.17.52", + "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/core": "0.17.53", "immutable": "^3.8.2", "mapbox-gl": "^0.53.0", "prop-types": "^15.6.2", diff --git a/plugins/legacy-plugin-chart-paired-t-test/package.json b/plugins/legacy-plugin-chart-paired-t-test/package.json index 9ad76a2bc3..824336a8c0 100644 --- a/plugins/legacy-plugin-chart-paired-t-test/package.json +++ b/plugins/legacy-plugin-chart-paired-t-test/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-paired-t-test", - "version": "0.17.52", + "version": "0.17.53", "description": "Superset Legacy Chart - Paired T Test", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.52", - "@superset-ui/core": "0.17.52", + "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/core": "0.17.53", "distributions": "^1.0.0", "prop-types": "^15.6.2", "reactable": "^1.1.0" diff --git a/plugins/legacy-plugin-chart-parallel-coordinates/package.json b/plugins/legacy-plugin-chart-parallel-coordinates/package.json index 1a57ea462c..c38ad8758c 100644 --- a/plugins/legacy-plugin-chart-parallel-coordinates/package.json +++ b/plugins/legacy-plugin-chart-parallel-coordinates/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-parallel-coordinates", - "version": "0.17.52", + "version": "0.17.53", "description": "Superset Legacy Chart - Parallel Coordinates", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.52", - "@superset-ui/core": "0.17.52", + "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/core": "0.17.53", "d3": "^3.5.17", "prop-types": "^15.7.2" }, diff --git a/plugins/legacy-plugin-chart-partition/package.json b/plugins/legacy-plugin-chart-partition/package.json index 361eb19bab..7d748b2a39 100644 --- a/plugins/legacy-plugin-chart-partition/package.json +++ b/plugins/legacy-plugin-chart-partition/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-partition", - "version": "0.17.52", + "version": "0.17.53", "description": "Superset Legacy Chart - Partition", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.52", - "@superset-ui/core": "0.17.52", + "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/core": "0.17.53", "d3": "^3.5.17", "d3-hierarchy": "^1.1.8", "prop-types": "^15.6.2" diff --git a/plugins/legacy-plugin-chart-pivot-table/package.json b/plugins/legacy-plugin-chart-pivot-table/package.json index e8e4255296..232bd2fd1e 100644 --- a/plugins/legacy-plugin-chart-pivot-table/package.json +++ b/plugins/legacy-plugin-chart-pivot-table/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-pivot-table", - "version": "0.17.52", + "version": "0.17.53", "description": "Superset Legacy Chart - Pivot Table", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.52", - "@superset-ui/core": "0.17.52", + "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/core": "0.17.53", "d3": "^3.5.17", "datatables.net-bs": "^1.10.15", "prop-types": "^15.6.2" diff --git a/plugins/legacy-plugin-chart-rose/package.json b/plugins/legacy-plugin-chart-rose/package.json index c8d8962531..702c7a7dde 100644 --- a/plugins/legacy-plugin-chart-rose/package.json +++ b/plugins/legacy-plugin-chart-rose/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-rose", - "version": "0.17.52", + "version": "0.17.53", "description": "Superset Legacy Chart - Nightingale Rose Diagram", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.52", - "@superset-ui/core": "0.17.52", + "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/core": "0.17.53", "d3": "^3.5.17", "nvd3": "1.8.6", "prop-types": "^15.6.2" diff --git a/plugins/legacy-plugin-chart-sankey-loop/package.json b/plugins/legacy-plugin-chart-sankey-loop/package.json index 4b9c076e20..29ffd2fd06 100644 --- a/plugins/legacy-plugin-chart-sankey-loop/package.json +++ b/plugins/legacy-plugin-chart-sankey-loop/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-sankey-loop", - "version": "0.17.52", + "version": "0.17.53", "description": "Superset Legacy Chart - Sankey Diagram with Loops", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.52", - "@superset-ui/core": "0.17.52", + "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/core": "0.17.53", "d3-sankey-diagram": "^0.7.3", "d3-selection": "^1.4.0", "prop-types": "^15.6.2" diff --git a/plugins/legacy-plugin-chart-sankey/package.json b/plugins/legacy-plugin-chart-sankey/package.json index 583854796b..86b190ed08 100644 --- a/plugins/legacy-plugin-chart-sankey/package.json +++ b/plugins/legacy-plugin-chart-sankey/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-sankey", - "version": "0.17.52", + "version": "0.17.53", "description": "Superset Legacy Chart - Sankey Diagram", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.52", - "@superset-ui/core": "0.17.52", + "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/core": "0.17.53", "d3": "^3.5.17", "d3-sankey": "^0.4.2", "prop-types": "^15.6.2" diff --git a/plugins/legacy-plugin-chart-sunburst/package.json b/plugins/legacy-plugin-chart-sunburst/package.json index 012d2bafaa..193342fc17 100644 --- a/plugins/legacy-plugin-chart-sunburst/package.json +++ b/plugins/legacy-plugin-chart-sunburst/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-sunburst", - "version": "0.17.52", + "version": "0.17.53", "description": "Superset Legacy Chart - Sunburst", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.52", - "@superset-ui/core": "0.17.52", + "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/core": "0.17.53", "d3": "^3.5.17", "prop-types": "^15.6.2" } diff --git a/plugins/legacy-plugin-chart-time-table/package.json b/plugins/legacy-plugin-chart-time-table/package.json index 6bab64df8f..e539fda910 100644 --- a/plugins/legacy-plugin-chart-time-table/package.json +++ b/plugins/legacy-plugin-chart-time-table/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-time-table", - "version": "0.17.52", + "version": "0.17.53", "description": "Superset Chart Plugin - Time Table", "sideEffects": [ "*.css" @@ -29,8 +29,8 @@ }, "dependencies": { "@data-ui/sparkline": "^0.0.84", - "@superset-ui/chart-controls": "0.17.52", - "@superset-ui/core": "0.17.52", + "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/core": "0.17.53", "@types/d3-scale": "^2.0.2", "d3-scale": "^3.2.1", "moment": "^2.26.0", diff --git a/plugins/legacy-plugin-chart-treemap/package.json b/plugins/legacy-plugin-chart-treemap/package.json index a0bae63bae..c28eb41bd9 100644 --- a/plugins/legacy-plugin-chart-treemap/package.json +++ b/plugins/legacy-plugin-chart-treemap/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-treemap", - "version": "0.17.52", + "version": "0.17.53", "description": "Superset Legacy Chart - Treemap", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.52", - "@superset-ui/core": "0.17.52", + "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/core": "0.17.53", "d3-hierarchy": "^1.1.8", "d3-selection": "^1.4.0", "prop-types": "^15.6.2" diff --git a/plugins/legacy-plugin-chart-world-map/package.json b/plugins/legacy-plugin-chart-world-map/package.json index 6bd41fcdd4..a84ad7789d 100644 --- a/plugins/legacy-plugin-chart-world-map/package.json +++ b/plugins/legacy-plugin-chart-world-map/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-world-map", - "version": "0.17.52", + "version": "0.17.53", "description": "Superset Legacy Chart - World Map", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.52", - "@superset-ui/core": "0.17.52", + "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/core": "0.17.53", "d3": "^3.5.17", "d3-array": "^2.4.0", "d3-color": "^1.4.1", diff --git a/plugins/legacy-preset-chart-big-number/package.json b/plugins/legacy-preset-chart-big-number/package.json index 713cf9130b..cd72dec828 100644 --- a/plugins/legacy-preset-chart-big-number/package.json +++ b/plugins/legacy-preset-chart-big-number/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-preset-chart-big-number", - "version": "0.17.52", + "version": "0.17.53", "description": "Superset Legacy Chart - Big Number", "sideEffects": [ "*.css" @@ -29,8 +29,8 @@ }, "dependencies": { "@data-ui/xy-chart": "^0.0.84", - "@superset-ui/chart-controls": "0.17.52", - "@superset-ui/core": "0.17.52", + "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/core": "0.17.53", "@types/d3-color": "^1.2.2", "@types/shortid": "^0.0.29", "d3-color": "^1.2.3", diff --git a/plugins/legacy-preset-chart-nvd3/package.json b/plugins/legacy-preset-chart-nvd3/package.json index c22ff5a2e1..687fc44c08 100644 --- a/plugins/legacy-preset-chart-nvd3/package.json +++ b/plugins/legacy-preset-chart-nvd3/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-preset-chart-nvd3", - "version": "0.17.52", + "version": "0.17.53", "description": "Superset Legacy Chart - NVD3", "sideEffects": [ "*.css" @@ -29,8 +29,8 @@ }, "dependencies": { "@data-ui/xy-chart": "^0.0.84", - "@superset-ui/chart-controls": "0.17.52", - "@superset-ui/core": "0.17.52", + "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/core": "0.17.53", "d3": "^3.5.17", "d3-tip": "^0.9.1", "dompurify": "^2.0.6", diff --git a/plugins/plugin-chart-echarts/package.json b/plugins/plugin-chart-echarts/package.json index 8cf71b273d..b70e5dfbf8 100644 --- a/plugins/plugin-chart-echarts/package.json +++ b/plugins/plugin-chart-echarts/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/plugin-chart-echarts", - "version": "0.17.52", + "version": "0.17.53", "description": "Superset Chart - Echarts", "sideEffects": false, "main": "lib/index.js", @@ -26,8 +26,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.52", - "@superset-ui/core": "0.17.52", + "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/core": "0.17.53", "@types/mathjs": "^6.0.7", "d3-array": "^1.2.0", "echarts": "^5.1.1", diff --git a/plugins/plugin-chart-pivot-table/package.json b/plugins/plugin-chart-pivot-table/package.json index 0c3772277d..50d64ab87b 100644 --- a/plugins/plugin-chart-pivot-table/package.json +++ b/plugins/plugin-chart-pivot-table/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/plugin-chart-pivot-table", - "version": "0.17.52", + "version": "0.17.53", "description": "Superset Chart - Pivot Table", "sideEffects": false, "main": "lib/index.js", @@ -26,8 +26,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.52", - "@superset-ui/core": "0.17.52", + "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/core": "0.17.53", "@superset-ui/react-pivottable": "^0.12.8" }, "peerDependencies": { diff --git a/plugins/plugin-chart-table/package.json b/plugins/plugin-chart-table/package.json index 12f814b999..07ffc8d8ee 100644 --- a/plugins/plugin-chart-table/package.json +++ b/plugins/plugin-chart-table/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/plugin-chart-table", - "version": "0.17.52", + "version": "0.17.53", "description": "Superset Chart - Table", "main": "lib/index.js", "module": "esm/index.js", @@ -26,8 +26,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.52", - "@superset-ui/core": "0.17.52", + "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/core": "0.17.53", "@types/d3-array": "^2.9.0", "@types/react-table": "^7.0.29", "d3-array": "^2.4.0", diff --git a/plugins/plugin-chart-word-cloud/package.json b/plugins/plugin-chart-word-cloud/package.json index 1751fdf4a2..cd42a14f18 100644 --- a/plugins/plugin-chart-word-cloud/package.json +++ b/plugins/plugin-chart-word-cloud/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/plugin-chart-word-cloud", - "version": "0.17.52", + "version": "0.17.53", "description": "Superset Chart Plugin - Word Cloud", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.52", - "@superset-ui/core": "0.17.52", + "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/core": "0.17.53", "@types/d3-cloud": "^1.2.1", "@types/d3-scale": "^2.0.2", "d3-cloud": "^1.2.5", diff --git a/plugins/preset-chart-xy/package.json b/plugins/preset-chart-xy/package.json index 16d9c6cfbc..0b02574cf0 100644 --- a/plugins/preset-chart-xy/package.json +++ b/plugins/preset-chart-xy/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/preset-chart-xy", - "version": "0.17.52", + "version": "0.17.53", "description": "Superset Chart - XY", "sideEffects": [ "*.css" @@ -31,8 +31,8 @@ "dependencies": { "@data-ui/theme": "^0.0.84", "@data-ui/xy-chart": "^0.0.84", - "@superset-ui/chart-controls": "0.17.52", - "@superset-ui/core": "0.17.52", + "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/core": "0.17.53", "@vx/axis": "^0.0.198", "@vx/legend": "^0.0.198", "@vx/scale": "^0.0.197", From 8aa7f20c7e2c09c83d0fee3da21c9928783170c7 Mon Sep 17 00:00:00 2001 From: Yongjie Zhao Date: Tue, 8 Jun 2021 09:39:55 +0100 Subject: [PATCH 03/18] feat: expose form_data to datasourceControl (#1148) --- .../superset-ui-chart-controls/src/shared-controls/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/superset-ui-chart-controls/src/shared-controls/index.tsx b/packages/superset-ui-chart-controls/src/shared-controls/index.tsx index c301600c55..3afc660283 100644 --- a/packages/superset-ui-chart-controls/src/shared-controls/index.tsx +++ b/packages/superset-ui-chart-controls/src/shared-controls/index.tsx @@ -149,8 +149,9 @@ const datasourceControl: SharedControlConfig<'DatasourceControl'> = { label: t('Datasource'), default: null, description: null, - mapStateToProps: ({ datasource }) => ({ + mapStateToProps: ({ datasource, form_data }) => ({ datasource, + form_data, }), }; From 284fe010d058126ee3ff347b58f89947f8267bbe Mon Sep 17 00:00:00 2001 From: Ville Brofeldt <33317356+villebro@users.noreply.github.com> Date: Tue, 8 Jun 2021 12:34:36 +0300 Subject: [PATCH 04/18] fix(plugin-chart-echarts): order by timeseries limit metric (#1156) --- .../src/MixedTimeseries/buildQuery.ts | 2 ++ .../src/Timeseries/buildQuery.ts | 6 ++++ .../test/Timeseries/buildQuery.test.ts | 29 +++++++++++++++++++ 3 files changed, 37 insertions(+) diff --git a/plugins/plugin-chart-echarts/src/MixedTimeseries/buildQuery.ts b/plugins/plugin-chart-echarts/src/MixedTimeseries/buildQuery.ts index 406a73e48f..6f423975be 100644 --- a/plugins/plugin-chart-echarts/src/MixedTimeseries/buildQuery.ts +++ b/plugins/plugin-chart-echarts/src/MixedTimeseries/buildQuery.ts @@ -60,6 +60,7 @@ export default function buildQuery(formData: QueryFormData) { { ...baseQueryObject, is_timeseries: true, + orderby: timeseries_limit_metric ? [[timeseries_limit_metric, !order_desc]] : [], post_processing: [ { operation: 'pivot', @@ -82,6 +83,7 @@ export default function buildQuery(formData: QueryFormData) { { ...baseQueryObject, is_timeseries: true, + orderby: timeseries_limit_metric_b ? [[timeseries_limit_metric_b, !order_desc_b]] : [], post_processing: [ { operation: 'pivot', diff --git a/plugins/plugin-chart-echarts/src/Timeseries/buildQuery.ts b/plugins/plugin-chart-echarts/src/Timeseries/buildQuery.ts index 5ffe2df879..bd4bbe5ac8 100644 --- a/plugins/plugin-chart-echarts/src/Timeseries/buildQuery.ts +++ b/plugins/plugin-chart-echarts/src/Timeseries/buildQuery.ts @@ -21,11 +21,17 @@ import { buildQueryContext, getMetricLabel, QueryFormData } from '@superset-ui/c export default function buildQuery(formData: QueryFormData) { return buildQueryContext(formData, baseQueryObject => { const metricLabels = (baseQueryObject.metrics || []).map(getMetricLabel); + const { timeseries_limit_metric, order_desc, orderby } = baseQueryObject; return [ { ...baseQueryObject, groupby: formData.groupby || [], is_timeseries: true, + orderby: orderby?.length + ? orderby + : timeseries_limit_metric + ? [[timeseries_limit_metric, !order_desc]] + : [], post_processing: [ { operation: 'pivot', diff --git a/plugins/plugin-chart-echarts/test/Timeseries/buildQuery.test.ts b/plugins/plugin-chart-echarts/test/Timeseries/buildQuery.test.ts index c333ad7f03..1969b27924 100644 --- a/plugins/plugin-chart-echarts/test/Timeseries/buildQuery.test.ts +++ b/plugins/plugin-chart-echarts/test/Timeseries/buildQuery.test.ts @@ -33,4 +33,33 @@ describe('Timeseries buildQuery', () => { expect(query.groupby).toEqual(['foo']); expect(query.metrics).toEqual(['bar', 'baz']); }); + + it('should order by timeseries limit if orderby unspecified', () => { + const queryContext = buildQuery({ + ...formData, + timeseries_limit_metric: 'bar', + order_desc: true, + }); + const [query] = queryContext.queries; + expect(query.groupby).toEqual(['foo']); + expect(query.metrics).toEqual(['bar', 'baz']); + expect(query.timeseries_limit_metric).toEqual('bar'); + expect(query.order_desc).toEqual(true); + expect(query.orderby).toEqual([['bar', false]]); + }); + + it('should not order by timeseries limit if orderby provided', () => { + const queryContext = buildQuery({ + ...formData, + timeseries_limit_metric: 'bar', + order_desc: true, + orderby: [['foo', true]], + }); + const [query] = queryContext.queries; + expect(query.groupby).toEqual(['foo']); + expect(query.metrics).toEqual(['bar', 'baz']); + expect(query.timeseries_limit_metric).toEqual('bar'); + expect(query.order_desc).toEqual(true); + expect(query.orderby).toEqual([['foo', true]]); + }); }); From 616a26565cb4ec6c0a776a40cdd16baac16f280d Mon Sep 17 00:00:00 2001 From: Ville Brofeldt Date: Tue, 8 Jun 2021 12:37:48 +0300 Subject: [PATCH 05/18] chore: publish v0.17.54 --- lerna.json | 2 +- .../superset-ui-chart-controls/package.json | 2 +- packages/superset-ui-demo/package.json | 50 +++++++++---------- .../legacy-plugin-chart-calendar/package.json | 4 +- .../legacy-plugin-chart-chord/package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../legacy-plugin-chart-heatmap/package.json | 4 +- .../package.json | 4 +- .../legacy-plugin-chart-horizon/package.json | 4 +- .../legacy-plugin-chart-map-box/package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- plugins/legacy-plugin-chart-rose/package.json | 4 +- .../package.json | 4 +- .../legacy-plugin-chart-sankey/package.json | 4 +- .../legacy-plugin-chart-sunburst/package.json | 4 +- .../package.json | 4 +- .../legacy-plugin-chart-treemap/package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- plugins/legacy-preset-chart-nvd3/package.json | 4 +- plugins/plugin-chart-echarts/package.json | 4 +- plugins/plugin-chart-pivot-table/package.json | 4 +- plugins/plugin-chart-table/package.json | 4 +- plugins/plugin-chart-word-cloud/package.json | 4 +- plugins/preset-chart-xy/package.json | 4 +- 30 files changed, 81 insertions(+), 81 deletions(-) diff --git a/lerna.json b/lerna.json index 0753e4a5a2..85c1ce1842 100644 --- a/lerna.json +++ b/lerna.json @@ -6,7 +6,7 @@ "plugins/*" ], "useWorkspaces": true, - "version": "0.17.53", + "version": "0.17.54", "ignoreChanges": [ "**/*.md", "**/*.spec.tsx?", diff --git a/packages/superset-ui-chart-controls/package.json b/packages/superset-ui-chart-controls/package.json index e47eb89da4..035f3c41f8 100644 --- a/packages/superset-ui-chart-controls/package.json +++ b/packages/superset-ui-chart-controls/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/chart-controls", - "version": "0.17.53", + "version": "0.17.54", "description": "Superset UI control-utils", "sideEffects": false, "main": "lib/index.js", diff --git a/packages/superset-ui-demo/package.json b/packages/superset-ui-demo/package.json index f1f28e0f90..72577ddab7 100644 --- a/packages/superset-ui-demo/package.json +++ b/packages/superset-ui-demo/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/demo", - "version": "0.17.53", + "version": "0.17.54", "description": "Storybook for Superset UI ✨", "private": true, "main": "index.js", @@ -39,31 +39,31 @@ "@storybook/preset-typescript": "^3.0.0", "@storybook/react": "^5.3.18", "@superset-ui/core": "file:../superset-ui-core/src", - "@superset-ui/legacy-plugin-chart-calendar": "0.17.53", - "@superset-ui/legacy-plugin-chart-chord": "0.17.53", - "@superset-ui/legacy-plugin-chart-country-map": "0.17.53", - "@superset-ui/legacy-plugin-chart-event-flow": "0.17.53", - "@superset-ui/legacy-plugin-chart-force-directed": "0.17.53", - "@superset-ui/legacy-plugin-chart-heatmap": "0.17.53", - "@superset-ui/legacy-plugin-chart-histogram": "0.17.53", - "@superset-ui/legacy-plugin-chart-horizon": "0.17.53", - "@superset-ui/legacy-plugin-chart-map-box": "0.17.53", - "@superset-ui/legacy-plugin-chart-paired-t-test": "0.17.53", - "@superset-ui/legacy-plugin-chart-parallel-coordinates": "0.17.53", - "@superset-ui/legacy-plugin-chart-partition": "0.17.53", - "@superset-ui/legacy-plugin-chart-pivot-table": "0.17.53", - "@superset-ui/legacy-plugin-chart-rose": "0.17.53", - "@superset-ui/legacy-plugin-chart-sankey": "0.17.53", - "@superset-ui/legacy-plugin-chart-sankey-loop": "0.17.53", - "@superset-ui/legacy-plugin-chart-sunburst": "0.17.53", - "@superset-ui/legacy-plugin-chart-time-table": "0.17.53", - "@superset-ui/legacy-plugin-chart-treemap": "0.17.53", + "@superset-ui/legacy-plugin-chart-calendar": "0.17.54", + "@superset-ui/legacy-plugin-chart-chord": "0.17.54", + "@superset-ui/legacy-plugin-chart-country-map": "0.17.54", + "@superset-ui/legacy-plugin-chart-event-flow": "0.17.54", + "@superset-ui/legacy-plugin-chart-force-directed": "0.17.54", + "@superset-ui/legacy-plugin-chart-heatmap": "0.17.54", + "@superset-ui/legacy-plugin-chart-histogram": "0.17.54", + "@superset-ui/legacy-plugin-chart-horizon": "0.17.54", + "@superset-ui/legacy-plugin-chart-map-box": "0.17.54", + "@superset-ui/legacy-plugin-chart-paired-t-test": "0.17.54", + "@superset-ui/legacy-plugin-chart-parallel-coordinates": "0.17.54", + "@superset-ui/legacy-plugin-chart-partition": "0.17.54", + "@superset-ui/legacy-plugin-chart-pivot-table": "0.17.54", + "@superset-ui/legacy-plugin-chart-rose": "0.17.54", + "@superset-ui/legacy-plugin-chart-sankey": "0.17.54", + "@superset-ui/legacy-plugin-chart-sankey-loop": "0.17.54", + "@superset-ui/legacy-plugin-chart-sunburst": "0.17.54", + "@superset-ui/legacy-plugin-chart-time-table": "0.17.54", + "@superset-ui/legacy-plugin-chart-treemap": "0.17.54", "@superset-ui/legacy-plugin-chart-word-cloud": "^0.11.15", - "@superset-ui/legacy-plugin-chart-world-map": "0.17.53", - "@superset-ui/legacy-preset-chart-big-number": "0.17.53", - "@superset-ui/plugin-chart-echarts": "0.17.53", - "@superset-ui/plugin-chart-table": "0.17.53", - "@superset-ui/plugin-chart-word-cloud": "0.17.53", + "@superset-ui/legacy-plugin-chart-world-map": "0.17.54", + "@superset-ui/legacy-preset-chart-big-number": "0.17.54", + "@superset-ui/plugin-chart-echarts": "0.17.54", + "@superset-ui/plugin-chart-table": "0.17.54", + "@superset-ui/plugin-chart-word-cloud": "0.17.54", "@types/react-loadable": "^5.5.3", "@types/react-resizable": "^1.7.2", "@types/storybook__react": "5.2.1", diff --git a/plugins/legacy-plugin-chart-calendar/package.json b/plugins/legacy-plugin-chart-calendar/package.json index 28bfeaef95..e0a2d61a12 100644 --- a/plugins/legacy-plugin-chart-calendar/package.json +++ b/plugins/legacy-plugin-chart-calendar/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-calendar", - "version": "0.17.53", + "version": "0.17.54", "description": "Superset Legacy Chart - Calendar Heatmap", "sideEffects": [ "*.css" @@ -28,7 +28,7 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/chart-controls": "0.17.54", "@superset-ui/core": "0.17.53", "d3-array": "^2.0.3", "d3-selection": "^1.4.0", diff --git a/plugins/legacy-plugin-chart-chord/package.json b/plugins/legacy-plugin-chart-chord/package.json index c2d66a73ef..35c7483d83 100644 --- a/plugins/legacy-plugin-chart-chord/package.json +++ b/plugins/legacy-plugin-chart-chord/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-chord", - "version": "0.17.53", + "version": "0.17.54", "description": "Superset Legacy Chart - Chord Diagram", "sideEffects": [ "*.css" @@ -28,7 +28,7 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/chart-controls": "0.17.54", "@superset-ui/core": "0.17.53", "d3": "^3.5.17", "prop-types": "^15.6.2", diff --git a/plugins/legacy-plugin-chart-country-map/package.json b/plugins/legacy-plugin-chart-country-map/package.json index 02e8399d1b..cf29b69562 100644 --- a/plugins/legacy-plugin-chart-country-map/package.json +++ b/plugins/legacy-plugin-chart-country-map/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-country-map", - "version": "0.17.53", + "version": "0.17.54", "description": "Superset Legacy Chart - Country Map", "sideEffects": [ "*.css" @@ -28,7 +28,7 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/chart-controls": "0.17.54", "@superset-ui/core": "0.17.53", "d3": "^3.5.17", "d3-array": "^2.0.3", diff --git a/plugins/legacy-plugin-chart-event-flow/package.json b/plugins/legacy-plugin-chart-event-flow/package.json index 2015cfaefd..008dbaffe4 100644 --- a/plugins/legacy-plugin-chart-event-flow/package.json +++ b/plugins/legacy-plugin-chart-event-flow/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-event-flow", - "version": "0.17.53", + "version": "0.17.54", "description": "Superset Legacy Chart - Event Flow", "sideEffects": [ "*.css" @@ -29,7 +29,7 @@ }, "dependencies": { "@data-ui/event-flow": "^0.0.84", - "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/chart-controls": "0.17.54", "@superset-ui/core": "0.17.53", "prop-types": "^15.6.2" }, diff --git a/plugins/legacy-plugin-chart-force-directed/package.json b/plugins/legacy-plugin-chart-force-directed/package.json index ccebcb372f..744db5d7c9 100644 --- a/plugins/legacy-plugin-chart-force-directed/package.json +++ b/plugins/legacy-plugin-chart-force-directed/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-force-directed", - "version": "0.17.53", + "version": "0.17.54", "description": "Superset Legacy Chart - Force-directed Graph", "sideEffects": [ "*.css" @@ -28,7 +28,7 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/chart-controls": "0.17.54", "@superset-ui/core": "0.17.53", "d3": "^3.5.17", "prop-types": "^15.7.2" diff --git a/plugins/legacy-plugin-chart-heatmap/package.json b/plugins/legacy-plugin-chart-heatmap/package.json index 229c85b01f..ad3b4cb1be 100644 --- a/plugins/legacy-plugin-chart-heatmap/package.json +++ b/plugins/legacy-plugin-chart-heatmap/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-heatmap", - "version": "0.17.53", + "version": "0.17.54", "description": "Superset Legacy Chart - Heatmap", "sideEffects": [ "*.css" @@ -28,7 +28,7 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/chart-controls": "0.17.54", "@superset-ui/core": "0.17.53", "d3": "^3.5.17", "d3-svg-legend": "^1.x", diff --git a/plugins/legacy-plugin-chart-histogram/package.json b/plugins/legacy-plugin-chart-histogram/package.json index a439c91703..1f206e9bc9 100644 --- a/plugins/legacy-plugin-chart-histogram/package.json +++ b/plugins/legacy-plugin-chart-histogram/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-histogram", - "version": "0.17.53", + "version": "0.17.54", "description": "Superset Legacy Chart - Histogram", "sideEffects": [ "*.css" @@ -30,7 +30,7 @@ "dependencies": { "@data-ui/histogram": "^0.0.84", "@data-ui/theme": "^0.0.84", - "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/chart-controls": "0.17.54", "@superset-ui/core": "0.17.53", "@vx/legend": "^0.0.198", "@vx/responsive": "^0.0.199", diff --git a/plugins/legacy-plugin-chart-horizon/package.json b/plugins/legacy-plugin-chart-horizon/package.json index 1af575f5c0..cd18e86460 100644 --- a/plugins/legacy-plugin-chart-horizon/package.json +++ b/plugins/legacy-plugin-chart-horizon/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-horizon", - "version": "0.17.53", + "version": "0.17.54", "description": "Superset Legacy Chart - Horizon", "sideEffects": [ "*.css" @@ -28,7 +28,7 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/chart-controls": "0.17.54", "@superset-ui/core": "0.17.53", "d3-array": "^2.0.3", "d3-scale": "^3.0.1", diff --git a/plugins/legacy-plugin-chart-map-box/package.json b/plugins/legacy-plugin-chart-map-box/package.json index d9fabdd1df..cd4850495f 100644 --- a/plugins/legacy-plugin-chart-map-box/package.json +++ b/plugins/legacy-plugin-chart-map-box/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-map-box", - "version": "0.17.53", + "version": "0.17.54", "description": "Superset Legacy Chart - MapBox", "sideEffects": [ "*.css" @@ -28,7 +28,7 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/chart-controls": "0.17.54", "@superset-ui/core": "0.17.53", "immutable": "^3.8.2", "mapbox-gl": "^0.53.0", diff --git a/plugins/legacy-plugin-chart-paired-t-test/package.json b/plugins/legacy-plugin-chart-paired-t-test/package.json index 824336a8c0..a552a12c5a 100644 --- a/plugins/legacy-plugin-chart-paired-t-test/package.json +++ b/plugins/legacy-plugin-chart-paired-t-test/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-paired-t-test", - "version": "0.17.53", + "version": "0.17.54", "description": "Superset Legacy Chart - Paired T Test", "sideEffects": [ "*.css" @@ -28,7 +28,7 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/chart-controls": "0.17.54", "@superset-ui/core": "0.17.53", "distributions": "^1.0.0", "prop-types": "^15.6.2", diff --git a/plugins/legacy-plugin-chart-parallel-coordinates/package.json b/plugins/legacy-plugin-chart-parallel-coordinates/package.json index c38ad8758c..07859c1547 100644 --- a/plugins/legacy-plugin-chart-parallel-coordinates/package.json +++ b/plugins/legacy-plugin-chart-parallel-coordinates/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-parallel-coordinates", - "version": "0.17.53", + "version": "0.17.54", "description": "Superset Legacy Chart - Parallel Coordinates", "sideEffects": [ "*.css" @@ -28,7 +28,7 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/chart-controls": "0.17.54", "@superset-ui/core": "0.17.53", "d3": "^3.5.17", "prop-types": "^15.7.2" diff --git a/plugins/legacy-plugin-chart-partition/package.json b/plugins/legacy-plugin-chart-partition/package.json index 7d748b2a39..5798655801 100644 --- a/plugins/legacy-plugin-chart-partition/package.json +++ b/plugins/legacy-plugin-chart-partition/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-partition", - "version": "0.17.53", + "version": "0.17.54", "description": "Superset Legacy Chart - Partition", "sideEffects": [ "*.css" @@ -28,7 +28,7 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/chart-controls": "0.17.54", "@superset-ui/core": "0.17.53", "d3": "^3.5.17", "d3-hierarchy": "^1.1.8", diff --git a/plugins/legacy-plugin-chart-pivot-table/package.json b/plugins/legacy-plugin-chart-pivot-table/package.json index 232bd2fd1e..dc59bf24fd 100644 --- a/plugins/legacy-plugin-chart-pivot-table/package.json +++ b/plugins/legacy-plugin-chart-pivot-table/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-pivot-table", - "version": "0.17.53", + "version": "0.17.54", "description": "Superset Legacy Chart - Pivot Table", "sideEffects": [ "*.css" @@ -28,7 +28,7 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/chart-controls": "0.17.54", "@superset-ui/core": "0.17.53", "d3": "^3.5.17", "datatables.net-bs": "^1.10.15", diff --git a/plugins/legacy-plugin-chart-rose/package.json b/plugins/legacy-plugin-chart-rose/package.json index 702c7a7dde..a0a9739568 100644 --- a/plugins/legacy-plugin-chart-rose/package.json +++ b/plugins/legacy-plugin-chart-rose/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-rose", - "version": "0.17.53", + "version": "0.17.54", "description": "Superset Legacy Chart - Nightingale Rose Diagram", "sideEffects": [ "*.css" @@ -28,7 +28,7 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/chart-controls": "0.17.54", "@superset-ui/core": "0.17.53", "d3": "^3.5.17", "nvd3": "1.8.6", diff --git a/plugins/legacy-plugin-chart-sankey-loop/package.json b/plugins/legacy-plugin-chart-sankey-loop/package.json index 29ffd2fd06..160700edf0 100644 --- a/plugins/legacy-plugin-chart-sankey-loop/package.json +++ b/plugins/legacy-plugin-chart-sankey-loop/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-sankey-loop", - "version": "0.17.53", + "version": "0.17.54", "description": "Superset Legacy Chart - Sankey Diagram with Loops", "sideEffects": [ "*.css" @@ -28,7 +28,7 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/chart-controls": "0.17.54", "@superset-ui/core": "0.17.53", "d3-sankey-diagram": "^0.7.3", "d3-selection": "^1.4.0", diff --git a/plugins/legacy-plugin-chart-sankey/package.json b/plugins/legacy-plugin-chart-sankey/package.json index 86b190ed08..cec97468c9 100644 --- a/plugins/legacy-plugin-chart-sankey/package.json +++ b/plugins/legacy-plugin-chart-sankey/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-sankey", - "version": "0.17.53", + "version": "0.17.54", "description": "Superset Legacy Chart - Sankey Diagram", "sideEffects": [ "*.css" @@ -28,7 +28,7 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/chart-controls": "0.17.54", "@superset-ui/core": "0.17.53", "d3": "^3.5.17", "d3-sankey": "^0.4.2", diff --git a/plugins/legacy-plugin-chart-sunburst/package.json b/plugins/legacy-plugin-chart-sunburst/package.json index 193342fc17..727fbcc90c 100644 --- a/plugins/legacy-plugin-chart-sunburst/package.json +++ b/plugins/legacy-plugin-chart-sunburst/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-sunburst", - "version": "0.17.53", + "version": "0.17.54", "description": "Superset Legacy Chart - Sunburst", "sideEffects": [ "*.css" @@ -28,7 +28,7 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/chart-controls": "0.17.54", "@superset-ui/core": "0.17.53", "d3": "^3.5.17", "prop-types": "^15.6.2" diff --git a/plugins/legacy-plugin-chart-time-table/package.json b/plugins/legacy-plugin-chart-time-table/package.json index e539fda910..dbdac7a1b9 100644 --- a/plugins/legacy-plugin-chart-time-table/package.json +++ b/plugins/legacy-plugin-chart-time-table/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-time-table", - "version": "0.17.53", + "version": "0.17.54", "description": "Superset Chart Plugin - Time Table", "sideEffects": [ "*.css" @@ -29,7 +29,7 @@ }, "dependencies": { "@data-ui/sparkline": "^0.0.84", - "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/chart-controls": "0.17.54", "@superset-ui/core": "0.17.53", "@types/d3-scale": "^2.0.2", "d3-scale": "^3.2.1", diff --git a/plugins/legacy-plugin-chart-treemap/package.json b/plugins/legacy-plugin-chart-treemap/package.json index c28eb41bd9..e0cb3b2741 100644 --- a/plugins/legacy-plugin-chart-treemap/package.json +++ b/plugins/legacy-plugin-chart-treemap/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-treemap", - "version": "0.17.53", + "version": "0.17.54", "description": "Superset Legacy Chart - Treemap", "sideEffects": [ "*.css" @@ -28,7 +28,7 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/chart-controls": "0.17.54", "@superset-ui/core": "0.17.53", "d3-hierarchy": "^1.1.8", "d3-selection": "^1.4.0", diff --git a/plugins/legacy-plugin-chart-world-map/package.json b/plugins/legacy-plugin-chart-world-map/package.json index a84ad7789d..c69c065242 100644 --- a/plugins/legacy-plugin-chart-world-map/package.json +++ b/plugins/legacy-plugin-chart-world-map/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-world-map", - "version": "0.17.53", + "version": "0.17.54", "description": "Superset Legacy Chart - World Map", "sideEffects": [ "*.css" @@ -28,7 +28,7 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/chart-controls": "0.17.54", "@superset-ui/core": "0.17.53", "d3": "^3.5.17", "d3-array": "^2.4.0", diff --git a/plugins/legacy-preset-chart-big-number/package.json b/plugins/legacy-preset-chart-big-number/package.json index cd72dec828..93eb935502 100644 --- a/plugins/legacy-preset-chart-big-number/package.json +++ b/plugins/legacy-preset-chart-big-number/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-preset-chart-big-number", - "version": "0.17.53", + "version": "0.17.54", "description": "Superset Legacy Chart - Big Number", "sideEffects": [ "*.css" @@ -29,7 +29,7 @@ }, "dependencies": { "@data-ui/xy-chart": "^0.0.84", - "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/chart-controls": "0.17.54", "@superset-ui/core": "0.17.53", "@types/d3-color": "^1.2.2", "@types/shortid": "^0.0.29", diff --git a/plugins/legacy-preset-chart-nvd3/package.json b/plugins/legacy-preset-chart-nvd3/package.json index 687fc44c08..9f85426c55 100644 --- a/plugins/legacy-preset-chart-nvd3/package.json +++ b/plugins/legacy-preset-chart-nvd3/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-preset-chart-nvd3", - "version": "0.17.53", + "version": "0.17.54", "description": "Superset Legacy Chart - NVD3", "sideEffects": [ "*.css" @@ -29,7 +29,7 @@ }, "dependencies": { "@data-ui/xy-chart": "^0.0.84", - "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/chart-controls": "0.17.54", "@superset-ui/core": "0.17.53", "d3": "^3.5.17", "d3-tip": "^0.9.1", diff --git a/plugins/plugin-chart-echarts/package.json b/plugins/plugin-chart-echarts/package.json index b70e5dfbf8..d64a778054 100644 --- a/plugins/plugin-chart-echarts/package.json +++ b/plugins/plugin-chart-echarts/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/plugin-chart-echarts", - "version": "0.17.53", + "version": "0.17.54", "description": "Superset Chart - Echarts", "sideEffects": false, "main": "lib/index.js", @@ -26,7 +26,7 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/chart-controls": "0.17.54", "@superset-ui/core": "0.17.53", "@types/mathjs": "^6.0.7", "d3-array": "^1.2.0", diff --git a/plugins/plugin-chart-pivot-table/package.json b/plugins/plugin-chart-pivot-table/package.json index 50d64ab87b..0dd3205c3b 100644 --- a/plugins/plugin-chart-pivot-table/package.json +++ b/plugins/plugin-chart-pivot-table/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/plugin-chart-pivot-table", - "version": "0.17.53", + "version": "0.17.54", "description": "Superset Chart - Pivot Table", "sideEffects": false, "main": "lib/index.js", @@ -26,7 +26,7 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/chart-controls": "0.17.54", "@superset-ui/core": "0.17.53", "@superset-ui/react-pivottable": "^0.12.8" }, diff --git a/plugins/plugin-chart-table/package.json b/plugins/plugin-chart-table/package.json index 07ffc8d8ee..960a694ed8 100644 --- a/plugins/plugin-chart-table/package.json +++ b/plugins/plugin-chart-table/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/plugin-chart-table", - "version": "0.17.53", + "version": "0.17.54", "description": "Superset Chart - Table", "main": "lib/index.js", "module": "esm/index.js", @@ -26,7 +26,7 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/chart-controls": "0.17.54", "@superset-ui/core": "0.17.53", "@types/d3-array": "^2.9.0", "@types/react-table": "^7.0.29", diff --git a/plugins/plugin-chart-word-cloud/package.json b/plugins/plugin-chart-word-cloud/package.json index cd42a14f18..69129cac8c 100644 --- a/plugins/plugin-chart-word-cloud/package.json +++ b/plugins/plugin-chart-word-cloud/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/plugin-chart-word-cloud", - "version": "0.17.53", + "version": "0.17.54", "description": "Superset Chart Plugin - Word Cloud", "sideEffects": [ "*.css" @@ -28,7 +28,7 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/chart-controls": "0.17.54", "@superset-ui/core": "0.17.53", "@types/d3-cloud": "^1.2.1", "@types/d3-scale": "^2.0.2", diff --git a/plugins/preset-chart-xy/package.json b/plugins/preset-chart-xy/package.json index 0b02574cf0..9cc5e42362 100644 --- a/plugins/preset-chart-xy/package.json +++ b/plugins/preset-chart-xy/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/preset-chart-xy", - "version": "0.17.53", + "version": "0.17.54", "description": "Superset Chart - XY", "sideEffects": [ "*.css" @@ -31,7 +31,7 @@ "dependencies": { "@data-ui/theme": "^0.0.84", "@data-ui/xy-chart": "^0.0.84", - "@superset-ui/chart-controls": "0.17.53", + "@superset-ui/chart-controls": "0.17.54", "@superset-ui/core": "0.17.53", "@vx/axis": "^0.0.198", "@vx/legend": "^0.0.198", From 9dc4f8f068b8abdae3d94eba51bf4da4a10cfb75 Mon Sep 17 00:00:00 2001 From: David Aaron Suddjian <1858430+suddjian@users.noreply.github.com> Date: Wed, 9 Jun 2021 12:22:31 -0700 Subject: [PATCH 06/18] chore(core): add new fields to metadata class (#1149) --- .../src/chart/models/ChartMetadata.ts | 34 ++++++++++++------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/packages/superset-ui-core/src/chart/models/ChartMetadata.ts b/packages/superset-ui-core/src/chart/models/ChartMetadata.ts index 736139850c..eea68afb82 100644 --- a/packages/superset-ui-core/src/chart/models/ChartMetadata.ts +++ b/packages/superset-ui-core/src/chart/models/ChartMetadata.ts @@ -16,6 +16,10 @@ export interface ChartMetadataConfig { thumbnail: string; useLegacyApi?: boolean; behaviors?: Behavior[]; + deprecated?: boolean; + exampleGallery?: string[]; + tags?: string[]; + categories?: string[]; } export default class ChartMetadata { @@ -43,6 +47,14 @@ export default class ChartMetadata { enableNoResults: boolean; + deprecated: boolean; + + exampleGallery: string[]; + + tags: string[]; + + categories: string[]; + constructor(config: ChartMetadataConfig) { const { name, @@ -56,6 +68,10 @@ export default class ChartMetadata { behaviors = [], datasourceCount = 1, enableNoResults = true, + deprecated = false, + exampleGallery = [], + tags = [], + categories = [], } = config; this.name = name; @@ -78,6 +94,10 @@ export default class ChartMetadata { this.behaviors = behaviors; this.datasourceCount = datasourceCount; this.enableNoResults = enableNoResults; + this.deprecated = deprecated; + this.exampleGallery = exampleGallery; + this.tags = tags; + this.categories = categories; } canBeAnnotationType(type: string): boolean { @@ -85,18 +105,6 @@ export default class ChartMetadata { } clone() { - return new ChartMetadata({ - canBeAnnotationTypes: this.canBeAnnotationTypes, - credits: this.credits, - description: this.description, - name: this.name, - show: this.show, - supportedAnnotationTypes: this.supportedAnnotationTypes, - thumbnail: this.thumbnail, - useLegacyApi: this.useLegacyApi, - behaviors: this.behaviors, - datasourceCount: this.datasourceCount, - enableNoResults: this.enableNoResults, - }); + return new ChartMetadata(this); } } From fdb9b47ad7adc5a260b91b4679c7cd28ac99dbfd Mon Sep 17 00:00:00 2001 From: Erik Ritter Date: Wed, 9 Jun 2021 17:56:19 -0700 Subject: [PATCH 07/18] fix: tooltips on nvd3 charts (#1162) --- .../legacy-preset-chart-nvd3/src/NVD3Vis.js | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/plugins/legacy-preset-chart-nvd3/src/NVD3Vis.js b/plugins/legacy-preset-chart-nvd3/src/NVD3Vis.js index cba128868d..4f5e2b7970 100644 --- a/plugins/legacy-preset-chart-nvd3/src/NVD3Vis.js +++ b/plugins/legacy-preset-chart-nvd3/src/NVD3Vis.js @@ -126,6 +126,8 @@ const TIMESERIES_VIZ_TYPES = [ 'time_pivot', ]; +const CHART_ID_PREFIX = 'chart-id-'; + const propTypes = { data: PropTypes.oneOfType([ PropTypes.arrayOf( @@ -309,10 +311,18 @@ function nvd3Vis(element, props) { const container = element; container.innerHTML = ''; const activeAnnotationLayers = annotationLayers.filter(layer => layer.show); - const chartId = - container.parentElement && container.parentElement.id !== '' - ? container.parentElement.id - : null; + + // Search for the chart id in a parent div from the nvd3 chart + let chartContainer = container; + let chartId = null; + while (chartContainer.parentElement) { + if (chartContainer.parentElement.id.startsWith(CHART_ID_PREFIX)) { + chartId = chartContainer.parentElement.id; + break; + } + + chartContainer = chartContainer.parentElement; + } let chart; let width = maxWidth; From 2b27d1bcb69d93b0196d3f7bf9e7e11b671f7dcd Mon Sep 17 00:00:00 2001 From: erik_ritter Date: Thu, 10 Jun 2021 01:07:14 +0000 Subject: [PATCH 08/18] fix: commit yarn lock change for release --- yarn.lock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/yarn.lock b/yarn.lock index 850c145fdc..95612e6156 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4391,10 +4391,10 @@ d3-cloud "^1.2.1" prop-types "^15.6.2" -"@superset-ui/react-pivottable@^0.12.6": - version "0.12.6" - resolved "https://registry.yarnpkg.com/@superset-ui/react-pivottable/-/react-pivottable-0.12.6.tgz#c1d62a71e5f729381f8be0b1653b9a9e353d3dc3" - integrity sha512-2+81WL4ocv4VFzgkj3wOBcEgejnJfsJ2D08kMvFfeBt6fhqC35nkendeZMAjl4bFBmzSJIFS6H+agjoeOUyq5A== +"@superset-ui/react-pivottable@^0.12.8": + version "0.12.8" + resolved "https://registry.yarnpkg.com/@superset-ui/react-pivottable/-/react-pivottable-0.12.8.tgz#3b7d6cd32719d6510b88b2334afacbb1735afee5" + integrity sha512-7DRxX/w1uSQE1pibSe64t1o+fmiP7ZWT2FJkjK510bSJm8NUIPCXtmpK+NKtNZuCteE9sqE7bQxd54SSq2xWKw== dependencies: immutability-helper "^3.1.1" prop-types "^15.7.2" From 67afa52764ef672d726c4c95d1da5426816bc21f Mon Sep 17 00:00:00 2001 From: erik_ritter Date: Thu, 10 Jun 2021 01:10:20 +0000 Subject: [PATCH 09/18] chore: publish v0.17.55 --- lerna.json | 2 +- .../superset-ui-chart-controls/package.json | 4 +- packages/superset-ui-core/package.json | 2 +- packages/superset-ui-demo/package.json | 50 +++++++++---------- .../legacy-plugin-chart-calendar/package.json | 6 +-- .../legacy-plugin-chart-chord/package.json | 6 +-- .../package.json | 6 +-- .../package.json | 6 +-- .../package.json | 6 +-- .../legacy-plugin-chart-heatmap/package.json | 6 +-- .../package.json | 6 +-- .../legacy-plugin-chart-horizon/package.json | 6 +-- .../legacy-plugin-chart-map-box/package.json | 6 +-- .../package.json | 6 +-- .../package.json | 6 +-- .../package.json | 6 +-- .../package.json | 6 +-- plugins/legacy-plugin-chart-rose/package.json | 6 +-- .../package.json | 6 +-- .../legacy-plugin-chart-sankey/package.json | 6 +-- .../legacy-plugin-chart-sunburst/package.json | 6 +-- .../package.json | 6 +-- .../legacy-plugin-chart-treemap/package.json | 6 +-- .../package.json | 6 +-- .../package.json | 6 +-- plugins/legacy-preset-chart-nvd3/package.json | 6 +-- plugins/plugin-chart-echarts/package.json | 6 +-- plugins/plugin-chart-pivot-table/package.json | 6 +-- plugins/plugin-chart-table/package.json | 6 +-- plugins/plugin-chart-word-cloud/package.json | 6 +-- plugins/preset-chart-xy/package.json | 6 +-- 31 files changed, 110 insertions(+), 110 deletions(-) diff --git a/lerna.json b/lerna.json index 85c1ce1842..984383b0a8 100644 --- a/lerna.json +++ b/lerna.json @@ -6,7 +6,7 @@ "plugins/*" ], "useWorkspaces": true, - "version": "0.17.54", + "version": "0.17.55", "ignoreChanges": [ "**/*.md", "**/*.spec.tsx?", diff --git a/packages/superset-ui-chart-controls/package.json b/packages/superset-ui-chart-controls/package.json index 035f3c41f8..9308e6c77c 100644 --- a/packages/superset-ui-chart-controls/package.json +++ b/packages/superset-ui-chart-controls/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/chart-controls", - "version": "0.17.54", + "version": "0.17.55", "description": "Superset UI control-utils", "sideEffects": false, "main": "lib/index.js", @@ -26,7 +26,7 @@ "access": "public" }, "dependencies": { - "@superset-ui/core": "0.17.53", + "@superset-ui/core": "0.17.55", "lodash": "^4.17.15", "prop-types": "^15.7.2" }, diff --git a/packages/superset-ui-core/package.json b/packages/superset-ui-core/package.json index 0233c53e08..08c04be19c 100644 --- a/packages/superset-ui-core/package.json +++ b/packages/superset-ui-core/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/core", - "version": "0.17.53", + "version": "0.17.55", "description": "Superset UI core", "sideEffects": false, "main": "lib/index.js", diff --git a/packages/superset-ui-demo/package.json b/packages/superset-ui-demo/package.json index 72577ddab7..8b719f9b24 100644 --- a/packages/superset-ui-demo/package.json +++ b/packages/superset-ui-demo/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/demo", - "version": "0.17.54", + "version": "0.17.55", "description": "Storybook for Superset UI ✨", "private": true, "main": "index.js", @@ -39,31 +39,31 @@ "@storybook/preset-typescript": "^3.0.0", "@storybook/react": "^5.3.18", "@superset-ui/core": "file:../superset-ui-core/src", - "@superset-ui/legacy-plugin-chart-calendar": "0.17.54", - "@superset-ui/legacy-plugin-chart-chord": "0.17.54", - "@superset-ui/legacy-plugin-chart-country-map": "0.17.54", - "@superset-ui/legacy-plugin-chart-event-flow": "0.17.54", - "@superset-ui/legacy-plugin-chart-force-directed": "0.17.54", - "@superset-ui/legacy-plugin-chart-heatmap": "0.17.54", - "@superset-ui/legacy-plugin-chart-histogram": "0.17.54", - "@superset-ui/legacy-plugin-chart-horizon": "0.17.54", - "@superset-ui/legacy-plugin-chart-map-box": "0.17.54", - "@superset-ui/legacy-plugin-chart-paired-t-test": "0.17.54", - "@superset-ui/legacy-plugin-chart-parallel-coordinates": "0.17.54", - "@superset-ui/legacy-plugin-chart-partition": "0.17.54", - "@superset-ui/legacy-plugin-chart-pivot-table": "0.17.54", - "@superset-ui/legacy-plugin-chart-rose": "0.17.54", - "@superset-ui/legacy-plugin-chart-sankey": "0.17.54", - "@superset-ui/legacy-plugin-chart-sankey-loop": "0.17.54", - "@superset-ui/legacy-plugin-chart-sunburst": "0.17.54", - "@superset-ui/legacy-plugin-chart-time-table": "0.17.54", - "@superset-ui/legacy-plugin-chart-treemap": "0.17.54", + "@superset-ui/legacy-plugin-chart-calendar": "0.17.55", + "@superset-ui/legacy-plugin-chart-chord": "0.17.55", + "@superset-ui/legacy-plugin-chart-country-map": "0.17.55", + "@superset-ui/legacy-plugin-chart-event-flow": "0.17.55", + "@superset-ui/legacy-plugin-chart-force-directed": "0.17.55", + "@superset-ui/legacy-plugin-chart-heatmap": "0.17.55", + "@superset-ui/legacy-plugin-chart-histogram": "0.17.55", + "@superset-ui/legacy-plugin-chart-horizon": "0.17.55", + "@superset-ui/legacy-plugin-chart-map-box": "0.17.55", + "@superset-ui/legacy-plugin-chart-paired-t-test": "0.17.55", + "@superset-ui/legacy-plugin-chart-parallel-coordinates": "0.17.55", + "@superset-ui/legacy-plugin-chart-partition": "0.17.55", + "@superset-ui/legacy-plugin-chart-pivot-table": "0.17.55", + "@superset-ui/legacy-plugin-chart-rose": "0.17.55", + "@superset-ui/legacy-plugin-chart-sankey": "0.17.55", + "@superset-ui/legacy-plugin-chart-sankey-loop": "0.17.55", + "@superset-ui/legacy-plugin-chart-sunburst": "0.17.55", + "@superset-ui/legacy-plugin-chart-time-table": "0.17.55", + "@superset-ui/legacy-plugin-chart-treemap": "0.17.55", "@superset-ui/legacy-plugin-chart-word-cloud": "^0.11.15", - "@superset-ui/legacy-plugin-chart-world-map": "0.17.54", - "@superset-ui/legacy-preset-chart-big-number": "0.17.54", - "@superset-ui/plugin-chart-echarts": "0.17.54", - "@superset-ui/plugin-chart-table": "0.17.54", - "@superset-ui/plugin-chart-word-cloud": "0.17.54", + "@superset-ui/legacy-plugin-chart-world-map": "0.17.55", + "@superset-ui/legacy-preset-chart-big-number": "0.17.55", + "@superset-ui/plugin-chart-echarts": "0.17.55", + "@superset-ui/plugin-chart-table": "0.17.55", + "@superset-ui/plugin-chart-word-cloud": "0.17.55", "@types/react-loadable": "^5.5.3", "@types/react-resizable": "^1.7.2", "@types/storybook__react": "5.2.1", diff --git a/plugins/legacy-plugin-chart-calendar/package.json b/plugins/legacy-plugin-chart-calendar/package.json index e0a2d61a12..acbf4bec51 100644 --- a/plugins/legacy-plugin-chart-calendar/package.json +++ b/plugins/legacy-plugin-chart-calendar/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-calendar", - "version": "0.17.54", + "version": "0.17.55", "description": "Superset Legacy Chart - Calendar Heatmap", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.54", - "@superset-ui/core": "0.17.53", + "@superset-ui/chart-controls": "0.17.55", + "@superset-ui/core": "0.17.55", "d3-array": "^2.0.3", "d3-selection": "^1.4.0", "d3-tip": "^0.9.1", diff --git a/plugins/legacy-plugin-chart-chord/package.json b/plugins/legacy-plugin-chart-chord/package.json index 35c7483d83..84188c03a6 100644 --- a/plugins/legacy-plugin-chart-chord/package.json +++ b/plugins/legacy-plugin-chart-chord/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-chord", - "version": "0.17.54", + "version": "0.17.55", "description": "Superset Legacy Chart - Chord Diagram", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.54", - "@superset-ui/core": "0.17.53", + "@superset-ui/chart-controls": "0.17.55", + "@superset-ui/core": "0.17.55", "d3": "^3.5.17", "prop-types": "^15.6.2", "react": "^16.13.1" diff --git a/plugins/legacy-plugin-chart-country-map/package.json b/plugins/legacy-plugin-chart-country-map/package.json index cf29b69562..f6119f03b9 100644 --- a/plugins/legacy-plugin-chart-country-map/package.json +++ b/plugins/legacy-plugin-chart-country-map/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-country-map", - "version": "0.17.54", + "version": "0.17.55", "description": "Superset Legacy Chart - Country Map", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.54", - "@superset-ui/core": "0.17.53", + "@superset-ui/chart-controls": "0.17.55", + "@superset-ui/core": "0.17.55", "d3": "^3.5.17", "d3-array": "^2.0.3", "prop-types": "^15.6.2" diff --git a/plugins/legacy-plugin-chart-event-flow/package.json b/plugins/legacy-plugin-chart-event-flow/package.json index 008dbaffe4..4ae24ade50 100644 --- a/plugins/legacy-plugin-chart-event-flow/package.json +++ b/plugins/legacy-plugin-chart-event-flow/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-event-flow", - "version": "0.17.54", + "version": "0.17.55", "description": "Superset Legacy Chart - Event Flow", "sideEffects": [ "*.css" @@ -29,8 +29,8 @@ }, "dependencies": { "@data-ui/event-flow": "^0.0.84", - "@superset-ui/chart-controls": "0.17.54", - "@superset-ui/core": "0.17.53", + "@superset-ui/chart-controls": "0.17.55", + "@superset-ui/core": "0.17.55", "prop-types": "^15.6.2" }, "peerDependencies": { diff --git a/plugins/legacy-plugin-chart-force-directed/package.json b/plugins/legacy-plugin-chart-force-directed/package.json index 744db5d7c9..60fd701dd6 100644 --- a/plugins/legacy-plugin-chart-force-directed/package.json +++ b/plugins/legacy-plugin-chart-force-directed/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-force-directed", - "version": "0.17.54", + "version": "0.17.55", "description": "Superset Legacy Chart - Force-directed Graph", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.54", - "@superset-ui/core": "0.17.53", + "@superset-ui/chart-controls": "0.17.55", + "@superset-ui/core": "0.17.55", "d3": "^3.5.17", "prop-types": "^15.7.2" }, diff --git a/plugins/legacy-plugin-chart-heatmap/package.json b/plugins/legacy-plugin-chart-heatmap/package.json index ad3b4cb1be..ac8d991d08 100644 --- a/plugins/legacy-plugin-chart-heatmap/package.json +++ b/plugins/legacy-plugin-chart-heatmap/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-heatmap", - "version": "0.17.54", + "version": "0.17.55", "description": "Superset Legacy Chart - Heatmap", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.54", - "@superset-ui/core": "0.17.53", + "@superset-ui/chart-controls": "0.17.55", + "@superset-ui/core": "0.17.55", "d3": "^3.5.17", "d3-svg-legend": "^1.x", "d3-tip": "^0.9.1", diff --git a/plugins/legacy-plugin-chart-histogram/package.json b/plugins/legacy-plugin-chart-histogram/package.json index 1f206e9bc9..886ba0d1dc 100644 --- a/plugins/legacy-plugin-chart-histogram/package.json +++ b/plugins/legacy-plugin-chart-histogram/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-histogram", - "version": "0.17.54", + "version": "0.17.55", "description": "Superset Legacy Chart - Histogram", "sideEffects": [ "*.css" @@ -30,8 +30,8 @@ "dependencies": { "@data-ui/histogram": "^0.0.84", "@data-ui/theme": "^0.0.84", - "@superset-ui/chart-controls": "0.17.54", - "@superset-ui/core": "0.17.53", + "@superset-ui/chart-controls": "0.17.55", + "@superset-ui/core": "0.17.55", "@vx/legend": "^0.0.198", "@vx/responsive": "^0.0.199", "@vx/scale": "^0.0.197", diff --git a/plugins/legacy-plugin-chart-horizon/package.json b/plugins/legacy-plugin-chart-horizon/package.json index cd18e86460..21ac57d333 100644 --- a/plugins/legacy-plugin-chart-horizon/package.json +++ b/plugins/legacy-plugin-chart-horizon/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-horizon", - "version": "0.17.54", + "version": "0.17.55", "description": "Superset Legacy Chart - Horizon", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.54", - "@superset-ui/core": "0.17.53", + "@superset-ui/chart-controls": "0.17.55", + "@superset-ui/core": "0.17.55", "d3-array": "^2.0.3", "d3-scale": "^3.0.1", "prop-types": "^15.6.2" diff --git a/plugins/legacy-plugin-chart-map-box/package.json b/plugins/legacy-plugin-chart-map-box/package.json index cd4850495f..490af0fafc 100644 --- a/plugins/legacy-plugin-chart-map-box/package.json +++ b/plugins/legacy-plugin-chart-map-box/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-map-box", - "version": "0.17.54", + "version": "0.17.55", "description": "Superset Legacy Chart - MapBox", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.54", - "@superset-ui/core": "0.17.53", + "@superset-ui/chart-controls": "0.17.55", + "@superset-ui/core": "0.17.55", "immutable": "^3.8.2", "mapbox-gl": "^0.53.0", "prop-types": "^15.6.2", diff --git a/plugins/legacy-plugin-chart-paired-t-test/package.json b/plugins/legacy-plugin-chart-paired-t-test/package.json index a552a12c5a..c7897080dc 100644 --- a/plugins/legacy-plugin-chart-paired-t-test/package.json +++ b/plugins/legacy-plugin-chart-paired-t-test/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-paired-t-test", - "version": "0.17.54", + "version": "0.17.55", "description": "Superset Legacy Chart - Paired T Test", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.54", - "@superset-ui/core": "0.17.53", + "@superset-ui/chart-controls": "0.17.55", + "@superset-ui/core": "0.17.55", "distributions": "^1.0.0", "prop-types": "^15.6.2", "reactable": "^1.1.0" diff --git a/plugins/legacy-plugin-chart-parallel-coordinates/package.json b/plugins/legacy-plugin-chart-parallel-coordinates/package.json index 07859c1547..db7ba62259 100644 --- a/plugins/legacy-plugin-chart-parallel-coordinates/package.json +++ b/plugins/legacy-plugin-chart-parallel-coordinates/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-parallel-coordinates", - "version": "0.17.54", + "version": "0.17.55", "description": "Superset Legacy Chart - Parallel Coordinates", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.54", - "@superset-ui/core": "0.17.53", + "@superset-ui/chart-controls": "0.17.55", + "@superset-ui/core": "0.17.55", "d3": "^3.5.17", "prop-types": "^15.7.2" }, diff --git a/plugins/legacy-plugin-chart-partition/package.json b/plugins/legacy-plugin-chart-partition/package.json index 5798655801..d5cfd8a88f 100644 --- a/plugins/legacy-plugin-chart-partition/package.json +++ b/plugins/legacy-plugin-chart-partition/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-partition", - "version": "0.17.54", + "version": "0.17.55", "description": "Superset Legacy Chart - Partition", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.54", - "@superset-ui/core": "0.17.53", + "@superset-ui/chart-controls": "0.17.55", + "@superset-ui/core": "0.17.55", "d3": "^3.5.17", "d3-hierarchy": "^1.1.8", "prop-types": "^15.6.2" diff --git a/plugins/legacy-plugin-chart-pivot-table/package.json b/plugins/legacy-plugin-chart-pivot-table/package.json index dc59bf24fd..974ee5f962 100644 --- a/plugins/legacy-plugin-chart-pivot-table/package.json +++ b/plugins/legacy-plugin-chart-pivot-table/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-pivot-table", - "version": "0.17.54", + "version": "0.17.55", "description": "Superset Legacy Chart - Pivot Table", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.54", - "@superset-ui/core": "0.17.53", + "@superset-ui/chart-controls": "0.17.55", + "@superset-ui/core": "0.17.55", "d3": "^3.5.17", "datatables.net-bs": "^1.10.15", "prop-types": "^15.6.2" diff --git a/plugins/legacy-plugin-chart-rose/package.json b/plugins/legacy-plugin-chart-rose/package.json index a0a9739568..bdc876a8fc 100644 --- a/plugins/legacy-plugin-chart-rose/package.json +++ b/plugins/legacy-plugin-chart-rose/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-rose", - "version": "0.17.54", + "version": "0.17.55", "description": "Superset Legacy Chart - Nightingale Rose Diagram", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.54", - "@superset-ui/core": "0.17.53", + "@superset-ui/chart-controls": "0.17.55", + "@superset-ui/core": "0.17.55", "d3": "^3.5.17", "nvd3": "1.8.6", "prop-types": "^15.6.2" diff --git a/plugins/legacy-plugin-chart-sankey-loop/package.json b/plugins/legacy-plugin-chart-sankey-loop/package.json index 160700edf0..8a17847630 100644 --- a/plugins/legacy-plugin-chart-sankey-loop/package.json +++ b/plugins/legacy-plugin-chart-sankey-loop/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-sankey-loop", - "version": "0.17.54", + "version": "0.17.55", "description": "Superset Legacy Chart - Sankey Diagram with Loops", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.54", - "@superset-ui/core": "0.17.53", + "@superset-ui/chart-controls": "0.17.55", + "@superset-ui/core": "0.17.55", "d3-sankey-diagram": "^0.7.3", "d3-selection": "^1.4.0", "prop-types": "^15.6.2" diff --git a/plugins/legacy-plugin-chart-sankey/package.json b/plugins/legacy-plugin-chart-sankey/package.json index cec97468c9..6774f81cde 100644 --- a/plugins/legacy-plugin-chart-sankey/package.json +++ b/plugins/legacy-plugin-chart-sankey/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-sankey", - "version": "0.17.54", + "version": "0.17.55", "description": "Superset Legacy Chart - Sankey Diagram", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.54", - "@superset-ui/core": "0.17.53", + "@superset-ui/chart-controls": "0.17.55", + "@superset-ui/core": "0.17.55", "d3": "^3.5.17", "d3-sankey": "^0.4.2", "prop-types": "^15.6.2" diff --git a/plugins/legacy-plugin-chart-sunburst/package.json b/plugins/legacy-plugin-chart-sunburst/package.json index 727fbcc90c..74f8fc4dec 100644 --- a/plugins/legacy-plugin-chart-sunburst/package.json +++ b/plugins/legacy-plugin-chart-sunburst/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-sunburst", - "version": "0.17.54", + "version": "0.17.55", "description": "Superset Legacy Chart - Sunburst", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.54", - "@superset-ui/core": "0.17.53", + "@superset-ui/chart-controls": "0.17.55", + "@superset-ui/core": "0.17.55", "d3": "^3.5.17", "prop-types": "^15.6.2" } diff --git a/plugins/legacy-plugin-chart-time-table/package.json b/plugins/legacy-plugin-chart-time-table/package.json index dbdac7a1b9..963c07dbff 100644 --- a/plugins/legacy-plugin-chart-time-table/package.json +++ b/plugins/legacy-plugin-chart-time-table/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-time-table", - "version": "0.17.54", + "version": "0.17.55", "description": "Superset Chart Plugin - Time Table", "sideEffects": [ "*.css" @@ -29,8 +29,8 @@ }, "dependencies": { "@data-ui/sparkline": "^0.0.84", - "@superset-ui/chart-controls": "0.17.54", - "@superset-ui/core": "0.17.53", + "@superset-ui/chart-controls": "0.17.55", + "@superset-ui/core": "0.17.55", "@types/d3-scale": "^2.0.2", "d3-scale": "^3.2.1", "moment": "^2.26.0", diff --git a/plugins/legacy-plugin-chart-treemap/package.json b/plugins/legacy-plugin-chart-treemap/package.json index e0cb3b2741..fc3265d2f6 100644 --- a/plugins/legacy-plugin-chart-treemap/package.json +++ b/plugins/legacy-plugin-chart-treemap/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-treemap", - "version": "0.17.54", + "version": "0.17.55", "description": "Superset Legacy Chart - Treemap", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.54", - "@superset-ui/core": "0.17.53", + "@superset-ui/chart-controls": "0.17.55", + "@superset-ui/core": "0.17.55", "d3-hierarchy": "^1.1.8", "d3-selection": "^1.4.0", "prop-types": "^15.6.2" diff --git a/plugins/legacy-plugin-chart-world-map/package.json b/plugins/legacy-plugin-chart-world-map/package.json index c69c065242..57fd0e0935 100644 --- a/plugins/legacy-plugin-chart-world-map/package.json +++ b/plugins/legacy-plugin-chart-world-map/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-world-map", - "version": "0.17.54", + "version": "0.17.55", "description": "Superset Legacy Chart - World Map", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.54", - "@superset-ui/core": "0.17.53", + "@superset-ui/chart-controls": "0.17.55", + "@superset-ui/core": "0.17.55", "d3": "^3.5.17", "d3-array": "^2.4.0", "d3-color": "^1.4.1", diff --git a/plugins/legacy-preset-chart-big-number/package.json b/plugins/legacy-preset-chart-big-number/package.json index 93eb935502..8164b3bd3f 100644 --- a/plugins/legacy-preset-chart-big-number/package.json +++ b/plugins/legacy-preset-chart-big-number/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-preset-chart-big-number", - "version": "0.17.54", + "version": "0.17.55", "description": "Superset Legacy Chart - Big Number", "sideEffects": [ "*.css" @@ -29,8 +29,8 @@ }, "dependencies": { "@data-ui/xy-chart": "^0.0.84", - "@superset-ui/chart-controls": "0.17.54", - "@superset-ui/core": "0.17.53", + "@superset-ui/chart-controls": "0.17.55", + "@superset-ui/core": "0.17.55", "@types/d3-color": "^1.2.2", "@types/shortid": "^0.0.29", "d3-color": "^1.2.3", diff --git a/plugins/legacy-preset-chart-nvd3/package.json b/plugins/legacy-preset-chart-nvd3/package.json index 9f85426c55..5e13fa981e 100644 --- a/plugins/legacy-preset-chart-nvd3/package.json +++ b/plugins/legacy-preset-chart-nvd3/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-preset-chart-nvd3", - "version": "0.17.54", + "version": "0.17.55", "description": "Superset Legacy Chart - NVD3", "sideEffects": [ "*.css" @@ -29,8 +29,8 @@ }, "dependencies": { "@data-ui/xy-chart": "^0.0.84", - "@superset-ui/chart-controls": "0.17.54", - "@superset-ui/core": "0.17.53", + "@superset-ui/chart-controls": "0.17.55", + "@superset-ui/core": "0.17.55", "d3": "^3.5.17", "d3-tip": "^0.9.1", "dompurify": "^2.0.6", diff --git a/plugins/plugin-chart-echarts/package.json b/plugins/plugin-chart-echarts/package.json index d64a778054..93ef28f4ba 100644 --- a/plugins/plugin-chart-echarts/package.json +++ b/plugins/plugin-chart-echarts/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/plugin-chart-echarts", - "version": "0.17.54", + "version": "0.17.55", "description": "Superset Chart - Echarts", "sideEffects": false, "main": "lib/index.js", @@ -26,8 +26,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.54", - "@superset-ui/core": "0.17.53", + "@superset-ui/chart-controls": "0.17.55", + "@superset-ui/core": "0.17.55", "@types/mathjs": "^6.0.7", "d3-array": "^1.2.0", "echarts": "^5.1.1", diff --git a/plugins/plugin-chart-pivot-table/package.json b/plugins/plugin-chart-pivot-table/package.json index 0dd3205c3b..befb479e4b 100644 --- a/plugins/plugin-chart-pivot-table/package.json +++ b/plugins/plugin-chart-pivot-table/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/plugin-chart-pivot-table", - "version": "0.17.54", + "version": "0.17.55", "description": "Superset Chart - Pivot Table", "sideEffects": false, "main": "lib/index.js", @@ -26,8 +26,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.54", - "@superset-ui/core": "0.17.53", + "@superset-ui/chart-controls": "0.17.55", + "@superset-ui/core": "0.17.55", "@superset-ui/react-pivottable": "^0.12.8" }, "peerDependencies": { diff --git a/plugins/plugin-chart-table/package.json b/plugins/plugin-chart-table/package.json index 960a694ed8..a6703f721b 100644 --- a/plugins/plugin-chart-table/package.json +++ b/plugins/plugin-chart-table/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/plugin-chart-table", - "version": "0.17.54", + "version": "0.17.55", "description": "Superset Chart - Table", "main": "lib/index.js", "module": "esm/index.js", @@ -26,8 +26,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.54", - "@superset-ui/core": "0.17.53", + "@superset-ui/chart-controls": "0.17.55", + "@superset-ui/core": "0.17.55", "@types/d3-array": "^2.9.0", "@types/react-table": "^7.0.29", "d3-array": "^2.4.0", diff --git a/plugins/plugin-chart-word-cloud/package.json b/plugins/plugin-chart-word-cloud/package.json index 69129cac8c..2915418a26 100644 --- a/plugins/plugin-chart-word-cloud/package.json +++ b/plugins/plugin-chart-word-cloud/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/plugin-chart-word-cloud", - "version": "0.17.54", + "version": "0.17.55", "description": "Superset Chart Plugin - Word Cloud", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.54", - "@superset-ui/core": "0.17.53", + "@superset-ui/chart-controls": "0.17.55", + "@superset-ui/core": "0.17.55", "@types/d3-cloud": "^1.2.1", "@types/d3-scale": "^2.0.2", "d3-cloud": "^1.2.5", diff --git a/plugins/preset-chart-xy/package.json b/plugins/preset-chart-xy/package.json index 9cc5e42362..cb9b7a01b4 100644 --- a/plugins/preset-chart-xy/package.json +++ b/plugins/preset-chart-xy/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/preset-chart-xy", - "version": "0.17.54", + "version": "0.17.55", "description": "Superset Chart - XY", "sideEffects": [ "*.css" @@ -31,8 +31,8 @@ "dependencies": { "@data-ui/theme": "^0.0.84", "@data-ui/xy-chart": "^0.0.84", - "@superset-ui/chart-controls": "0.17.54", - "@superset-ui/core": "0.17.53", + "@superset-ui/chart-controls": "0.17.55", + "@superset-ui/core": "0.17.55", "@vx/axis": "^0.0.198", "@vx/legend": "^0.0.198", "@vx/scale": "^0.0.197", From 0e248477622deb6bfbab2baeca6ee0696edf1805 Mon Sep 17 00:00:00 2001 From: Ajay M Date: Thu, 10 Jun 2021 14:27:26 -0400 Subject: [PATCH 10/18] Add ALLOW_FULL_CSV_EXPORT feature flag (#1165) --- packages/superset-ui-core/src/utils/featureFlags.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/superset-ui-core/src/utils/featureFlags.ts b/packages/superset-ui-core/src/utils/featureFlags.ts index f8f0d38a94..55853cf689 100644 --- a/packages/superset-ui-core/src/utils/featureFlags.ts +++ b/packages/superset-ui-core/src/utils/featureFlags.ts @@ -46,6 +46,7 @@ export enum FeatureFlag { ENABLE_TEMPLATE_REMOVE_FILTERS = 'ENABLE_TEMPLATE_REMOVE_FILTERS', DASHBOARD_RBAC = 'DASHBOARD_RBAC', ALERTS_ATTACH_REPORTS = 'ALERTS_ATTACH_REPORTS', + ALLOW_FULL_CSV_EXPORT = 'ALLOW_FULL_CSV_EXPORT', } export type ScheduleQueriesProps = { JSONSCHEMA: { From 9f1daf00ab68e3a35240c572b6548e11e9fd07fc Mon Sep 17 00:00:00 2001 From: erik_ritter Date: Thu, 10 Jun 2021 18:34:48 +0000 Subject: [PATCH 11/18] chore: publish v0.17.56 --- lerna.json | 2 +- .../superset-ui-chart-controls/package.json | 4 +- packages/superset-ui-core/package.json | 2 +- packages/superset-ui-demo/package.json | 50 +++++++++---------- .../legacy-plugin-chart-calendar/package.json | 6 +-- .../legacy-plugin-chart-chord/package.json | 6 +-- .../package.json | 6 +-- .../package.json | 6 +-- .../package.json | 6 +-- .../legacy-plugin-chart-heatmap/package.json | 6 +-- .../package.json | 6 +-- .../legacy-plugin-chart-horizon/package.json | 6 +-- .../legacy-plugin-chart-map-box/package.json | 6 +-- .../package.json | 6 +-- .../package.json | 6 +-- .../package.json | 6 +-- .../package.json | 6 +-- plugins/legacy-plugin-chart-rose/package.json | 6 +-- .../package.json | 6 +-- .../legacy-plugin-chart-sankey/package.json | 6 +-- .../legacy-plugin-chart-sunburst/package.json | 6 +-- .../package.json | 6 +-- .../legacy-plugin-chart-treemap/package.json | 6 +-- .../package.json | 6 +-- .../package.json | 6 +-- plugins/legacy-preset-chart-nvd3/package.json | 6 +-- plugins/plugin-chart-echarts/package.json | 6 +-- plugins/plugin-chart-pivot-table/package.json | 6 +-- plugins/plugin-chart-table/package.json | 6 +-- plugins/plugin-chart-word-cloud/package.json | 6 +-- plugins/preset-chart-xy/package.json | 6 +-- 31 files changed, 110 insertions(+), 110 deletions(-) diff --git a/lerna.json b/lerna.json index 984383b0a8..cd1c44b606 100644 --- a/lerna.json +++ b/lerna.json @@ -6,7 +6,7 @@ "plugins/*" ], "useWorkspaces": true, - "version": "0.17.55", + "version": "0.17.56", "ignoreChanges": [ "**/*.md", "**/*.spec.tsx?", diff --git a/packages/superset-ui-chart-controls/package.json b/packages/superset-ui-chart-controls/package.json index 9308e6c77c..ce1ce92642 100644 --- a/packages/superset-ui-chart-controls/package.json +++ b/packages/superset-ui-chart-controls/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/chart-controls", - "version": "0.17.55", + "version": "0.17.56", "description": "Superset UI control-utils", "sideEffects": false, "main": "lib/index.js", @@ -26,7 +26,7 @@ "access": "public" }, "dependencies": { - "@superset-ui/core": "0.17.55", + "@superset-ui/core": "0.17.56", "lodash": "^4.17.15", "prop-types": "^15.7.2" }, diff --git a/packages/superset-ui-core/package.json b/packages/superset-ui-core/package.json index 08c04be19c..30a78f1efd 100644 --- a/packages/superset-ui-core/package.json +++ b/packages/superset-ui-core/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/core", - "version": "0.17.55", + "version": "0.17.56", "description": "Superset UI core", "sideEffects": false, "main": "lib/index.js", diff --git a/packages/superset-ui-demo/package.json b/packages/superset-ui-demo/package.json index 8b719f9b24..41de716d4a 100644 --- a/packages/superset-ui-demo/package.json +++ b/packages/superset-ui-demo/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/demo", - "version": "0.17.55", + "version": "0.17.56", "description": "Storybook for Superset UI ✨", "private": true, "main": "index.js", @@ -39,31 +39,31 @@ "@storybook/preset-typescript": "^3.0.0", "@storybook/react": "^5.3.18", "@superset-ui/core": "file:../superset-ui-core/src", - "@superset-ui/legacy-plugin-chart-calendar": "0.17.55", - "@superset-ui/legacy-plugin-chart-chord": "0.17.55", - "@superset-ui/legacy-plugin-chart-country-map": "0.17.55", - "@superset-ui/legacy-plugin-chart-event-flow": "0.17.55", - "@superset-ui/legacy-plugin-chart-force-directed": "0.17.55", - "@superset-ui/legacy-plugin-chart-heatmap": "0.17.55", - "@superset-ui/legacy-plugin-chart-histogram": "0.17.55", - "@superset-ui/legacy-plugin-chart-horizon": "0.17.55", - "@superset-ui/legacy-plugin-chart-map-box": "0.17.55", - "@superset-ui/legacy-plugin-chart-paired-t-test": "0.17.55", - "@superset-ui/legacy-plugin-chart-parallel-coordinates": "0.17.55", - "@superset-ui/legacy-plugin-chart-partition": "0.17.55", - "@superset-ui/legacy-plugin-chart-pivot-table": "0.17.55", - "@superset-ui/legacy-plugin-chart-rose": "0.17.55", - "@superset-ui/legacy-plugin-chart-sankey": "0.17.55", - "@superset-ui/legacy-plugin-chart-sankey-loop": "0.17.55", - "@superset-ui/legacy-plugin-chart-sunburst": "0.17.55", - "@superset-ui/legacy-plugin-chart-time-table": "0.17.55", - "@superset-ui/legacy-plugin-chart-treemap": "0.17.55", + "@superset-ui/legacy-plugin-chart-calendar": "0.17.56", + "@superset-ui/legacy-plugin-chart-chord": "0.17.56", + "@superset-ui/legacy-plugin-chart-country-map": "0.17.56", + "@superset-ui/legacy-plugin-chart-event-flow": "0.17.56", + "@superset-ui/legacy-plugin-chart-force-directed": "0.17.56", + "@superset-ui/legacy-plugin-chart-heatmap": "0.17.56", + "@superset-ui/legacy-plugin-chart-histogram": "0.17.56", + "@superset-ui/legacy-plugin-chart-horizon": "0.17.56", + "@superset-ui/legacy-plugin-chart-map-box": "0.17.56", + "@superset-ui/legacy-plugin-chart-paired-t-test": "0.17.56", + "@superset-ui/legacy-plugin-chart-parallel-coordinates": "0.17.56", + "@superset-ui/legacy-plugin-chart-partition": "0.17.56", + "@superset-ui/legacy-plugin-chart-pivot-table": "0.17.56", + "@superset-ui/legacy-plugin-chart-rose": "0.17.56", + "@superset-ui/legacy-plugin-chart-sankey": "0.17.56", + "@superset-ui/legacy-plugin-chart-sankey-loop": "0.17.56", + "@superset-ui/legacy-plugin-chart-sunburst": "0.17.56", + "@superset-ui/legacy-plugin-chart-time-table": "0.17.56", + "@superset-ui/legacy-plugin-chart-treemap": "0.17.56", "@superset-ui/legacy-plugin-chart-word-cloud": "^0.11.15", - "@superset-ui/legacy-plugin-chart-world-map": "0.17.55", - "@superset-ui/legacy-preset-chart-big-number": "0.17.55", - "@superset-ui/plugin-chart-echarts": "0.17.55", - "@superset-ui/plugin-chart-table": "0.17.55", - "@superset-ui/plugin-chart-word-cloud": "0.17.55", + "@superset-ui/legacy-plugin-chart-world-map": "0.17.56", + "@superset-ui/legacy-preset-chart-big-number": "0.17.56", + "@superset-ui/plugin-chart-echarts": "0.17.56", + "@superset-ui/plugin-chart-table": "0.17.56", + "@superset-ui/plugin-chart-word-cloud": "0.17.56", "@types/react-loadable": "^5.5.3", "@types/react-resizable": "^1.7.2", "@types/storybook__react": "5.2.1", diff --git a/plugins/legacy-plugin-chart-calendar/package.json b/plugins/legacy-plugin-chart-calendar/package.json index acbf4bec51..bd8cde5bff 100644 --- a/plugins/legacy-plugin-chart-calendar/package.json +++ b/plugins/legacy-plugin-chart-calendar/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-calendar", - "version": "0.17.55", + "version": "0.17.56", "description": "Superset Legacy Chart - Calendar Heatmap", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.55", - "@superset-ui/core": "0.17.55", + "@superset-ui/chart-controls": "0.17.56", + "@superset-ui/core": "0.17.56", "d3-array": "^2.0.3", "d3-selection": "^1.4.0", "d3-tip": "^0.9.1", diff --git a/plugins/legacy-plugin-chart-chord/package.json b/plugins/legacy-plugin-chart-chord/package.json index 84188c03a6..9d28361135 100644 --- a/plugins/legacy-plugin-chart-chord/package.json +++ b/plugins/legacy-plugin-chart-chord/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-chord", - "version": "0.17.55", + "version": "0.17.56", "description": "Superset Legacy Chart - Chord Diagram", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.55", - "@superset-ui/core": "0.17.55", + "@superset-ui/chart-controls": "0.17.56", + "@superset-ui/core": "0.17.56", "d3": "^3.5.17", "prop-types": "^15.6.2", "react": "^16.13.1" diff --git a/plugins/legacy-plugin-chart-country-map/package.json b/plugins/legacy-plugin-chart-country-map/package.json index f6119f03b9..b6049d10ee 100644 --- a/plugins/legacy-plugin-chart-country-map/package.json +++ b/plugins/legacy-plugin-chart-country-map/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-country-map", - "version": "0.17.55", + "version": "0.17.56", "description": "Superset Legacy Chart - Country Map", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.55", - "@superset-ui/core": "0.17.55", + "@superset-ui/chart-controls": "0.17.56", + "@superset-ui/core": "0.17.56", "d3": "^3.5.17", "d3-array": "^2.0.3", "prop-types": "^15.6.2" diff --git a/plugins/legacy-plugin-chart-event-flow/package.json b/plugins/legacy-plugin-chart-event-flow/package.json index 4ae24ade50..6dd5b6437d 100644 --- a/plugins/legacy-plugin-chart-event-flow/package.json +++ b/plugins/legacy-plugin-chart-event-flow/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-event-flow", - "version": "0.17.55", + "version": "0.17.56", "description": "Superset Legacy Chart - Event Flow", "sideEffects": [ "*.css" @@ -29,8 +29,8 @@ }, "dependencies": { "@data-ui/event-flow": "^0.0.84", - "@superset-ui/chart-controls": "0.17.55", - "@superset-ui/core": "0.17.55", + "@superset-ui/chart-controls": "0.17.56", + "@superset-ui/core": "0.17.56", "prop-types": "^15.6.2" }, "peerDependencies": { diff --git a/plugins/legacy-plugin-chart-force-directed/package.json b/plugins/legacy-plugin-chart-force-directed/package.json index 60fd701dd6..77231b0139 100644 --- a/plugins/legacy-plugin-chart-force-directed/package.json +++ b/plugins/legacy-plugin-chart-force-directed/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-force-directed", - "version": "0.17.55", + "version": "0.17.56", "description": "Superset Legacy Chart - Force-directed Graph", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.55", - "@superset-ui/core": "0.17.55", + "@superset-ui/chart-controls": "0.17.56", + "@superset-ui/core": "0.17.56", "d3": "^3.5.17", "prop-types": "^15.7.2" }, diff --git a/plugins/legacy-plugin-chart-heatmap/package.json b/plugins/legacy-plugin-chart-heatmap/package.json index ac8d991d08..5c263cf50f 100644 --- a/plugins/legacy-plugin-chart-heatmap/package.json +++ b/plugins/legacy-plugin-chart-heatmap/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-heatmap", - "version": "0.17.55", + "version": "0.17.56", "description": "Superset Legacy Chart - Heatmap", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.55", - "@superset-ui/core": "0.17.55", + "@superset-ui/chart-controls": "0.17.56", + "@superset-ui/core": "0.17.56", "d3": "^3.5.17", "d3-svg-legend": "^1.x", "d3-tip": "^0.9.1", diff --git a/plugins/legacy-plugin-chart-histogram/package.json b/plugins/legacy-plugin-chart-histogram/package.json index 886ba0d1dc..bf9b436d8b 100644 --- a/plugins/legacy-plugin-chart-histogram/package.json +++ b/plugins/legacy-plugin-chart-histogram/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-histogram", - "version": "0.17.55", + "version": "0.17.56", "description": "Superset Legacy Chart - Histogram", "sideEffects": [ "*.css" @@ -30,8 +30,8 @@ "dependencies": { "@data-ui/histogram": "^0.0.84", "@data-ui/theme": "^0.0.84", - "@superset-ui/chart-controls": "0.17.55", - "@superset-ui/core": "0.17.55", + "@superset-ui/chart-controls": "0.17.56", + "@superset-ui/core": "0.17.56", "@vx/legend": "^0.0.198", "@vx/responsive": "^0.0.199", "@vx/scale": "^0.0.197", diff --git a/plugins/legacy-plugin-chart-horizon/package.json b/plugins/legacy-plugin-chart-horizon/package.json index 21ac57d333..b4a865e15c 100644 --- a/plugins/legacy-plugin-chart-horizon/package.json +++ b/plugins/legacy-plugin-chart-horizon/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-horizon", - "version": "0.17.55", + "version": "0.17.56", "description": "Superset Legacy Chart - Horizon", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.55", - "@superset-ui/core": "0.17.55", + "@superset-ui/chart-controls": "0.17.56", + "@superset-ui/core": "0.17.56", "d3-array": "^2.0.3", "d3-scale": "^3.0.1", "prop-types": "^15.6.2" diff --git a/plugins/legacy-plugin-chart-map-box/package.json b/plugins/legacy-plugin-chart-map-box/package.json index 490af0fafc..837efc6aee 100644 --- a/plugins/legacy-plugin-chart-map-box/package.json +++ b/plugins/legacy-plugin-chart-map-box/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-map-box", - "version": "0.17.55", + "version": "0.17.56", "description": "Superset Legacy Chart - MapBox", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.55", - "@superset-ui/core": "0.17.55", + "@superset-ui/chart-controls": "0.17.56", + "@superset-ui/core": "0.17.56", "immutable": "^3.8.2", "mapbox-gl": "^0.53.0", "prop-types": "^15.6.2", diff --git a/plugins/legacy-plugin-chart-paired-t-test/package.json b/plugins/legacy-plugin-chart-paired-t-test/package.json index c7897080dc..20889b5edf 100644 --- a/plugins/legacy-plugin-chart-paired-t-test/package.json +++ b/plugins/legacy-plugin-chart-paired-t-test/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-paired-t-test", - "version": "0.17.55", + "version": "0.17.56", "description": "Superset Legacy Chart - Paired T Test", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.55", - "@superset-ui/core": "0.17.55", + "@superset-ui/chart-controls": "0.17.56", + "@superset-ui/core": "0.17.56", "distributions": "^1.0.0", "prop-types": "^15.6.2", "reactable": "^1.1.0" diff --git a/plugins/legacy-plugin-chart-parallel-coordinates/package.json b/plugins/legacy-plugin-chart-parallel-coordinates/package.json index db7ba62259..a3e7510ad1 100644 --- a/plugins/legacy-plugin-chart-parallel-coordinates/package.json +++ b/plugins/legacy-plugin-chart-parallel-coordinates/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-parallel-coordinates", - "version": "0.17.55", + "version": "0.17.56", "description": "Superset Legacy Chart - Parallel Coordinates", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.55", - "@superset-ui/core": "0.17.55", + "@superset-ui/chart-controls": "0.17.56", + "@superset-ui/core": "0.17.56", "d3": "^3.5.17", "prop-types": "^15.7.2" }, diff --git a/plugins/legacy-plugin-chart-partition/package.json b/plugins/legacy-plugin-chart-partition/package.json index d5cfd8a88f..2c79794279 100644 --- a/plugins/legacy-plugin-chart-partition/package.json +++ b/plugins/legacy-plugin-chart-partition/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-partition", - "version": "0.17.55", + "version": "0.17.56", "description": "Superset Legacy Chart - Partition", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.55", - "@superset-ui/core": "0.17.55", + "@superset-ui/chart-controls": "0.17.56", + "@superset-ui/core": "0.17.56", "d3": "^3.5.17", "d3-hierarchy": "^1.1.8", "prop-types": "^15.6.2" diff --git a/plugins/legacy-plugin-chart-pivot-table/package.json b/plugins/legacy-plugin-chart-pivot-table/package.json index 974ee5f962..dde187ef74 100644 --- a/plugins/legacy-plugin-chart-pivot-table/package.json +++ b/plugins/legacy-plugin-chart-pivot-table/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-pivot-table", - "version": "0.17.55", + "version": "0.17.56", "description": "Superset Legacy Chart - Pivot Table", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.55", - "@superset-ui/core": "0.17.55", + "@superset-ui/chart-controls": "0.17.56", + "@superset-ui/core": "0.17.56", "d3": "^3.5.17", "datatables.net-bs": "^1.10.15", "prop-types": "^15.6.2" diff --git a/plugins/legacy-plugin-chart-rose/package.json b/plugins/legacy-plugin-chart-rose/package.json index bdc876a8fc..0cfbccad60 100644 --- a/plugins/legacy-plugin-chart-rose/package.json +++ b/plugins/legacy-plugin-chart-rose/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-rose", - "version": "0.17.55", + "version": "0.17.56", "description": "Superset Legacy Chart - Nightingale Rose Diagram", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.55", - "@superset-ui/core": "0.17.55", + "@superset-ui/chart-controls": "0.17.56", + "@superset-ui/core": "0.17.56", "d3": "^3.5.17", "nvd3": "1.8.6", "prop-types": "^15.6.2" diff --git a/plugins/legacy-plugin-chart-sankey-loop/package.json b/plugins/legacy-plugin-chart-sankey-loop/package.json index 8a17847630..6df8a1f38f 100644 --- a/plugins/legacy-plugin-chart-sankey-loop/package.json +++ b/plugins/legacy-plugin-chart-sankey-loop/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-sankey-loop", - "version": "0.17.55", + "version": "0.17.56", "description": "Superset Legacy Chart - Sankey Diagram with Loops", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.55", - "@superset-ui/core": "0.17.55", + "@superset-ui/chart-controls": "0.17.56", + "@superset-ui/core": "0.17.56", "d3-sankey-diagram": "^0.7.3", "d3-selection": "^1.4.0", "prop-types": "^15.6.2" diff --git a/plugins/legacy-plugin-chart-sankey/package.json b/plugins/legacy-plugin-chart-sankey/package.json index 6774f81cde..66d864bfe9 100644 --- a/plugins/legacy-plugin-chart-sankey/package.json +++ b/plugins/legacy-plugin-chart-sankey/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-sankey", - "version": "0.17.55", + "version": "0.17.56", "description": "Superset Legacy Chart - Sankey Diagram", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.55", - "@superset-ui/core": "0.17.55", + "@superset-ui/chart-controls": "0.17.56", + "@superset-ui/core": "0.17.56", "d3": "^3.5.17", "d3-sankey": "^0.4.2", "prop-types": "^15.6.2" diff --git a/plugins/legacy-plugin-chart-sunburst/package.json b/plugins/legacy-plugin-chart-sunburst/package.json index 74f8fc4dec..39d56d867e 100644 --- a/plugins/legacy-plugin-chart-sunburst/package.json +++ b/plugins/legacy-plugin-chart-sunburst/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-sunburst", - "version": "0.17.55", + "version": "0.17.56", "description": "Superset Legacy Chart - Sunburst", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.55", - "@superset-ui/core": "0.17.55", + "@superset-ui/chart-controls": "0.17.56", + "@superset-ui/core": "0.17.56", "d3": "^3.5.17", "prop-types": "^15.6.2" } diff --git a/plugins/legacy-plugin-chart-time-table/package.json b/plugins/legacy-plugin-chart-time-table/package.json index 963c07dbff..d9bef7665d 100644 --- a/plugins/legacy-plugin-chart-time-table/package.json +++ b/plugins/legacy-plugin-chart-time-table/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-time-table", - "version": "0.17.55", + "version": "0.17.56", "description": "Superset Chart Plugin - Time Table", "sideEffects": [ "*.css" @@ -29,8 +29,8 @@ }, "dependencies": { "@data-ui/sparkline": "^0.0.84", - "@superset-ui/chart-controls": "0.17.55", - "@superset-ui/core": "0.17.55", + "@superset-ui/chart-controls": "0.17.56", + "@superset-ui/core": "0.17.56", "@types/d3-scale": "^2.0.2", "d3-scale": "^3.2.1", "moment": "^2.26.0", diff --git a/plugins/legacy-plugin-chart-treemap/package.json b/plugins/legacy-plugin-chart-treemap/package.json index fc3265d2f6..4b63ee74af 100644 --- a/plugins/legacy-plugin-chart-treemap/package.json +++ b/plugins/legacy-plugin-chart-treemap/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-treemap", - "version": "0.17.55", + "version": "0.17.56", "description": "Superset Legacy Chart - Treemap", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.55", - "@superset-ui/core": "0.17.55", + "@superset-ui/chart-controls": "0.17.56", + "@superset-ui/core": "0.17.56", "d3-hierarchy": "^1.1.8", "d3-selection": "^1.4.0", "prop-types": "^15.6.2" diff --git a/plugins/legacy-plugin-chart-world-map/package.json b/plugins/legacy-plugin-chart-world-map/package.json index 57fd0e0935..1a7e2d8efa 100644 --- a/plugins/legacy-plugin-chart-world-map/package.json +++ b/plugins/legacy-plugin-chart-world-map/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-world-map", - "version": "0.17.55", + "version": "0.17.56", "description": "Superset Legacy Chart - World Map", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.55", - "@superset-ui/core": "0.17.55", + "@superset-ui/chart-controls": "0.17.56", + "@superset-ui/core": "0.17.56", "d3": "^3.5.17", "d3-array": "^2.4.0", "d3-color": "^1.4.1", diff --git a/plugins/legacy-preset-chart-big-number/package.json b/plugins/legacy-preset-chart-big-number/package.json index 8164b3bd3f..58fbe151e0 100644 --- a/plugins/legacy-preset-chart-big-number/package.json +++ b/plugins/legacy-preset-chart-big-number/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-preset-chart-big-number", - "version": "0.17.55", + "version": "0.17.56", "description": "Superset Legacy Chart - Big Number", "sideEffects": [ "*.css" @@ -29,8 +29,8 @@ }, "dependencies": { "@data-ui/xy-chart": "^0.0.84", - "@superset-ui/chart-controls": "0.17.55", - "@superset-ui/core": "0.17.55", + "@superset-ui/chart-controls": "0.17.56", + "@superset-ui/core": "0.17.56", "@types/d3-color": "^1.2.2", "@types/shortid": "^0.0.29", "d3-color": "^1.2.3", diff --git a/plugins/legacy-preset-chart-nvd3/package.json b/plugins/legacy-preset-chart-nvd3/package.json index 5e13fa981e..c1e64c3981 100644 --- a/plugins/legacy-preset-chart-nvd3/package.json +++ b/plugins/legacy-preset-chart-nvd3/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-preset-chart-nvd3", - "version": "0.17.55", + "version": "0.17.56", "description": "Superset Legacy Chart - NVD3", "sideEffects": [ "*.css" @@ -29,8 +29,8 @@ }, "dependencies": { "@data-ui/xy-chart": "^0.0.84", - "@superset-ui/chart-controls": "0.17.55", - "@superset-ui/core": "0.17.55", + "@superset-ui/chart-controls": "0.17.56", + "@superset-ui/core": "0.17.56", "d3": "^3.5.17", "d3-tip": "^0.9.1", "dompurify": "^2.0.6", diff --git a/plugins/plugin-chart-echarts/package.json b/plugins/plugin-chart-echarts/package.json index 93ef28f4ba..8ef75c05eb 100644 --- a/plugins/plugin-chart-echarts/package.json +++ b/plugins/plugin-chart-echarts/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/plugin-chart-echarts", - "version": "0.17.55", + "version": "0.17.56", "description": "Superset Chart - Echarts", "sideEffects": false, "main": "lib/index.js", @@ -26,8 +26,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.55", - "@superset-ui/core": "0.17.55", + "@superset-ui/chart-controls": "0.17.56", + "@superset-ui/core": "0.17.56", "@types/mathjs": "^6.0.7", "d3-array": "^1.2.0", "echarts": "^5.1.1", diff --git a/plugins/plugin-chart-pivot-table/package.json b/plugins/plugin-chart-pivot-table/package.json index befb479e4b..76058d103f 100644 --- a/plugins/plugin-chart-pivot-table/package.json +++ b/plugins/plugin-chart-pivot-table/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/plugin-chart-pivot-table", - "version": "0.17.55", + "version": "0.17.56", "description": "Superset Chart - Pivot Table", "sideEffects": false, "main": "lib/index.js", @@ -26,8 +26,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.55", - "@superset-ui/core": "0.17.55", + "@superset-ui/chart-controls": "0.17.56", + "@superset-ui/core": "0.17.56", "@superset-ui/react-pivottable": "^0.12.8" }, "peerDependencies": { diff --git a/plugins/plugin-chart-table/package.json b/plugins/plugin-chart-table/package.json index a6703f721b..82bddd30a1 100644 --- a/plugins/plugin-chart-table/package.json +++ b/plugins/plugin-chart-table/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/plugin-chart-table", - "version": "0.17.55", + "version": "0.17.56", "description": "Superset Chart - Table", "main": "lib/index.js", "module": "esm/index.js", @@ -26,8 +26,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.55", - "@superset-ui/core": "0.17.55", + "@superset-ui/chart-controls": "0.17.56", + "@superset-ui/core": "0.17.56", "@types/d3-array": "^2.9.0", "@types/react-table": "^7.0.29", "d3-array": "^2.4.0", diff --git a/plugins/plugin-chart-word-cloud/package.json b/plugins/plugin-chart-word-cloud/package.json index 2915418a26..e4b50c4d75 100644 --- a/plugins/plugin-chart-word-cloud/package.json +++ b/plugins/plugin-chart-word-cloud/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/plugin-chart-word-cloud", - "version": "0.17.55", + "version": "0.17.56", "description": "Superset Chart Plugin - Word Cloud", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.55", - "@superset-ui/core": "0.17.55", + "@superset-ui/chart-controls": "0.17.56", + "@superset-ui/core": "0.17.56", "@types/d3-cloud": "^1.2.1", "@types/d3-scale": "^2.0.2", "d3-cloud": "^1.2.5", diff --git a/plugins/preset-chart-xy/package.json b/plugins/preset-chart-xy/package.json index cb9b7a01b4..69aaff5764 100644 --- a/plugins/preset-chart-xy/package.json +++ b/plugins/preset-chart-xy/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/preset-chart-xy", - "version": "0.17.55", + "version": "0.17.56", "description": "Superset Chart - XY", "sideEffects": [ "*.css" @@ -31,8 +31,8 @@ "dependencies": { "@data-ui/theme": "^0.0.84", "@data-ui/xy-chart": "^0.0.84", - "@superset-ui/chart-controls": "0.17.55", - "@superset-ui/core": "0.17.55", + "@superset-ui/chart-controls": "0.17.56", + "@superset-ui/core": "0.17.56", "@vx/axis": "^0.0.198", "@vx/legend": "^0.0.198", "@vx/scale": "^0.0.197", From d31b3c77b4ee10bcbafddf267d06aa25074e55cb Mon Sep 17 00:00:00 2001 From: Ville Brofeldt <33317356+villebro@users.noreply.github.com> Date: Fri, 11 Jun 2021 10:26:17 +0300 Subject: [PATCH 12/18] chore(plugin-chart-echarts): bump echarts to 5.1.2 (#1159) --- plugins/plugin-chart-echarts/package.json | 2 +- plugins/plugin-chart-echarts/src/Tree/controlPanel.tsx | 2 +- plugins/plugin-chart-echarts/src/Treemap/EchartsTreemap.tsx | 1 - plugins/plugin-chart-echarts/src/components/Echart.tsx | 5 ----- 4 files changed, 2 insertions(+), 8 deletions(-) diff --git a/plugins/plugin-chart-echarts/package.json b/plugins/plugin-chart-echarts/package.json index 8ef75c05eb..6e9695560e 100644 --- a/plugins/plugin-chart-echarts/package.json +++ b/plugins/plugin-chart-echarts/package.json @@ -30,7 +30,7 @@ "@superset-ui/core": "0.17.56", "@types/mathjs": "^6.0.7", "d3-array": "^1.2.0", - "echarts": "^5.1.1", + "echarts": "^5.1.2", "lodash": "^4.17.15", "mathjs": "^8.0.1" }, diff --git a/plugins/plugin-chart-echarts/src/Tree/controlPanel.tsx b/plugins/plugin-chart-echarts/src/Tree/controlPanel.tsx index b85d1a32e1..e6b65107cd 100644 --- a/plugins/plugin-chart-echarts/src/Tree/controlPanel.tsx +++ b/plugins/plugin-chart-echarts/src/Tree/controlPanel.tsx @@ -70,10 +70,10 @@ const controlPanel: ControlPanelConfig = { ], [ { - // TODO: Set renderTrigger to true without getting intermittent errors in echart name: 'root_node_id', config: { ...optionalEntity, + renderTrigger: true, type: 'TextControl', label: t('Root node id'), description: t('Id of root node of the tree.'), diff --git a/plugins/plugin-chart-echarts/src/Treemap/EchartsTreemap.tsx b/plugins/plugin-chart-echarts/src/Treemap/EchartsTreemap.tsx index 9c8d466ef9..2932dc327d 100644 --- a/plugins/plugin-chart-echarts/src/Treemap/EchartsTreemap.tsx +++ b/plugins/plugin-chart-echarts/src/Treemap/EchartsTreemap.tsx @@ -93,7 +93,6 @@ export default function EchartsTreemap({ echartOptions={echartOptions} eventHandlers={eventHandlers} selectedValues={selectedValues} - forceClear /> ); } diff --git a/plugins/plugin-chart-echarts/src/components/Echart.tsx b/plugins/plugin-chart-echarts/src/components/Echart.tsx index 5502af3f3f..5ab0011120 100644 --- a/plugins/plugin-chart-echarts/src/components/Echart.tsx +++ b/plugins/plugin-chart-echarts/src/components/Echart.tsx @@ -32,7 +32,6 @@ export default function Echart({ echartOptions, eventHandlers, selectedValues = {}, - forceClear = false, }: EchartsProps) { const divRef = useRef(null); const chartRef = useRef(); @@ -50,10 +49,6 @@ export default function Echart({ chartRef.current?.on(name, handler); }); - if (forceClear) { - chartRef.current.clear(); - } - chartRef.current.setOption(echartOptions, true); chartRef.current.dispatchAction({ From 21a5eef16d68c0d254b6c0c01add762359b60fad Mon Sep 17 00:00:00 2001 From: Kamil Gabryjelski Date: Tue, 15 Jun 2021 07:07:10 +0200 Subject: [PATCH 13/18] feat(plugin-chart-pivot-table): enable metrics to be used as row groups (#1172) --- .../src/PivotTableChart.tsx | 19 +++++++++++++++---- .../src/plugin/controlPanel.ts | 17 +++++++++++++++++ .../src/plugin/transformProps.ts | 2 ++ plugins/plugin-chart-pivot-table/src/types.ts | 6 ++++++ .../test/plugin/transformProps.test.ts | 3 +++ 5 files changed, 43 insertions(+), 4 deletions(-) diff --git a/plugins/plugin-chart-pivot-table/src/PivotTableChart.tsx b/plugins/plugin-chart-pivot-table/src/PivotTableChart.tsx index f81ad2e09b..f63cc8d8a3 100644 --- a/plugins/plugin-chart-pivot-table/src/PivotTableChart.tsx +++ b/plugins/plugin-chart-pivot-table/src/PivotTableChart.tsx @@ -23,7 +23,13 @@ import PivotTable from '@superset-ui/react-pivottable/PivotTable'; // @ts-ignore import { sortAs, aggregatorTemplates } from '@superset-ui/react-pivottable/Utilities'; import '@superset-ui/react-pivottable/pivottable.css'; -import { FilterType, PivotTableProps, PivotTableStylesProps, SelectedFiltersType } from './types'; +import { + FilterType, + MetricsLayoutEnum, + PivotTableProps, + PivotTableStylesProps, + SelectedFiltersType, +} from './types'; const Styles = styled.div` padding: ${({ theme }) => theme.gridUnit * 4}px; @@ -57,6 +63,7 @@ export default function PivotTableChart(props: PivotTableProps) { setDataMask, selectedFilters, verboseMap, + metricsLayout, } = props; const adaptiveFormatter = getNumberFormatter(valueFormat); @@ -98,9 +105,13 @@ export default function PivotTableChart(props: PivotTableProps) { [], ); - const [rows, cols] = transposePivot - ? [groupbyColumns, [METRIC_KEY, ...groupbyRows]] - : [groupbyRows, [METRIC_KEY, ...groupbyColumns]]; + let [rows, cols] = transposePivot ? [groupbyColumns, groupbyRows] : [groupbyRows, groupbyColumns]; + + if (metricsLayout === MetricsLayoutEnum.ROWS) { + rows = [METRIC_KEY, ...rows]; + } else { + cols = [METRIC_KEY, ...cols]; + } const handleChange = useCallback( (filters: SelectedFiltersType) => { diff --git a/plugins/plugin-chart-pivot-table/src/plugin/controlPanel.ts b/plugins/plugin-chart-pivot-table/src/plugin/controlPanel.ts index 70566a6744..54d3f52cc0 100644 --- a/plugins/plugin-chart-pivot-table/src/plugin/controlPanel.ts +++ b/plugins/plugin-chart-pivot-table/src/plugin/controlPanel.ts @@ -23,6 +23,7 @@ import { sections, sharedControls, } from '@superset-ui/chart-controls'; +import { MetricsLayoutEnum } from '../types'; const config: ControlPanelConfig = { controlPanelSections: [ @@ -60,6 +61,22 @@ const config: ControlPanelConfig = { }, }, ], + [ + { + name: 'metricsLayout', + config: { + type: 'RadioButtonControl', + renderTrigger: true, + label: t('Apply metrics on'), + default: MetricsLayoutEnum.COLUMNS, + options: [ + [MetricsLayoutEnum.COLUMNS, t('Columns')], + [MetricsLayoutEnum.ROWS, t('Rows')], + ], + description: t('Use metrics as a top level group for columns or for rows'), + }, + }, + ], ['adhoc_filters'], [ { diff --git a/plugins/plugin-chart-pivot-table/src/plugin/transformProps.ts b/plugins/plugin-chart-pivot-table/src/plugin/transformProps.ts index 85fd3e9016..84be1b5897 100644 --- a/plugins/plugin-chart-pivot-table/src/plugin/transformProps.ts +++ b/plugins/plugin-chart-pivot-table/src/plugin/transformProps.ts @@ -73,6 +73,7 @@ export default function transformProps(chartProps: ChartProps) { rowTotals, valueFormat, emitFilter, + metricsLayout, } = formData; const { selectedFilters } = filterState; @@ -97,5 +98,6 @@ export default function transformProps(chartProps: ChartProps) { setDataMask, selectedFilters, verboseMap, + metricsLayout, }; } diff --git a/plugins/plugin-chart-pivot-table/src/types.ts b/plugins/plugin-chart-pivot-table/src/types.ts index 2a136e57e1..66e9d966fd 100644 --- a/plugins/plugin-chart-pivot-table/src/types.ts +++ b/plugins/plugin-chart-pivot-table/src/types.ts @@ -33,6 +33,11 @@ export interface PivotTableStylesProps { export type FilterType = Record; export type SelectedFiltersType = Record; +export enum MetricsLayoutEnum { + ROWS = 'ROWS', + COLUMNS = 'COLUMNS', +} + interface PivotTableCustomizeProps { groupbyRows: string[]; groupbyColumns: string[]; @@ -51,6 +56,7 @@ interface PivotTableCustomizeProps { emitFilter?: boolean; selectedFilters?: SelectedFiltersType; verboseMap?: JsonObject; + metricsLayout?: MetricsLayoutEnum; } export type PivotTableQueryFormData = QueryFormData & diff --git a/plugins/plugin-chart-pivot-table/test/plugin/transformProps.test.ts b/plugins/plugin-chart-pivot-table/test/plugin/transformProps.test.ts index d17bfd0b93..969136e19a 100644 --- a/plugins/plugin-chart-pivot-table/test/plugin/transformProps.test.ts +++ b/plugins/plugin-chart-pivot-table/test/plugin/transformProps.test.ts @@ -1,5 +1,6 @@ import { ChartProps } from '@superset-ui/core'; import transformProps from '../../src/plugin/transformProps'; +import { MetricsLayoutEnum } from '../../src/types'; describe('PivotTableChart transformProps', () => { const setDataMask = jest.fn(); @@ -18,6 +19,7 @@ describe('PivotTableChart transformProps', () => { rowTotals: true, valueFormat: 'SMART_NUMBER', emitFilter: false, + metricsLayout: MetricsLayoutEnum.COLUMNS, }; const chartProps = new ChartProps({ formData, @@ -55,6 +57,7 @@ describe('PivotTableChart transformProps', () => { setDataMask, selectedFilters: {}, verboseMap: {}, + metricsLayout: MetricsLayoutEnum.COLUMNS, }); }); }); From 07028a994a0101a0e30ceefdfa44092e6cd47238 Mon Sep 17 00:00:00 2001 From: Kamil Gabryjelski Date: Tue, 15 Jun 2021 09:05:49 +0200 Subject: [PATCH 14/18] chore: publish v0.17.57 --- lerna.json | 2 +- packages/superset-ui-demo/package.json | 4 ++-- plugins/plugin-chart-echarts/package.json | 2 +- plugins/plugin-chart-pivot-table/package.json | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lerna.json b/lerna.json index cd1c44b606..b413781076 100644 --- a/lerna.json +++ b/lerna.json @@ -6,7 +6,7 @@ "plugins/*" ], "useWorkspaces": true, - "version": "0.17.56", + "version": "0.17.57", "ignoreChanges": [ "**/*.md", "**/*.spec.tsx?", diff --git a/packages/superset-ui-demo/package.json b/packages/superset-ui-demo/package.json index 41de716d4a..51f365d972 100644 --- a/packages/superset-ui-demo/package.json +++ b/packages/superset-ui-demo/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/demo", - "version": "0.17.56", + "version": "0.17.57", "description": "Storybook for Superset UI ✨", "private": true, "main": "index.js", @@ -61,7 +61,7 @@ "@superset-ui/legacy-plugin-chart-word-cloud": "^0.11.15", "@superset-ui/legacy-plugin-chart-world-map": "0.17.56", "@superset-ui/legacy-preset-chart-big-number": "0.17.56", - "@superset-ui/plugin-chart-echarts": "0.17.56", + "@superset-ui/plugin-chart-echarts": "0.17.57", "@superset-ui/plugin-chart-table": "0.17.56", "@superset-ui/plugin-chart-word-cloud": "0.17.56", "@types/react-loadable": "^5.5.3", diff --git a/plugins/plugin-chart-echarts/package.json b/plugins/plugin-chart-echarts/package.json index 6e9695560e..daf0e0eb66 100644 --- a/plugins/plugin-chart-echarts/package.json +++ b/plugins/plugin-chart-echarts/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/plugin-chart-echarts", - "version": "0.17.56", + "version": "0.17.57", "description": "Superset Chart - Echarts", "sideEffects": false, "main": "lib/index.js", diff --git a/plugins/plugin-chart-pivot-table/package.json b/plugins/plugin-chart-pivot-table/package.json index 76058d103f..e5ebc59d61 100644 --- a/plugins/plugin-chart-pivot-table/package.json +++ b/plugins/plugin-chart-pivot-table/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/plugin-chart-pivot-table", - "version": "0.17.56", + "version": "0.17.57", "description": "Superset Chart - Pivot Table", "sideEffects": false, "main": "lib/index.js", From 80027a214bcacf937c503d62ba99db6970821d30 Mon Sep 17 00:00:00 2001 From: Ville Brofeldt <33317356+villebro@users.noreply.github.com> Date: Thu, 17 Jun 2021 09:31:07 +0300 Subject: [PATCH 15/18] fix(core): remove height and width requirement on SuperChart (#1176) * fix(core): remove height and width requirement on SuperChart * simply by removing state --- packages/superset-ui-core/src/chart/components/SuperChart.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/superset-ui-core/src/chart/components/SuperChart.tsx b/packages/superset-ui-core/src/chart/components/SuperChart.tsx index 4cccc5ec58..acad386202 100644 --- a/packages/superset-ui-core/src/chart/components/SuperChart.tsx +++ b/packages/superset-ui-core/src/chart/components/SuperChart.tsx @@ -185,8 +185,6 @@ export default class SuperChart extends React.PureComponent { {({ width, height }) => - width > 0 && - height > 0 && this.renderChart( widthInfo.isDynamic ? Math.floor(width) : widthInfo.value, heightInfo.isDynamic ? Math.floor(height) : heightInfo.value, From f059a8119afbeb99c7d63074eb8f5fb5e99119ae Mon Sep 17 00:00:00 2001 From: Ville Brofeldt Date: Thu, 17 Jun 2021 10:11:57 +0300 Subject: [PATCH 16/18] chore: publish v0.17.58 --- lerna.json | 2 +- .../superset-ui-chart-controls/package.json | 4 +- packages/superset-ui-core/package.json | 2 +- packages/superset-ui-demo/package.json | 50 +++++++++---------- .../legacy-plugin-chart-calendar/package.json | 6 +-- .../legacy-plugin-chart-chord/package.json | 6 +-- .../package.json | 6 +-- .../package.json | 6 +-- .../package.json | 6 +-- .../legacy-plugin-chart-heatmap/package.json | 6 +-- .../package.json | 6 +-- .../legacy-plugin-chart-horizon/package.json | 6 +-- .../legacy-plugin-chart-map-box/package.json | 6 +-- .../package.json | 6 +-- .../package.json | 6 +-- .../package.json | 6 +-- .../package.json | 6 +-- plugins/legacy-plugin-chart-rose/package.json | 6 +-- .../package.json | 6 +-- .../legacy-plugin-chart-sankey/package.json | 6 +-- .../legacy-plugin-chart-sunburst/package.json | 6 +-- .../package.json | 6 +-- .../legacy-plugin-chart-treemap/package.json | 6 +-- .../package.json | 6 +-- .../package.json | 6 +-- plugins/legacy-preset-chart-nvd3/package.json | 6 +-- plugins/plugin-chart-echarts/package.json | 6 +-- plugins/plugin-chart-pivot-table/package.json | 6 +-- plugins/plugin-chart-table/package.json | 6 +-- plugins/plugin-chart-word-cloud/package.json | 6 +-- plugins/preset-chart-xy/package.json | 6 +-- 31 files changed, 110 insertions(+), 110 deletions(-) diff --git a/lerna.json b/lerna.json index b413781076..dafd4e43cf 100644 --- a/lerna.json +++ b/lerna.json @@ -6,7 +6,7 @@ "plugins/*" ], "useWorkspaces": true, - "version": "0.17.57", + "version": "0.17.58", "ignoreChanges": [ "**/*.md", "**/*.spec.tsx?", diff --git a/packages/superset-ui-chart-controls/package.json b/packages/superset-ui-chart-controls/package.json index ce1ce92642..e67b693b1f 100644 --- a/packages/superset-ui-chart-controls/package.json +++ b/packages/superset-ui-chart-controls/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/chart-controls", - "version": "0.17.56", + "version": "0.17.58", "description": "Superset UI control-utils", "sideEffects": false, "main": "lib/index.js", @@ -26,7 +26,7 @@ "access": "public" }, "dependencies": { - "@superset-ui/core": "0.17.56", + "@superset-ui/core": "0.17.58", "lodash": "^4.17.15", "prop-types": "^15.7.2" }, diff --git a/packages/superset-ui-core/package.json b/packages/superset-ui-core/package.json index 30a78f1efd..10ee52c6d8 100644 --- a/packages/superset-ui-core/package.json +++ b/packages/superset-ui-core/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/core", - "version": "0.17.56", + "version": "0.17.58", "description": "Superset UI core", "sideEffects": false, "main": "lib/index.js", diff --git a/packages/superset-ui-demo/package.json b/packages/superset-ui-demo/package.json index 51f365d972..8cab959ddb 100644 --- a/packages/superset-ui-demo/package.json +++ b/packages/superset-ui-demo/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/demo", - "version": "0.17.57", + "version": "0.17.58", "description": "Storybook for Superset UI ✨", "private": true, "main": "index.js", @@ -39,31 +39,31 @@ "@storybook/preset-typescript": "^3.0.0", "@storybook/react": "^5.3.18", "@superset-ui/core": "file:../superset-ui-core/src", - "@superset-ui/legacy-plugin-chart-calendar": "0.17.56", - "@superset-ui/legacy-plugin-chart-chord": "0.17.56", - "@superset-ui/legacy-plugin-chart-country-map": "0.17.56", - "@superset-ui/legacy-plugin-chart-event-flow": "0.17.56", - "@superset-ui/legacy-plugin-chart-force-directed": "0.17.56", - "@superset-ui/legacy-plugin-chart-heatmap": "0.17.56", - "@superset-ui/legacy-plugin-chart-histogram": "0.17.56", - "@superset-ui/legacy-plugin-chart-horizon": "0.17.56", - "@superset-ui/legacy-plugin-chart-map-box": "0.17.56", - "@superset-ui/legacy-plugin-chart-paired-t-test": "0.17.56", - "@superset-ui/legacy-plugin-chart-parallel-coordinates": "0.17.56", - "@superset-ui/legacy-plugin-chart-partition": "0.17.56", - "@superset-ui/legacy-plugin-chart-pivot-table": "0.17.56", - "@superset-ui/legacy-plugin-chart-rose": "0.17.56", - "@superset-ui/legacy-plugin-chart-sankey": "0.17.56", - "@superset-ui/legacy-plugin-chart-sankey-loop": "0.17.56", - "@superset-ui/legacy-plugin-chart-sunburst": "0.17.56", - "@superset-ui/legacy-plugin-chart-time-table": "0.17.56", - "@superset-ui/legacy-plugin-chart-treemap": "0.17.56", + "@superset-ui/legacy-plugin-chart-calendar": "0.17.58", + "@superset-ui/legacy-plugin-chart-chord": "0.17.58", + "@superset-ui/legacy-plugin-chart-country-map": "0.17.58", + "@superset-ui/legacy-plugin-chart-event-flow": "0.17.58", + "@superset-ui/legacy-plugin-chart-force-directed": "0.17.58", + "@superset-ui/legacy-plugin-chart-heatmap": "0.17.58", + "@superset-ui/legacy-plugin-chart-histogram": "0.17.58", + "@superset-ui/legacy-plugin-chart-horizon": "0.17.58", + "@superset-ui/legacy-plugin-chart-map-box": "0.17.58", + "@superset-ui/legacy-plugin-chart-paired-t-test": "0.17.58", + "@superset-ui/legacy-plugin-chart-parallel-coordinates": "0.17.58", + "@superset-ui/legacy-plugin-chart-partition": "0.17.58", + "@superset-ui/legacy-plugin-chart-pivot-table": "0.17.58", + "@superset-ui/legacy-plugin-chart-rose": "0.17.58", + "@superset-ui/legacy-plugin-chart-sankey": "0.17.58", + "@superset-ui/legacy-plugin-chart-sankey-loop": "0.17.58", + "@superset-ui/legacy-plugin-chart-sunburst": "0.17.58", + "@superset-ui/legacy-plugin-chart-time-table": "0.17.58", + "@superset-ui/legacy-plugin-chart-treemap": "0.17.58", "@superset-ui/legacy-plugin-chart-word-cloud": "^0.11.15", - "@superset-ui/legacy-plugin-chart-world-map": "0.17.56", - "@superset-ui/legacy-preset-chart-big-number": "0.17.56", - "@superset-ui/plugin-chart-echarts": "0.17.57", - "@superset-ui/plugin-chart-table": "0.17.56", - "@superset-ui/plugin-chart-word-cloud": "0.17.56", + "@superset-ui/legacy-plugin-chart-world-map": "0.17.58", + "@superset-ui/legacy-preset-chart-big-number": "0.17.58", + "@superset-ui/plugin-chart-echarts": "0.17.58", + "@superset-ui/plugin-chart-table": "0.17.58", + "@superset-ui/plugin-chart-word-cloud": "0.17.58", "@types/react-loadable": "^5.5.3", "@types/react-resizable": "^1.7.2", "@types/storybook__react": "5.2.1", diff --git a/plugins/legacy-plugin-chart-calendar/package.json b/plugins/legacy-plugin-chart-calendar/package.json index bd8cde5bff..a9003dfaf5 100644 --- a/plugins/legacy-plugin-chart-calendar/package.json +++ b/plugins/legacy-plugin-chart-calendar/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-calendar", - "version": "0.17.56", + "version": "0.17.58", "description": "Superset Legacy Chart - Calendar Heatmap", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.56", - "@superset-ui/core": "0.17.56", + "@superset-ui/chart-controls": "0.17.58", + "@superset-ui/core": "0.17.58", "d3-array": "^2.0.3", "d3-selection": "^1.4.0", "d3-tip": "^0.9.1", diff --git a/plugins/legacy-plugin-chart-chord/package.json b/plugins/legacy-plugin-chart-chord/package.json index 9d28361135..3d9707f6e3 100644 --- a/plugins/legacy-plugin-chart-chord/package.json +++ b/plugins/legacy-plugin-chart-chord/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-chord", - "version": "0.17.56", + "version": "0.17.58", "description": "Superset Legacy Chart - Chord Diagram", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.56", - "@superset-ui/core": "0.17.56", + "@superset-ui/chart-controls": "0.17.58", + "@superset-ui/core": "0.17.58", "d3": "^3.5.17", "prop-types": "^15.6.2", "react": "^16.13.1" diff --git a/plugins/legacy-plugin-chart-country-map/package.json b/plugins/legacy-plugin-chart-country-map/package.json index b6049d10ee..1ec354c165 100644 --- a/plugins/legacy-plugin-chart-country-map/package.json +++ b/plugins/legacy-plugin-chart-country-map/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-country-map", - "version": "0.17.56", + "version": "0.17.58", "description": "Superset Legacy Chart - Country Map", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.56", - "@superset-ui/core": "0.17.56", + "@superset-ui/chart-controls": "0.17.58", + "@superset-ui/core": "0.17.58", "d3": "^3.5.17", "d3-array": "^2.0.3", "prop-types": "^15.6.2" diff --git a/plugins/legacy-plugin-chart-event-flow/package.json b/plugins/legacy-plugin-chart-event-flow/package.json index 6dd5b6437d..75d3ccf2f3 100644 --- a/plugins/legacy-plugin-chart-event-flow/package.json +++ b/plugins/legacy-plugin-chart-event-flow/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-event-flow", - "version": "0.17.56", + "version": "0.17.58", "description": "Superset Legacy Chart - Event Flow", "sideEffects": [ "*.css" @@ -29,8 +29,8 @@ }, "dependencies": { "@data-ui/event-flow": "^0.0.84", - "@superset-ui/chart-controls": "0.17.56", - "@superset-ui/core": "0.17.56", + "@superset-ui/chart-controls": "0.17.58", + "@superset-ui/core": "0.17.58", "prop-types": "^15.6.2" }, "peerDependencies": { diff --git a/plugins/legacy-plugin-chart-force-directed/package.json b/plugins/legacy-plugin-chart-force-directed/package.json index 77231b0139..fb9cc15703 100644 --- a/plugins/legacy-plugin-chart-force-directed/package.json +++ b/plugins/legacy-plugin-chart-force-directed/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-force-directed", - "version": "0.17.56", + "version": "0.17.58", "description": "Superset Legacy Chart - Force-directed Graph", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.56", - "@superset-ui/core": "0.17.56", + "@superset-ui/chart-controls": "0.17.58", + "@superset-ui/core": "0.17.58", "d3": "^3.5.17", "prop-types": "^15.7.2" }, diff --git a/plugins/legacy-plugin-chart-heatmap/package.json b/plugins/legacy-plugin-chart-heatmap/package.json index 5c263cf50f..54e8c9b7f6 100644 --- a/plugins/legacy-plugin-chart-heatmap/package.json +++ b/plugins/legacy-plugin-chart-heatmap/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-heatmap", - "version": "0.17.56", + "version": "0.17.58", "description": "Superset Legacy Chart - Heatmap", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.56", - "@superset-ui/core": "0.17.56", + "@superset-ui/chart-controls": "0.17.58", + "@superset-ui/core": "0.17.58", "d3": "^3.5.17", "d3-svg-legend": "^1.x", "d3-tip": "^0.9.1", diff --git a/plugins/legacy-plugin-chart-histogram/package.json b/plugins/legacy-plugin-chart-histogram/package.json index bf9b436d8b..2d33ce295d 100644 --- a/plugins/legacy-plugin-chart-histogram/package.json +++ b/plugins/legacy-plugin-chart-histogram/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-histogram", - "version": "0.17.56", + "version": "0.17.58", "description": "Superset Legacy Chart - Histogram", "sideEffects": [ "*.css" @@ -30,8 +30,8 @@ "dependencies": { "@data-ui/histogram": "^0.0.84", "@data-ui/theme": "^0.0.84", - "@superset-ui/chart-controls": "0.17.56", - "@superset-ui/core": "0.17.56", + "@superset-ui/chart-controls": "0.17.58", + "@superset-ui/core": "0.17.58", "@vx/legend": "^0.0.198", "@vx/responsive": "^0.0.199", "@vx/scale": "^0.0.197", diff --git a/plugins/legacy-plugin-chart-horizon/package.json b/plugins/legacy-plugin-chart-horizon/package.json index b4a865e15c..b654c8da60 100644 --- a/plugins/legacy-plugin-chart-horizon/package.json +++ b/plugins/legacy-plugin-chart-horizon/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-horizon", - "version": "0.17.56", + "version": "0.17.58", "description": "Superset Legacy Chart - Horizon", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.56", - "@superset-ui/core": "0.17.56", + "@superset-ui/chart-controls": "0.17.58", + "@superset-ui/core": "0.17.58", "d3-array": "^2.0.3", "d3-scale": "^3.0.1", "prop-types": "^15.6.2" diff --git a/plugins/legacy-plugin-chart-map-box/package.json b/plugins/legacy-plugin-chart-map-box/package.json index 837efc6aee..3863e7a1c2 100644 --- a/plugins/legacy-plugin-chart-map-box/package.json +++ b/plugins/legacy-plugin-chart-map-box/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-map-box", - "version": "0.17.56", + "version": "0.17.58", "description": "Superset Legacy Chart - MapBox", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.56", - "@superset-ui/core": "0.17.56", + "@superset-ui/chart-controls": "0.17.58", + "@superset-ui/core": "0.17.58", "immutable": "^3.8.2", "mapbox-gl": "^0.53.0", "prop-types": "^15.6.2", diff --git a/plugins/legacy-plugin-chart-paired-t-test/package.json b/plugins/legacy-plugin-chart-paired-t-test/package.json index 20889b5edf..4285538c1e 100644 --- a/plugins/legacy-plugin-chart-paired-t-test/package.json +++ b/plugins/legacy-plugin-chart-paired-t-test/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-paired-t-test", - "version": "0.17.56", + "version": "0.17.58", "description": "Superset Legacy Chart - Paired T Test", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.56", - "@superset-ui/core": "0.17.56", + "@superset-ui/chart-controls": "0.17.58", + "@superset-ui/core": "0.17.58", "distributions": "^1.0.0", "prop-types": "^15.6.2", "reactable": "^1.1.0" diff --git a/plugins/legacy-plugin-chart-parallel-coordinates/package.json b/plugins/legacy-plugin-chart-parallel-coordinates/package.json index a3e7510ad1..fe956ec47c 100644 --- a/plugins/legacy-plugin-chart-parallel-coordinates/package.json +++ b/plugins/legacy-plugin-chart-parallel-coordinates/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-parallel-coordinates", - "version": "0.17.56", + "version": "0.17.58", "description": "Superset Legacy Chart - Parallel Coordinates", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.56", - "@superset-ui/core": "0.17.56", + "@superset-ui/chart-controls": "0.17.58", + "@superset-ui/core": "0.17.58", "d3": "^3.5.17", "prop-types": "^15.7.2" }, diff --git a/plugins/legacy-plugin-chart-partition/package.json b/plugins/legacy-plugin-chart-partition/package.json index 2c79794279..d002677ccc 100644 --- a/plugins/legacy-plugin-chart-partition/package.json +++ b/plugins/legacy-plugin-chart-partition/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-partition", - "version": "0.17.56", + "version": "0.17.58", "description": "Superset Legacy Chart - Partition", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.56", - "@superset-ui/core": "0.17.56", + "@superset-ui/chart-controls": "0.17.58", + "@superset-ui/core": "0.17.58", "d3": "^3.5.17", "d3-hierarchy": "^1.1.8", "prop-types": "^15.6.2" diff --git a/plugins/legacy-plugin-chart-pivot-table/package.json b/plugins/legacy-plugin-chart-pivot-table/package.json index dde187ef74..d915c65972 100644 --- a/plugins/legacy-plugin-chart-pivot-table/package.json +++ b/plugins/legacy-plugin-chart-pivot-table/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-pivot-table", - "version": "0.17.56", + "version": "0.17.58", "description": "Superset Legacy Chart - Pivot Table", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.56", - "@superset-ui/core": "0.17.56", + "@superset-ui/chart-controls": "0.17.58", + "@superset-ui/core": "0.17.58", "d3": "^3.5.17", "datatables.net-bs": "^1.10.15", "prop-types": "^15.6.2" diff --git a/plugins/legacy-plugin-chart-rose/package.json b/plugins/legacy-plugin-chart-rose/package.json index 0cfbccad60..de5b97209d 100644 --- a/plugins/legacy-plugin-chart-rose/package.json +++ b/plugins/legacy-plugin-chart-rose/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-rose", - "version": "0.17.56", + "version": "0.17.58", "description": "Superset Legacy Chart - Nightingale Rose Diagram", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.56", - "@superset-ui/core": "0.17.56", + "@superset-ui/chart-controls": "0.17.58", + "@superset-ui/core": "0.17.58", "d3": "^3.5.17", "nvd3": "1.8.6", "prop-types": "^15.6.2" diff --git a/plugins/legacy-plugin-chart-sankey-loop/package.json b/plugins/legacy-plugin-chart-sankey-loop/package.json index 6df8a1f38f..fdd72ef013 100644 --- a/plugins/legacy-plugin-chart-sankey-loop/package.json +++ b/plugins/legacy-plugin-chart-sankey-loop/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-sankey-loop", - "version": "0.17.56", + "version": "0.17.58", "description": "Superset Legacy Chart - Sankey Diagram with Loops", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.56", - "@superset-ui/core": "0.17.56", + "@superset-ui/chart-controls": "0.17.58", + "@superset-ui/core": "0.17.58", "d3-sankey-diagram": "^0.7.3", "d3-selection": "^1.4.0", "prop-types": "^15.6.2" diff --git a/plugins/legacy-plugin-chart-sankey/package.json b/plugins/legacy-plugin-chart-sankey/package.json index 66d864bfe9..fc5e419bd9 100644 --- a/plugins/legacy-plugin-chart-sankey/package.json +++ b/plugins/legacy-plugin-chart-sankey/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-sankey", - "version": "0.17.56", + "version": "0.17.58", "description": "Superset Legacy Chart - Sankey Diagram", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.56", - "@superset-ui/core": "0.17.56", + "@superset-ui/chart-controls": "0.17.58", + "@superset-ui/core": "0.17.58", "d3": "^3.5.17", "d3-sankey": "^0.4.2", "prop-types": "^15.6.2" diff --git a/plugins/legacy-plugin-chart-sunburst/package.json b/plugins/legacy-plugin-chart-sunburst/package.json index 39d56d867e..96ee70adca 100644 --- a/plugins/legacy-plugin-chart-sunburst/package.json +++ b/plugins/legacy-plugin-chart-sunburst/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-sunburst", - "version": "0.17.56", + "version": "0.17.58", "description": "Superset Legacy Chart - Sunburst", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.56", - "@superset-ui/core": "0.17.56", + "@superset-ui/chart-controls": "0.17.58", + "@superset-ui/core": "0.17.58", "d3": "^3.5.17", "prop-types": "^15.6.2" } diff --git a/plugins/legacy-plugin-chart-time-table/package.json b/plugins/legacy-plugin-chart-time-table/package.json index d9bef7665d..d3135a2dac 100644 --- a/plugins/legacy-plugin-chart-time-table/package.json +++ b/plugins/legacy-plugin-chart-time-table/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-time-table", - "version": "0.17.56", + "version": "0.17.58", "description": "Superset Chart Plugin - Time Table", "sideEffects": [ "*.css" @@ -29,8 +29,8 @@ }, "dependencies": { "@data-ui/sparkline": "^0.0.84", - "@superset-ui/chart-controls": "0.17.56", - "@superset-ui/core": "0.17.56", + "@superset-ui/chart-controls": "0.17.58", + "@superset-ui/core": "0.17.58", "@types/d3-scale": "^2.0.2", "d3-scale": "^3.2.1", "moment": "^2.26.0", diff --git a/plugins/legacy-plugin-chart-treemap/package.json b/plugins/legacy-plugin-chart-treemap/package.json index 4b63ee74af..82305aa1bd 100644 --- a/plugins/legacy-plugin-chart-treemap/package.json +++ b/plugins/legacy-plugin-chart-treemap/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-treemap", - "version": "0.17.56", + "version": "0.17.58", "description": "Superset Legacy Chart - Treemap", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.56", - "@superset-ui/core": "0.17.56", + "@superset-ui/chart-controls": "0.17.58", + "@superset-ui/core": "0.17.58", "d3-hierarchy": "^1.1.8", "d3-selection": "^1.4.0", "prop-types": "^15.6.2" diff --git a/plugins/legacy-plugin-chart-world-map/package.json b/plugins/legacy-plugin-chart-world-map/package.json index 1a7e2d8efa..301a962ff8 100644 --- a/plugins/legacy-plugin-chart-world-map/package.json +++ b/plugins/legacy-plugin-chart-world-map/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-plugin-chart-world-map", - "version": "0.17.56", + "version": "0.17.58", "description": "Superset Legacy Chart - World Map", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.56", - "@superset-ui/core": "0.17.56", + "@superset-ui/chart-controls": "0.17.58", + "@superset-ui/core": "0.17.58", "d3": "^3.5.17", "d3-array": "^2.4.0", "d3-color": "^1.4.1", diff --git a/plugins/legacy-preset-chart-big-number/package.json b/plugins/legacy-preset-chart-big-number/package.json index 58fbe151e0..1adff47944 100644 --- a/plugins/legacy-preset-chart-big-number/package.json +++ b/plugins/legacy-preset-chart-big-number/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-preset-chart-big-number", - "version": "0.17.56", + "version": "0.17.58", "description": "Superset Legacy Chart - Big Number", "sideEffects": [ "*.css" @@ -29,8 +29,8 @@ }, "dependencies": { "@data-ui/xy-chart": "^0.0.84", - "@superset-ui/chart-controls": "0.17.56", - "@superset-ui/core": "0.17.56", + "@superset-ui/chart-controls": "0.17.58", + "@superset-ui/core": "0.17.58", "@types/d3-color": "^1.2.2", "@types/shortid": "^0.0.29", "d3-color": "^1.2.3", diff --git a/plugins/legacy-preset-chart-nvd3/package.json b/plugins/legacy-preset-chart-nvd3/package.json index c1e64c3981..c8f14c6922 100644 --- a/plugins/legacy-preset-chart-nvd3/package.json +++ b/plugins/legacy-preset-chart-nvd3/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/legacy-preset-chart-nvd3", - "version": "0.17.56", + "version": "0.17.58", "description": "Superset Legacy Chart - NVD3", "sideEffects": [ "*.css" @@ -29,8 +29,8 @@ }, "dependencies": { "@data-ui/xy-chart": "^0.0.84", - "@superset-ui/chart-controls": "0.17.56", - "@superset-ui/core": "0.17.56", + "@superset-ui/chart-controls": "0.17.58", + "@superset-ui/core": "0.17.58", "d3": "^3.5.17", "d3-tip": "^0.9.1", "dompurify": "^2.0.6", diff --git a/plugins/plugin-chart-echarts/package.json b/plugins/plugin-chart-echarts/package.json index daf0e0eb66..eba590ef5d 100644 --- a/plugins/plugin-chart-echarts/package.json +++ b/plugins/plugin-chart-echarts/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/plugin-chart-echarts", - "version": "0.17.57", + "version": "0.17.58", "description": "Superset Chart - Echarts", "sideEffects": false, "main": "lib/index.js", @@ -26,8 +26,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.56", - "@superset-ui/core": "0.17.56", + "@superset-ui/chart-controls": "0.17.58", + "@superset-ui/core": "0.17.58", "@types/mathjs": "^6.0.7", "d3-array": "^1.2.0", "echarts": "^5.1.2", diff --git a/plugins/plugin-chart-pivot-table/package.json b/plugins/plugin-chart-pivot-table/package.json index e5ebc59d61..d099cd7c6f 100644 --- a/plugins/plugin-chart-pivot-table/package.json +++ b/plugins/plugin-chart-pivot-table/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/plugin-chart-pivot-table", - "version": "0.17.57", + "version": "0.17.58", "description": "Superset Chart - Pivot Table", "sideEffects": false, "main": "lib/index.js", @@ -26,8 +26,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.56", - "@superset-ui/core": "0.17.56", + "@superset-ui/chart-controls": "0.17.58", + "@superset-ui/core": "0.17.58", "@superset-ui/react-pivottable": "^0.12.8" }, "peerDependencies": { diff --git a/plugins/plugin-chart-table/package.json b/plugins/plugin-chart-table/package.json index 82bddd30a1..3c3f725d4d 100644 --- a/plugins/plugin-chart-table/package.json +++ b/plugins/plugin-chart-table/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/plugin-chart-table", - "version": "0.17.56", + "version": "0.17.58", "description": "Superset Chart - Table", "main": "lib/index.js", "module": "esm/index.js", @@ -26,8 +26,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.56", - "@superset-ui/core": "0.17.56", + "@superset-ui/chart-controls": "0.17.58", + "@superset-ui/core": "0.17.58", "@types/d3-array": "^2.9.0", "@types/react-table": "^7.0.29", "d3-array": "^2.4.0", diff --git a/plugins/plugin-chart-word-cloud/package.json b/plugins/plugin-chart-word-cloud/package.json index e4b50c4d75..00c3cfbbab 100644 --- a/plugins/plugin-chart-word-cloud/package.json +++ b/plugins/plugin-chart-word-cloud/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/plugin-chart-word-cloud", - "version": "0.17.56", + "version": "0.17.58", "description": "Superset Chart Plugin - Word Cloud", "sideEffects": [ "*.css" @@ -28,8 +28,8 @@ "access": "public" }, "dependencies": { - "@superset-ui/chart-controls": "0.17.56", - "@superset-ui/core": "0.17.56", + "@superset-ui/chart-controls": "0.17.58", + "@superset-ui/core": "0.17.58", "@types/d3-cloud": "^1.2.1", "@types/d3-scale": "^2.0.2", "d3-cloud": "^1.2.5", diff --git a/plugins/preset-chart-xy/package.json b/plugins/preset-chart-xy/package.json index 69aaff5764..0e85e403d3 100644 --- a/plugins/preset-chart-xy/package.json +++ b/plugins/preset-chart-xy/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/preset-chart-xy", - "version": "0.17.56", + "version": "0.17.58", "description": "Superset Chart - XY", "sideEffects": [ "*.css" @@ -31,8 +31,8 @@ "dependencies": { "@data-ui/theme": "^0.0.84", "@data-ui/xy-chart": "^0.0.84", - "@superset-ui/chart-controls": "0.17.56", - "@superset-ui/core": "0.17.56", + "@superset-ui/chart-controls": "0.17.58", + "@superset-ui/core": "0.17.58", "@vx/axis": "^0.0.198", "@vx/legend": "^0.0.198", "@vx/scale": "^0.0.197", From b9e62682b13437c3cb4c083d417ad12e3a962661 Mon Sep 17 00:00:00 2001 From: Yaozong Liu <750188453@qq.com> Date: Thu, 17 Jun 2021 19:15:13 +0800 Subject: [PATCH 17/18] fix(plugin-chart-echarts): [treemap v2] the section color and disabling the zoom on the explore --- plugins/plugin-chart-echarts/src/Treemap/constants.ts | 2 +- plugins/plugin-chart-echarts/src/Treemap/transformProps.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/plugin-chart-echarts/src/Treemap/constants.ts b/plugins/plugin-chart-echarts/src/Treemap/constants.ts index b31e9da792..9fe5f1a163 100644 --- a/plugins/plugin-chart-echarts/src/Treemap/constants.ts +++ b/plugins/plugin-chart-echarts/src/Treemap/constants.ts @@ -19,7 +19,7 @@ import { TreePathInfo } from './types'; -export const COLOR_SATURATION = [0.4, 0.7]; +export const COLOR_SATURATION = [0.7, 0.4]; export const LABEL_FONTSIZE = 11; export const BORDER_WIDTH = 2; export const GAP_WIDTH = 2; diff --git a/plugins/plugin-chart-echarts/src/Treemap/transformProps.ts b/plugins/plugin-chart-echarts/src/Treemap/transformProps.ts index bbec3216f8..b0a5995bc3 100644 --- a/plugins/plugin-chart-echarts/src/Treemap/transformProps.ts +++ b/plugins/plugin-chart-echarts/src/Treemap/transformProps.ts @@ -251,7 +251,7 @@ export default function transformProps( animation: false, width: '100%', height: '100%', - nodeClick: dashboardId ? undefined : 'zoomToNode', + nodeClick: undefined, roam: !dashboardId, breadcrumb: { show: false, From 7aec0a43bf8253f8456ae5ebe8a2365799b54ded Mon Sep 17 00:00:00 2001 From: David Aaron Suddjian <1858430+suddjian@users.noreply.github.com> Date: Thu, 17 Jun 2021 09:05:16 -0700 Subject: [PATCH 18/18] chore(core): adjustments to chart metadata (#1177) --- .../src/chart/models/ChartMetadata.ts | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/packages/superset-ui-core/src/chart/models/ChartMetadata.ts b/packages/superset-ui-core/src/chart/models/ChartMetadata.ts index eea68afb82..1aab8863ab 100644 --- a/packages/superset-ui-core/src/chart/models/ChartMetadata.ts +++ b/packages/superset-ui-core/src/chart/models/ChartMetadata.ts @@ -4,6 +4,11 @@ interface LookupTable { [key: string]: boolean; } +export interface ExampleImage { + url: string; + caption?: string; +} + export interface ChartMetadataConfig { name: string; canBeAnnotationTypes?: string[]; @@ -17,9 +22,9 @@ export interface ChartMetadataConfig { useLegacyApi?: boolean; behaviors?: Behavior[]; deprecated?: boolean; - exampleGallery?: string[]; + exampleGallery?: ExampleImage[]; tags?: string[]; - categories?: string[]; + category?: string | null; } export default class ChartMetadata { @@ -49,11 +54,11 @@ export default class ChartMetadata { deprecated: boolean; - exampleGallery: string[]; + exampleGallery: ExampleImage[]; tags: string[]; - categories: string[]; + category: string | null; constructor(config: ChartMetadataConfig) { const { @@ -71,7 +76,7 @@ export default class ChartMetadata { deprecated = false, exampleGallery = [], tags = [], - categories = [], + category = null, } = config; this.name = name; @@ -97,7 +102,7 @@ export default class ChartMetadata { this.deprecated = deprecated; this.exampleGallery = exampleGallery; this.tags = tags; - this.categories = categories; + this.category = category; } canBeAnnotationType(type: string): boolean {