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/25 16:04:52 UTC

[superset] branch hxgh-apiv1-sqllab-viz updated (cca9d8aed5 -> 73c1936670)

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

hugh pushed a change to branch hxgh-apiv1-sqllab-viz
in repository https://gitbox.apache.org/repos/asf/superset.git


    from cca9d8aed5 fix check
     add 0c0d2b38a6 fix(sqllab): infinite running state on disconnect (#23669)
     add d6b6d9eae6 feat: Makes "Add to dashboard" in Save chart modal paginated (#23634)
     add 818a1d482b feat: Drill by error management (#23724)
     add 44557f5a23 chore(api v1): Deprecate datasource/save and datasource/get endpoints (#23678)
     add 306fb22021 chore(chart-data): add post processing error message to response (#23734)
     add f80e738196 fix: get or create db with an existing invalid URL (#23737)
     add b2b8c3e05b fix(ace-editor): use monospace fonts by default (#23747)
     add 60c9d68403 feat(adhoc-column): add resize option (#23748)
     add 171d93cee0 build(deps-dev): bump @typescript-eslint/parser from 5.58.0 to 5.59.0 in /superset-websocket (#23718)
     add c9ca17220f fix(cache): coerce schema_cache_timeout to None (#23157)
     add 7a6fb86cbb fix: Make sure the DeprecatedSelect label is always a string (#23758)
     add c441a7050d chore: add check constraint to restrict `Slice` models datasource_type != "table" (#23614)
     add 3028d40333 build(deps): bump vm2 from 3.9.15 to 3.9.17 in /superset-frontend (#23753)
     add a09162bb37 build(deps-dev): bump @types/node from 18.15.11 to 18.15.12 in /superset-websocket (#23746)
     add 5bec1a65ae refactor(sqllab): Remove tableOptions from redux state (#23488)
     add d0fda60c85 feat(native-filters): Add legacy (filter-box) to native filter migration script (#23269)
     add a3c971cbda chore(docs): copy change submitted through BugHerd (#23725)
     add 295975d16b chore(actions): Fix for Chromatic action using actions/checkout@v3 (#23759)
     add b31efbae7c chore: remove RemovedInMarshmallow4 warnings (#23704)
     add 0b43112873 fix: Further drilling by different groupby fields (#23754)
     add 764c3c95cf fix(mssql): apply top after distinct (#23751)
     add 2f7229cae8 fix: Drill by modal resizing (#23757)
     add 4d97ecec65 chore(feature flags): updating the status of a few flags (#23670)
     add b734a0f82e feat: Display both queries result in Table mode for Mixed Chart in drill by modal (#23768)
     add 35f36a20ff chore(e2e): skip the worst offender of flaky tests. (#23772)
     add b92ace46b0 fix(sqllab): Persisting tab state for saved query  (#23087)
     add 3193111d98 build(deps-dev): bump @types/node from 18.15.12 to 18.15.13 in /superset-websocket (#23765)
     add 4b3e507e8b fix(native-filters): Fix encoding of non-temporal default values (#23779)
     add 669e1802a6 fix: [chart power query] error show when user input column with x-axis (#23776)
     add adde66785c feat: Add Ocient support (#22812)
     add 6ae5388dcf fix: allow db driver distinction on enforced URI params (#23769)
     add d4c0ae34f4 fix: Context menu crashing when there is no dimension in Echarts Series charts (#23797)
     add c536d92ade fix: Docker ephemeral env (#23786)
     add f7810b6020 feat(revert): Re-introduces the RLS page (#23777)
     add 90e2b839a3 chore: Deprecates FilterBox (#23784)
     add 039740cdd4 chore: Add DRILL_BY to FEATURE_FLAGS.md (#23798)
     add be5c1b0696 build(deps-dev): bump prettier from 2.8.7 to 2.8.8 in /superset-websocket (#23789)
     add a9d0d70977 build(deps-dev): bump eslint from 8.38.0 to 8.39.0 in /superset-websocket (#23790)
     add baec9ddba7 build(deps-dev): bump @types/node from 18.15.13 to 18.16.0 in /superset-websocket (#23791)
     add 4873c0990a chore: Add tests to SQL lab button components (#22916)
     add 71106cfd97 feat: create dtype option for csv upload (#23716)
     add 742c2cd8fb fix(datasource): saving new calculated columns (#23783)
     add 7e4be7d1ea fix(sqllab): test failed due to legacy api url (#23805)
     add 60c2e7013d docs: cleanup references to `apache-superset/superset-ui` (#23796)
     add 73c1936670 Merge branch 'master' of https://github.com/apache/superset into hxgh-apiv1-sqllab-viz

No new revisions were added by this update.

Summary of changes:
 .github/workflows/chromatic-master.yml             |   2 +
 .github/workflows/docker-ephemeral-env.yml         | 124 +--
 CONTRIBUTING.md                                    |   2 +-
 RESOURCES/FEATURE_FLAGS.md                         |  14 +-
 UPDATING.md                                        |   1 +
 docs/docs/databases/ocient.mdx                     |  37 +
 docs/docs/frequently-asked-questions.mdx           |   4 +-
 docs/docs/miscellaneous/country-map-tools.mdx      |   2 +-
 .../docs/miscellaneous/native-filter-migration.mdx | 103 +++
 requirements/base.txt                              |  35 +-
 requirements/development.txt                       |   2 -
 requirements/integration.txt                       |   8 +-
 setup.py                                           |   6 +
 superset-embedded-sdk/package.json                 |   3 +-
 .../cypress/integration/dashboard/editmode.test.ts |   3 +-
 .../cypress/integration/dashboard/utils.ts         |   4 -
 .../integration/dataset/dataset_list.test.ts       |   2 +-
 .../cypress/integration/explore/utils.ts           |   7 +-
 superset-frontend/package-lock.json                |  12 +-
 superset-frontend/package.json                     |   3 +-
 .../packages/generator-superset/package.json       |   3 +-
 .../superset-ui-chart-controls/package.json        |   7 +-
 .../superset-ui-chart-controls/src/fixtures.ts     |   2 +-
 .../superset-ui-chart-controls/src/types.ts        |   2 +-
 .../test/utils/columnChoices.test.tsx              |   2 +-
 .../test/utils/defineSavedMetrics.test.tsx         |   2 +-
 .../packages/superset-ui-core/package.json         |   7 +-
 .../superset-ui-core/src/number-format/README.md   |   2 +-
 .../superset-ui-core/src/time-format/README.md     |   2 +-
 .../packages/superset-ui-demo/package.json         |   7 +-
 .../packages/superset-ui-switchboard/package.json  |   3 +-
 .../legacy-plugin-chart-calendar/package.json      |   7 +-
 .../plugins/legacy-plugin-chart-chord/package.json |   7 +-
 .../legacy-plugin-chart-country-map/package.json   |   7 +-
 .../legacy-plugin-chart-event-flow/package.json    |   7 +-
 .../legacy-plugin-chart-heatmap/package.json       |   7 +-
 .../legacy-plugin-chart-histogram/package.json     |   7 +-
 .../legacy-plugin-chart-horizon/package.json       |   7 +-
 .../legacy-plugin-chart-map-box/package.json       |   3 +-
 .../legacy-plugin-chart-paired-t-test/package.json |   7 +-
 .../package.json                                   |   7 +-
 .../legacy-plugin-chart-partition/package.json     |   7 +-
 .../legacy-plugin-chart-pivot-table/package.json   |   7 +-
 .../plugins/legacy-plugin-chart-rose/package.json  |   7 +-
 .../legacy-plugin-chart-sankey-loop/package.json   |   7 +-
 .../legacy-plugin-chart-sankey/package.json        |   7 +-
 .../legacy-plugin-chart-sunburst/package.json      |   7 +-
 .../legacy-plugin-chart-treemap/package.json       |   7 +-
 .../legacy-plugin-chart-world-map/package.json     |   7 +-
 .../legacy-preset-chart-deckgl/package.json        |   3 +-
 .../plugins/legacy-preset-chart-nvd3/package.json  |   7 +-
 .../plugins/plugin-chart-echarts/package.json      |   7 +-
 .../src/Timeseries/EchartsTimeseries.tsx           |   2 +-
 .../plugins/plugin-chart-handlebars/package.json   |   7 +-
 .../plugins/plugin-chart-pivot-table/package.json  |   7 +-
 .../plugins/plugin-chart-table/package.json        |   7 +-
 .../plugins/plugin-chart-word-cloud/package.json   |   7 +-
 .../plugins/preset-chart-xy/package.json           |   7 +-
 superset-frontend/src/SqlLab/actions/sqlLab.js     |  10 +-
 .../SqlLab/components/AceEditorWrapper/index.tsx   |  19 +-
 .../src/SqlLab/components/App/index.jsx            |   3 +-
 .../EstimateQueryCostButton.test.tsx               |  47 +-
 .../ExploreCtasResultsButton.test.tsx              |  94 +++
 .../components/ExploreCtasResultsButton/index.tsx  |   2 +-
 .../ExploreResultsButton.test.jsx                  |  67 --
 .../ExploreResultsButton.test.tsx}                 |  46 +-
 .../components/ExploreResultsButton/index.tsx      |   2 +-
 .../QueryAutoRefresh/QueryAutoRefresh.test.tsx     | 127 ++-
 .../SqlLab/components/QueryAutoRefresh/index.tsx   |  46 +-
 .../src/SqlLab/components/SaveQuery/index.tsx      |   1 -
 .../SqlLab/components/SqlEditorLeftBar/index.tsx   |  11 -
 superset-frontend/src/SqlLab/fixtures.ts           |   1 -
 superset-frontend/src/SqlLab/reducers/sqlLab.js    |  27 +-
 superset-frontend/src/SqlLab/types.ts              |   1 -
 .../src/components/AsyncAceEditor/index.tsx        |   3 +
 .../Chart/ChartContextMenu/ChartContextMenu.tsx    |   4 +-
 .../src/components/Chart/DrillBy/DrillByChart.tsx  |   1 +
 .../Chart/DrillBy/DrillByMenuItems.test.tsx        |   9 +-
 .../components/Chart/DrillBy/DrillByMenuItems.tsx  |  35 +-
 .../components/Chart/DrillBy/DrillByModal.test.tsx |  31 +-
 .../src/components/Chart/DrillBy/DrillByModal.tsx  | 230 +++--
 .../Chart/DrillBy/useResultsTableView.test.ts      | 108 +++
 .../Chart/DrillBy/useResultsTableView.tsx          |  73 ++
 .../Datasource/ChangeDatasourceModal.test.jsx      |   4 +-
 .../Datasource/ChangeDatasourceModal.tsx           |   6 +-
 .../components/Datasource/DatasourceModal.test.jsx |  12 +-
 .../src/components/Datasource/DatasourceModal.tsx  |  98 ++-
 .../DeprecatedSelect/DeprecatedSelect.tsx          |   4 +-
 .../TableSelector/TableSelector.test.tsx           |  47 --
 .../src/components/TableSelector/index.tsx         |  10 -
 superset-frontend/src/dashboard/constants.ts       |   2 +-
 .../src/explore/actions/datasourcesActions.test.ts |   4 +-
 .../src/explore/actions/saveModalActions.js        |  37 -
 .../src/explore/actions/saveModalActions.test.js   |  68 --
 .../src/explore/components/SaveModal.test.jsx      |  24 +-
 .../src/explore/components/SaveModal.tsx           | 294 ++++---
 .../DatasourceControl/DatasourceControl.test.tsx   |  23 +-
 .../DndColumnSelectControl/ColumnSelectPopover.tsx |  15 +-
 .../DndColumnSelectControl/useResizeButton.tsx     | 139 +++
 .../FilterControl/AdhocFilterEditPopover/index.jsx |   2 +-
 .../MetricControl/AdhocMetricEditPopover/index.jsx |   2 +-
 superset-frontend/src/explore/constants.ts         |   2 -
 .../src/explore/controlUtils/controlUtils.test.tsx |   2 +-
 ...etControlValuesCompatibleWithDatasource.test.ts |   2 +-
 superset-frontend/src/explore/fixtures.tsx         |   4 +-
 .../src/features/alerts/AlertReportModal.test.tsx  |   2 +-
 .../features/rls/RowLevelSecurityModal.test.tsx    | 295 +++++++
 .../src/features/rls/RowLevelSecurityModal.tsx     | 479 +++++++++++
 .../Pie/data.ts => src/features/rls/constants.ts}  |  15 +-
 .../ColorScheme.ts => src/features/rls/types.ts}   |  59 +-
 .../RowLevelSecurityList.test.tsx                  | 259 ++++++
 .../src/pages/RowLevelSecurityList/index.tsx       | 350 ++++++++
 .../src/utils/getDatasourceUid.test.ts             |   2 +-
 superset-frontend/src/views/routes.tsx             |  11 +
 .../src/visualizations/FilterBox/FilterBox.jsx     |   3 +
 .../FilterBox/FilterBoxChartPlugin.js              |   6 +-
 superset-websocket/package-lock.json               | 433 ++--------
 superset-websocket/package.json                    |   8 +-
 superset/advanced_data_type/schemas.py             |   6 +-
 superset/annotation_layers/annotations/schemas.py  |  28 +-
 superset/annotation_layers/schemas.py              |  16 +-
 superset/cachekeys/schemas.py                      |  12 +-
 superset/charts/schemas.py                         | 929 +++++++++++++--------
 superset/cli/main.py                               |   5 +-
 superset/cli/native_filters.py                     | 398 +++++++++
 superset/common/query_context_processor.py         |   2 +-
 superset/config.py                                 |  14 +-
 superset/connectors/base/models.py                 |  40 +-
 superset/connectors/sqla/models.py                 |  14 +-
 superset/connectors/sqla/views.py                  | 117 +--
 superset/dao/base.py                               |  11 +
 superset/dashboards/permalink/schemas.py           |  18 +-
 superset/dashboards/schemas.py                     | 101 ++-
 superset/databases/api.py                          |   2 +-
 superset/databases/schemas.py                      | 227 +++--
 superset/datasets/api.py                           |   8 +
 superset/datasets/commands/exceptions.py           |  17 +
 superset/datasets/commands/update.py               |  11 +
 superset/db_engine_specs/base.py                   |  44 +-
 superset/db_engine_specs/bigquery.py               |   2 +-
 superset/db_engine_specs/clickhouse.py             |  21 +-
 superset/db_engine_specs/databricks.py             |   5 +-
 superset/db_engine_specs/gsheets.py                |   6 +-
 superset/db_engine_specs/mysql.py                  |  10 +-
 superset/db_engine_specs/ocient.py                 | 342 ++++++++
 superset/db_engine_specs/redshift.py               |  40 +
 superset/explore/form_data/schemas.py              |  20 +-
 superset/explore/permalink/schemas.py              |  14 +-
 superset/explore/schemas.py                        | 174 ++--
 superset/initialization/__init__.py                |  22 +-
 ...3-27_12-30_7e67aecbf3f1_chart_ds_constraint.py} |  67 +-
 superset/models/core.py                            |   5 +-
 superset/models/sql_lab.py                         |  26 +-
 superset/reports/schemas.py                        | 107 +--
 .../api.py                                         | 298 ++++---
 .../commands}/__init__.py                          |   0
 .../commands/bulk_delete.py                        |  28 +-
 .../commands/create.py                             |  50 +-
 .../commands/exceptions.py                         |  10 +-
 .../commands/update.py                             |  56 +-
 .../utils.py => row_level_security/dao.py}         |   8 +-
 superset/row_level_security/schemas.py             | 154 ++++
 superset/sqllab/schemas.py                         |  14 +-
 .../form_view/csv_to_database_view/edit.html       |   4 +
 superset/templates/superset/models/rls/list.html   |  96 ---
 superset/temporary_cache/schemas.py                |   4 +-
 .../utils/dashboard_filter_scopes_converter.py     | 256 +++++-
 superset/views/base_api.py                         |  18 +-
 superset/views/database/forms.py                   |  10 +
 superset/views/database/views.py                   |   3 +
 superset/views/datasource/schemas.py               |   2 +-
 superset/views/datasource/views.py                 |   3 +
 superset/views/log/schemas.py                      |  23 +-
 superset/views/sql_lab/views.py                    |   2 +
 superset/viz.py                                    |   2 +
 tests/integration_tests/charts/data/api_tests.py   |  27 +
 tests/integration_tests/csv_upload_tests.py        |  44 +-
 tests/integration_tests/datasets/api_tests.py      |  50 +-
 .../db_engine_specs/redshift_tests.py              |  61 ++
 .../7e67aecbf3f1_chart_ds_constraint__tests.py     |  56 ++
 tests/integration_tests/model_tests.py             |  12 +-
 .../security/row_level_security_tests.py           | 419 +++++++++-
 tests/integration_tests/utils_tests.py             |   7 +
 tests/unit_tests/db_engine_specs/test_mssql.py     |   1 +
 tests/unit_tests/db_engine_specs/test_mysql.py     |  28 +
 tests/unit_tests/db_engine_specs/test_ocient.py    | 215 +++++
 186 files changed, 6674 insertions(+), 2478 deletions(-)
 create mode 100644 docs/docs/databases/ocient.mdx
 create mode 100644 docs/docs/miscellaneous/native-filter-migration.mdx
 create mode 100644 superset-frontend/src/SqlLab/components/ExploreCtasResultsButton/ExploreCtasResultsButton.test.tsx
 delete mode 100644 superset-frontend/src/SqlLab/components/ExploreResultsButton/ExploreResultsButton.test.jsx
 copy superset-frontend/src/{dashboard/components/nativeFilters/FilterBar/FilterConfigurationLink/FilterConfigurationLink.test.tsx => SqlLab/components/ExploreResultsButton/ExploreResultsButton.test.tsx} (51%)
 create mode 100644 superset-frontend/src/components/Chart/DrillBy/useResultsTableView.test.ts
 create mode 100644 superset-frontend/src/components/Chart/DrillBy/useResultsTableView.tsx
 create mode 100644 superset-frontend/src/explore/components/controls/DndColumnSelectControl/useResizeButton.tsx
 create mode 100644 superset-frontend/src/features/rls/RowLevelSecurityModal.test.tsx
 create mode 100644 superset-frontend/src/features/rls/RowLevelSecurityModal.tsx
 copy superset-frontend/{packages/superset-ui-demo/storybook/stories/plugins/legacy-preset-chart-nvd3/Pie/data.ts => src/features/rls/constants.ts} (83%)
 copy superset-frontend/{packages/superset-ui-core/src/color/ColorScheme.ts => src/features/rls/types.ts} (63%)
 create mode 100644 superset-frontend/src/pages/RowLevelSecurityList/RowLevelSecurityList.test.tsx
 create mode 100644 superset-frontend/src/pages/RowLevelSecurityList/index.tsx
 create mode 100644 superset/cli/native_filters.py
 create mode 100644 superset/db_engine_specs/ocient.py
 copy superset/migrations/versions/{2022-04-18_11-20_ad07e4fdbaba_rm_time_range_endpoints_from_qc_3.py => 2023-03-27_12-30_7e67aecbf3f1_chart_ds_constraint.py} (53%)
 copy superset/{annotation_layers => row_level_security}/api.py (55%)
 copy superset/{advanced_data_type => row_level_security/commands}/__init__.py (100%)
 copy superset/{css_templates => row_level_security}/commands/bulk_delete.py (69%)
 copy superset/{annotation_layers => row_level_security}/commands/create.py (54%)
 copy superset/{css_templates => row_level_security}/commands/exceptions.py (81%)
 copy superset/{databases/ssh_tunnel => row_level_security}/commands/update.py (50%)
 copy superset/{temporary_cache/utils.py => row_level_security/dao.py} (82%)
 create mode 100644 superset/row_level_security/schemas.py
 delete mode 100644 superset/templates/superset/models/rls/list.html
 create mode 100644 tests/integration_tests/migrations/7e67aecbf3f1_chart_ds_constraint__tests.py
 create mode 100644 tests/unit_tests/db_engine_specs/test_ocient.py