You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by hu...@apache.org on 2023/04/03 21:54:30 UTC

[superset] branch fix-explore-mixin updated (e7a9257fe8 -> 7376596235)

This is an automated email from the ASF dual-hosted git repository.

hugh pushed a change to branch fix-explore-mixin
in repository https://gitbox.apache.org/repos/asf/superset.git


    from e7a9257fe8 Merge branch 'master' of https://github.com/apache/superset into fix-explore-mixin
     add 226b60bc4f fix: safe check when computing chart thumbnail (#23432)
     add d01cf4300c fix: schedule query option showing up (#23386)
     add 45f045def2 fix: prevent ForeignKeyViolation error on delete (#23414)
     add 8ecf0b1c20 feat(echarts): Add x axis sort by to all series charts (#23450)
     add 9626a0d884 build(deps-dev): bump prettier from 2.8.4 to 2.8.6 in /superset-websocket (#23451)
     add fb270cbbd5 build(deps-dev): bump @types/node from 18.15.3 to 18.15.5 in /superset-websocket (#23438)
     add 8588f81855 feat(DB engine spec): `get_catalog_names` (#23447)
     add 499754a52e fix: Allow setting ingress hosts directly through yaml (#23446)
     add fae3ad0462 docs(contributing): added note for creating SECRET_KEY (#23417)
     add b1526c14e0 fix(sqllab): dedupe active_tab in tabHistory (#23265)
     add ca4dd26648 chore(sqllab): Remove schemaOptions from redux store (#23257)
     add 832e8fb0ac fix(Pivot Table v2): resolved full width issue (#23393)
     add 88684caba8 build(deps-dev): bump eslint-config-prettier from 8.7.0 to 8.8.0 in /superset-websocket (#23437)
     add 212b7330d6 docs(contributing): How create or change SECRET_KEY (#23420)
     add b0773145d6 feat: Allows reload on default filter value error (#23459)
     add 07a632891c fix(chart): non existent time grain no longer breaks the application (#23441)
     add a15e833128 fix(chart): add missing toleration for init-job (#23452)
     add 8f846b7ad0 fix: broken helm chart ingress (#23471)
     add d1947f7354 fix(sqllab): throw errors of commented out query (#23378)
     add be2eb3157c perf(postprocessing): improve pivot postprocessing operation (#23465)
     add 8c374f391d chore: Dataset specific MetadataBar (#23429)
     add 4530542ac4 fix: Chart crashing if timeseries_limit_metric is an empty array (#23480)
     add 0fa421271e feat(helm): add nodeselector and tolerations to init job (#23416)
     add 21578f74b7 chore: Changes the inputs of native filters modal to have the same width (#23477)
     add a3ffc67238 docs: Adds notes to Superset plugin generator about TypeScript errors (#23501)
     add 0cebe8bf18 fix(legacy-plugin-chart-heatmap): fix adhoc column tooltip (#23507)
     add 8db5cb18c0 fix(generic-x-axis): skip initial time filter for legacy charts (#23506)
     add 439d687e1f fix(dashboard): Add remark plugin on markdown (#23502)
     add 80d1e4ffa3 fix: Preserves selected scopes when toggling between scope types (#23475)
     add 5d910aa2e2 fix(plugin-chart-table): Invalid d3Formatter on String column (#23515)
     add 542bf25729 fix(dashboards): apply tag filter correctly (#23521)
     add 9fbfd1c1d8 feat: Implement context menu for drill by (#23454)
     add 4220d32f3d fix: Dashboard not loading with default first value in filter (#23512)
     add 97b5cdd588 feat: drill by modal (#23458)
     add f2be53dd53 chore: Migrate /superset/favstar to API v1 (#23165)
     add de42c11f99 fix(plugin-generator): Addresses linter errors in newly generated Superset plugin (#23513)
     add 41ad9442c0 fix(word cloud): series label format fixed for custom sql queries (#23517)
     add 63751c6c0f chore: Adds a tooltip to pre-filter in native filters modal (#23481)
     add ce3ba67cf6 fix(conditional formatting): controls looses on save (#23137)
     add 81b32d1045 chore: allow logs to show error levels for ssh tunnel (#23536)
     add 068163e2a1 fix(tags): convert postgres enum type to varchar (#23526)
     add 330e79bc5d ci: disable flaky async test (#23527)
     add db9ca20737 fix(area chart legacy): tool tip shows actual value rather than y axi… (#23469)
     add f6b5b658e5 chore(welcome): harmonize submenu with other routes (#22803)
     add 500d90058f feat: add ability to disable cache (#23439)
     add 09757dc518 fix: moved alerts and reports default values to config (#22880)
     add bc2ec044b8 feat(cross-filters): using verbose map in applied cross-filters (#23509)
     add ee9ef24509 perf(sqla): avoid unnecessary type check on adhoc column (#23491)
     add 1ced7cdbbb fix: Removes Redux state mutations - iteration 1 (#23522)
     add b52efe0599 fix(sqllab): dedupe table_schemas in active_tab (#23514)
     add a18e33b3bc fix: Hide FilterBar for Reports (#23543)
     add bd0609df58 fix(sqllab): undefined issue_codes on query error (#23549)
     add 13ffb4b7c2 fix(plugin-chart-table): Include time control (#23533)
     add cdc7af11bf chore: Migrate /superset/user_slices and /superset/fave_slices to API v1 (#22964)
     add 3bc496040d fix: Filter values are not updating when dependencies are set (#23566)
     add 95db6c04aa fix: Add default empty array to filter dependencies (#23565)
     add 7376596235 Merge branch 'master' of https://github.com/apache/superset into fix-explore-mixin

No new revisions were added by this update.

Summary of changes:
 docs/docs/contributing/local-backend.mdx           |   2 +
 docs/docs/installation/cache.mdx                   |   3 +
 docs/docs/installation/configuring-superset.mdx    |   8 +-
 docs/static/resources/openapi.json                 |  30 +
 helm/superset/Chart.yaml                           |   2 +-
 helm/superset/README.md                            |   6 +-
 helm/superset/templates/ingress.yaml               |   3 +
 helm/superset/templates/init-job.yaml              |  26 +
 helm/superset/values.yaml                          |   7 +
 superset-frontend/.storybook/main.js               |   5 +-
 .../cypress/integration/chart_list/list.test.ts    |   8 +-
 .../integration/dashboard/nativeFilters.test.ts    |  11 +-
 .../cypress/integration/dashboard/utils.ts         |   9 +-
 superset-frontend/jest.config.js                   |   3 +
 superset-frontend/package-lock.json                | 651 +++++++++++++++++++++
 superset-frontend/package.json                     |   1 +
 .../generators/plugin-chart/templates/README.erb   |  25 +
 .../generators/plugin-chart/templates/package.erb  |   2 +-
 .../plugin-chart/templates/src/MyChart.erb         |  11 +-
 .../templates/src/plugin/controlPanel.erb          |   6 +-
 .../plugin-chart/templates/src/types.erb           |   6 +-
 .../templates/test/plugin/transformProps.test.erb  |   3 +-
 .../src/operators/utils/extractExtraMetrics.ts     |   8 +-
 .../src/shared-controls/mixins.tsx                 |   4 +-
 .../operators/utils/extractExtraMetrics.test.ts    |  10 +
 .../packages/superset-ui-core/package.json         |   1 +
 .../superset-ui-core/src/chart/types/Base.ts       |   6 +
 .../src/components/SafeMarkdown.tsx                |   7 +-
 .../src/query/extractQueryFields.ts                |   3 +-
 .../legacy-plugin-chart-heatmap/src/Heatmap.js     |  15 +-
 .../legacy-plugin-chart-world-map/src/WorldMap.js  |   9 +
 .../legacy-plugin-chart-world-map/src/index.js     |   6 +-
 .../plugins/legacy-preset-chart-nvd3/src/utils.js  |   2 +-
 .../plugin-chart-echarts/src/BoxPlot/index.ts      |   8 +-
 .../plugin-chart-echarts/src/Funnel/index.ts       |   6 +-
 .../plugin-chart-echarts/src/Gauge/index.ts        |   6 +-
 .../src/Graph/EchartsGraph.tsx                     |  11 +-
 .../plugin-chart-echarts/src/Graph/index.ts        |   6 +-
 .../src/MixedTimeseries/EchartsMixedTimeseries.tsx |  68 ++-
 .../src/MixedTimeseries/index.ts                   |   6 +-
 .../plugins/plugin-chart-echarts/src/Pie/index.ts  |   6 +-
 .../plugin-chart-echarts/src/Radar/index.ts        |   6 +-
 .../src/Sunburst/EchartsSunburst.tsx               |  10 +-
 .../plugin-chart-echarts/src/Sunburst/index.ts     |   8 +-
 .../src/Timeseries/Area/controlPanel.tsx           |   2 +-
 .../src/Timeseries/Area/index.ts                   |   6 +-
 .../src/Timeseries/EchartsTimeseries.tsx           |  60 +-
 .../src/Timeseries/Regular/Bar/index.ts            |   6 +-
 .../src/Timeseries/Regular/Line/controlPanel.tsx   |   2 +-
 .../src/Timeseries/Regular/Line/index.ts           |   6 +-
 .../Timeseries/Regular/Scatter/controlPanel.tsx    |   2 +-
 .../src/Timeseries/Regular/Scatter/index.ts        |   6 +-
 .../Timeseries/Regular/SmoothLine/controlPanel.tsx |   2 +-
 .../src/Timeseries/Regular/SmoothLine/index.ts     |   6 +-
 .../src/Timeseries/Step/controlPanel.tsx           |   2 +-
 .../src/Timeseries/Step/index.ts                   |   6 +-
 .../plugin-chart-echarts/src/Timeseries/index.ts   |   6 +-
 .../src/Treemap/EchartsTreemap.tsx                 |  16 +-
 .../plugin-chart-echarts/src/Treemap/index.ts      |   6 +-
 .../src/utils/eventHandlers.ts                     |   7 +-
 .../src/PivotTableChart.tsx                        |  21 +-
 .../src/plugin/controlPanel.tsx                    |   4 +-
 .../plugin-chart-pivot-table/src/plugin/index.ts   |  10 +-
 .../src/react-pivottable/Styles.js                 |   1 +
 .../plugins/plugin-chart-table/src/TableChart.tsx  |  12 +
 .../plugin-chart-table/src/controlPanel.tsx        |  32 +-
 .../plugins/plugin-chart-table/src/index.ts        |   8 +-
 .../plugin-chart-table/src/transformProps.ts       |   3 +-
 .../plugin-chart-table/test/TableChart.test.tsx    |   1 +
 .../plugins/plugin-chart-table/test/testData.ts    |  14 +
 .../src/legacyPlugin/transformProps.ts             |   7 +-
 .../src/legacyPlugin/types.ts                      |   4 +-
 .../plugins/plugin-chart-word-cloud/src/types.ts   |   4 +-
 superset-frontend/src/SqlLab/App.jsx               |   8 +-
 superset-frontend/src/SqlLab/actions/sqlLab.js     |  22 +-
 .../src/SqlLab/actions/sqlLab.test.js              |  24 +-
 .../SqlLab/components/AceEditorWrapper/index.tsx   |  32 +-
 .../components/RunQueryActionButton/index.tsx      |   5 +-
 .../src/SqlLab/components/SaveQuery/index.tsx      |   1 -
 .../SqlLab/components/ShareSqlLabQuery/index.tsx   |   4 +-
 .../src/SqlLab/components/SouthPane/index.tsx      |   4 +-
 .../src/SqlLab/components/SqlEditor/index.jsx      |   6 +-
 .../SqlLab/components/SqlEditorLeftBar/index.tsx   |  11 -
 .../SqlLab/components/TabbedSqlEditors/index.jsx   |   4 +-
 superset-frontend/src/SqlLab/fixtures.ts           |   7 -
 .../hooks/useQueryEditor/useQueryEditor.test.ts    |   9 +-
 .../src/SqlLab/reducers/getInitialState.js         |  30 +-
 .../src/SqlLab/reducers/getInitialState.test.ts    |  73 ++-
 superset-frontend/src/SqlLab/reducers/sqlLab.js    |  12 -
 superset-frontend/src/SqlLab/types.ts              |   1 -
 .../src/SqlLab/utils/emptyQueryResults.test.js     |   4 +-
 superset-frontend/src/components/Chart/Chart.jsx   |  11 +-
 .../src/components/Chart/ChartContextMenu.tsx      |  30 +-
 .../Chart/DrillBy/DrillByMenuItems.test.tsx        | 190 ++++++
 .../components/Chart/DrillBy/DrillByMenuItems.tsx  | 243 ++++++++
 .../DrillByModal.test.tsx}                         |  59 +-
 .../DrillByModal.tsx}                              |  64 +-
 .../Chart/DrillDetail/DrillDetailMenuItems.tsx     |  34 +-
 .../Chart/DrillDetail/DrillDetailPane.tsx          |  99 +---
 ...uItemTooltip.tsx => MenuItemWithTruncation.tsx} |  60 +-
 .../src/components/Chart/chartAction.js            |   4 +-
 .../src/components/Chart/chartReducer.ts           |   4 +-
 .../src/components/Chart/utils.test.ts             |   3 +
 superset-frontend/src/components/Chart/utils.ts    |  38 +-
 .../DatabaseSelector/DatabaseSelector.test.tsx     |   1 -
 .../src/components/DatabaseSelector/index.tsx      |   4 -
 .../src/components/Datasource/DatasourceEditor.jsx |  12 +-
 .../src/components/Datasource/DatasourceModal.tsx  |   8 +-
 .../src/components/DynamicPlugins/index.tsx        |   3 +-
 .../src/components/FaveStar/FaveStar.test.tsx      |   4 +-
 .../src/components/FaveStar/index.tsx              |  12 +-
 superset-frontend/src/components/Select/Select.tsx |  23 +-
 superset-frontend/src/components/Select/types.ts   |   5 +
 .../src/components/TableSelector/index.tsx         |   4 -
 .../src/dashboard/actions/dashboardState.js        |  25 +-
 superset-frontend/src/dashboard/actions/hydrate.js |   4 +-
 .../src/dashboard/actions/sliceEntities.js         |   4 +-
 .../DashboardBuilder/DashboardBuilder.test.tsx     |   3 +-
 .../DashboardBuilder/DashboardBuilder.tsx          |  31 +-
 .../dashboard/components/DashboardBuilder/state.ts |   3 +-
 .../components/FiltersBadge/FiltersBadge.test.tsx  |   8 +-
 .../dashboard/components/FiltersBadge/index.tsx    |   2 +
 .../Header/HeaderActionsDropdown/index.jsx         |   4 +-
 .../src/dashboard/components/Header/index.jsx      |   3 +-
 .../dashboard/components/PropertiesModal/index.tsx |   3 +-
 .../SliceHeaderControls.test.tsx                   |   2 +-
 .../components/SliceHeaderControls/index.tsx       |  11 +-
 .../FilterBar/CrossFilters/Vertical.tsx            |   3 +
 .../FilterBar/CrossFilters/selectors.ts            |   4 +-
 .../nativeFilters/FilterBar/FilterBar.test.tsx     |   3 +-
 .../FilterBar/FilterControls/FilterControls.tsx    |   4 +
 .../FilterBar/FilterControls/FilterValue.tsx       |  15 +-
 .../nativeFilters/FilterBar/Horizontal.tsx         |   5 +-
 .../nativeFilters/FilterBar/Vertical.tsx           |  10 +-
 .../components/nativeFilters/FilterBar/index.tsx   |  65 +-
 .../components/nativeFilters/FilterBar/types.ts    |   1 +
 .../components/nativeFilters/FilterBar/utils.ts    |  18 +
 .../FiltersConfigModal/FilterConfigurePane.tsx     |   3 +-
 .../FiltersConfigForm/ColumnSelect.tsx             |   2 +-
 .../FiltersConfigForm/DatasetSelect.tsx            |   3 +-
 .../FiltersConfigForm/DefaultValue.tsx             |  13 +-
 .../FiltersConfigForm/DependencyList.tsx           |   6 +-
 .../FilterScope/FilterScope.test.tsx               |   2 +-
 .../FiltersConfigForm/FilterScope/FilterScope.tsx  |  19 +-
 .../FiltersConfigForm/FiltersConfigForm.tsx        |  81 +--
 .../FiltersConfigForm/constants.ts}                |  39 +-
 .../FiltersConfigModal/FiltersConfigForm/utils.ts  |  30 +-
 .../components/nativeFilters/selectors.ts          |   8 +-
 .../src/dashboard/containers/DashboardPage.tsx     |  16 +-
 superset-frontend/src/dashboard/styles.ts          |   7 +
 .../src/dashboard/util/crossFilters.ts             |   5 +-
 .../dashboard/util/updateComponentParentsList.js   |  15 +-
 superset-frontend/src/dataMask/actions.ts          |   9 +-
 .../src/explore/actions/exploreActions.ts          |  21 +-
 .../src/explore/actions/hydrateExplore.ts          |  20 +
 .../explore/components/ControlPanelsContainer.tsx  |   2 +-
 .../components/DataTablesPane/DataTablesPane.tsx   |   4 +-
 .../DataTablesPane/test/DataTablesPane.test.tsx    |   2 +-
 .../explore/components/DatasourcePanel/index.tsx   |   7 +-
 .../src/explore/components/ExploreChartPanel.jsx   |   7 +-
 .../ExploreViewContainer.test.tsx                  |   4 +-
 .../explore/components/PropertiesModal/index.tsx   |   2 +-
 .../src/explore/components/SaveModal.tsx           |   9 +-
 .../AnnotationLayerControl/AnnotationLayer.jsx     |  66 ++-
 .../AnnotationLayer.test.tsx                       |   8 +-
 .../ConditionalFormattingControl.tsx               |  37 +-
 .../controls/ConditionalFormattingControl/types.ts |   1 +
 .../index.tsx                                      |  11 +-
 .../useExploreAdditionalActionsMenu/index.jsx      |   4 +-
 superset-frontend/src/featureFlags.ts              |   5 +-
 .../metadataBar/DatasetMetadataBar.stories.tsx}    |  86 ++-
 .../metadataBar/useDatasetMetadataBar.test.tsx     |  93 +++
 .../datasets/metadataBar/useDatasetMetadataBar.tsx | 107 ++++
 .../components/Select/SelectFilterPlugin.tsx       |  19 +-
 superset-frontend/src/middleware/asyncEvent.ts     |   3 +-
 .../src/pages/ChartCreation/index.tsx              |   9 +-
 superset-frontend/src/pages/ChartList/index.tsx    |   3 +-
 .../src/pages/DashboardList/index.tsx              |   6 +-
 superset-frontend/src/pages/DatabaseList/index.tsx |   4 +-
 .../src/pages/DatasetList/DatasetList.test.tsx     |   6 +-
 superset-frontend/src/pages/DatasetList/index.tsx  |   4 +-
 superset-frontend/src/pages/Home/Home.test.tsx     |   2 +-
 superset-frontend/src/pages/Home/index.tsx         | 196 ++++---
 .../src/pages/SavedQueryList/index.tsx             |   4 +-
 superset-frontend/src/pages/Tags/index.tsx         |   4 +-
 .../src/profile/components/Favorites.tsx           |  31 +-
 superset-frontend/src/profile/types.ts             |   9 +
 .../utils/cachedSupersetGet.ts}                    |  15 +-
 superset-frontend/src/utils/hostNamesConfig.js     |   7 +-
 .../src/views/CRUD/alert/AlertReportModal.tsx      |  72 ++-
 superset-frontend/src/views/CRUD/alert/types.ts    |   5 +
 .../src/views/CRUD/chart/ChartCard.tsx             |   4 +-
 .../src/views/CRUD/dashboard/DashboardCard.tsx     |   4 +-
 .../data/database/DatabaseModal/ExtraOptions.tsx   |   2 +-
 superset-frontend/src/views/CRUD/hooks.ts          |  23 +-
 superset-frontend/src/views/CRUD/tags/TagCard.tsx  |   4 +-
 superset-websocket/package-lock.json               |  42 +-
 superset-websocket/package.json                    |   6 +-
 superset/charts/api.py                             | 103 +++-
 superset/charts/commands/delete.py                 |   7 +-
 superset/charts/dao.py                             |  30 +
 superset/charts/filters.py                         |  43 +-
 superset/common/query_context.py                   |   5 +-
 superset/common/query_context_processor.py         |  12 +-
 superset/config.py                                 |   4 +
 superset/connectors/sqla/models.py                 |  38 +-
 superset/constants.py                              |   3 +
 superset/dashboards/api.py                         |  90 +++
 superset/dashboards/dao.py                         |  29 +
 superset/datasets/commands/delete.py               |   7 +-
 superset/db_engine_specs/base.py                   |  24 +-
 superset/db_engine_specs/postgres.py               |  22 +
 superset/extensions/ssh.py                         |   4 +-
 ...af1b_drop_postgres_enum_constrains_for_tags.py} |  33 +-
 superset/models/helpers.py                         |  10 +
 superset/models/slice.py                           |   6 +
 superset/tasks/thumbnails.py                       |   3 +
 superset/utils/pandas_postprocessing/pivot.py      |   9 +-
 superset/views/base.py                             |   3 +
 superset/views/core.py                             |   3 +
 superset/viz.py                                    |  16 +-
 tests/integration_tests/charts/api_tests.py        |  97 ++-
 tests/integration_tests/charts/commands_tests.py   |   2 +-
 tests/integration_tests/charts/data/api_tests.py   |   8 +
 tests/integration_tests/csv_upload_tests.py        |   5 +-
 tests/integration_tests/dashboards/api_tests.py    |  69 +++
 .../db_engine_specs/base_engine_spec_tests.py      |   3 +-
 .../db_engine_specs/postgres_tests.py              |  18 +
 tests/unit_tests/charts/dao/dao_tests.py           |  35 +-
 tests/unit_tests/dashboards/dao_tests.py           |  79 +++
 230 files changed, 3659 insertions(+), 1104 deletions(-)
 create mode 100644 superset-frontend/src/components/Chart/DrillBy/DrillByMenuItems.test.tsx
 create mode 100644 superset-frontend/src/components/Chart/DrillBy/DrillByMenuItems.tsx
 copy superset-frontend/src/components/Chart/{DrillDetail/DrillDetailModal.test.tsx => DrillBy/DrillByModal.test.tsx} (65%)
 copy superset-frontend/src/components/Chart/{DrillDetail/DrillDetailModal.tsx => DrillBy/DrillByModal.tsx} (61%)
 copy superset-frontend/src/components/Chart/{DisabledMenuItemTooltip.tsx => MenuItemWithTruncation.tsx} (53%)
 copy superset-frontend/src/{components/Chart/DrillDetail/types.ts => dashboard/components/nativeFilters/FiltersConfigModal/FiltersConfigForm/constants.ts} (64%)
 copy superset-frontend/src/{components/MetadataBar/MetadataBar.stories.tsx => features/datasets/metadataBar/DatasetMetadataBar.stories.tsx} (57%)
 create mode 100644 superset-frontend/src/features/datasets/metadataBar/useDatasetMetadataBar.test.tsx
 create mode 100644 superset-frontend/src/features/datasets/metadataBar/useDatasetMetadataBar.tsx
 copy superset-frontend/{packages/superset-ui-core/test/query/api/setupClientForTest.ts => src/utils/cachedSupersetGet.ts} (77%)
 copy superset/migrations/versions/{2018-07-20_16-08_937d04c16b64_update_datasources.py => 2023-03-29_20-30_07f9a902af1b_drop_postgres_enum_constrains_for_tags.py} (55%)
 create mode 100644 tests/unit_tests/dashboards/dao_tests.py