You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by jo...@apache.org on 2023/03/15 10:10:42 UTC

[superset] branch john-bodley--native-filters-dataset-columns updated (64081fa2c9 -> 419f4840e0)

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

johnbodley pushed a change to branch john-bodley--native-filters-dataset-columns
in repository https://gitbox.apache.org/repos/asf/superset.git


    from 64081fa2c9 chore(native-filters): Fetch only the dataset columns
     add ed11123709 chore(dashboard): Cleanup example dashboard filter scopes (#23260)
     add a3d49ca335 fix(dashboard): Infinite load when filter with default first value is out of scope (#23299)
     add e0d976dcca fix(clickhouse):  Update to working clickhouse-connect version (#23296)
     add 376ad39576 chore: upgrade @ant-design/icons for react upgrade (#22890)
     add dae6a9f701 docs: typo 'admnistrators' in security.mdx (#23166)
     add 9df7812e9c build(deps-dev): bump eslint-config-prettier from 8.6.0 to 8.7.0 in /superset-websocket (#23292)
     add 56380027f4 build(deps-dev): bump @types/node from 18.14.1 to 18.14.6 in /superset-websocket (#23281)
     add 0a588d11a5 chore: bump docusaurus to latest stable (#23317)
     add eb3d5602c2 docs: add lost _filters param docs (#23316)
     add 57db8f938b feat(docs): adds BugHerd to documentation site. (#23287)
     add 989fe27a0f chore: log different selenium timeout errors differently (#23290)
     add 33b758d716 docs: improve API v1 migration documentation (#23298)
     add 2cf75cc0ce docs(alerts and reports): Update ExecutorType class (#23323)
     add 6311b40329 build(deps-dev): bump @typescript-eslint/parser from 5.53.0 to 5.54.1 in /superset-websocket (#23294)
     add c2b282ac71 feat(dashboard): Refactor FiltersBadge (#23286)
     add a8d5cb89a8 chore: use util test env for init check (#23325)
     add a591130e0b fix(trino): normalize non-iso timestamps (#23339)
     add 78ee60e227 fix(dashboard): Cross filters with time shifted series (#23347)
     add f3055fcaff feat(dashboard): Change default opacity of icon in FiltersBadge (#23350)
     add b99d38dfef fix: dashboard DAO small code improvement (#23348)
     add 82cadccced chore: Remove Cross Filter scoping modal (#23216)
     add 3919ca6060 fix(dashboard): deepmerge htmlSchemaOverrides (#23329)
     add e83f4e6f79 fix(trino): Disallow alias to source column (#23324)
     add d415eed717 fix(examples): Cleanup granularity_sqla column (#23322)
     add 9ae81b7c33 fix(sqllab): empty large query results from localStorage (#23302)
     add b820eb8235 chore: Update pre-commit packages (#23173)
     add b90a11191f fix(safari): remove autocomplete in table select (#23361)
     add 63513a5873 fix(chart-controls): Error if x_axis_sort and timeseries_limit_metric are included in main metrics (#23365)
     add db95a93f43 feat(native-filters): allow cascading from time and numeric filters (#23319)
     add df9a5bb6df build(deps-dev): bump @types/node from 18.14.6 to 18.15.3 in /superset-websocket (#23360)
     add d2c1fb95ec fix(native-filters): Caching scope (#23314)
     add 1b95da7487 fix: table schema permissions (#23356)
     add 1874f9a3b6 fix: dataset_macro (#23376)
     add 9920ab3fd9 chore: Migrate /superset/schemas_access_for_file_upload to v1 (#23227)
     add 419f4840e0 Merge branch 'master' into john-bodley--native-filters-dataset-columns

No new revisions were added by this update.

Summary of changes:
 .github/workflows/superset-python-unittest.yml     |   2 +
 .pre-commit-config.yaml                            |   9 +-
 RELEASING/changelog.py                             |   2 +-
 UPDATING.md                                        |  11 ++
 docs/docs/installation/alerts-reports.mdx          |  14 +-
 docs/docs/installation/sql-templating.mdx          |  47 ++++-
 docs/docs/security.mdx                             |   2 +-
 docs/docusaurus.config.js                          |   9 +-
 docs/package.json                                  |  14 +-
 docs/static/resources/openapi.json                 | 158 ++++++++++-----
 setup.py                                           |   2 +-
 .../cypress/integration/dashboard/load.test.ts     |   3 +-
 .../integration/dashboard/nativeFilters.test.ts    |  13 +-
 superset-frontend/package-lock.json                |  83 ++++++--
 superset-frontend/package.json                     |   2 +-
 .../superset-ui-chart-controls/package.json        |   2 +-
 .../src/components/ColumnOption.tsx                |   8 +-
 .../src/components/MetricOption.tsx                |   8 +-
 .../src/operators/utils/extractExtraMetrics.ts     |   5 +-
 .../src/shared-controls/customControls.tsx         |  12 +-
 .../operators/utils/extractExtraMetrics.test.ts    |  32 ++++
 .../src/components/SafeMarkdown.tsx                |  16 +-
 .../superset-ui-core/src/time-format/index.ts      |   2 +
 .../src/time-format/utils/normalizeTimestamp.ts}   |  14 +-
 .../test/components/SafeMarkdown.test.ts}          |  39 ++--
 .../time-format/utils/normalizeTimestamp.test.ts   |  43 +++++
 .../src/Timeseries/transformProps.ts               |  15 +-
 .../plugin-chart-echarts/src/Timeseries/types.ts   |   1 +
 .../test/Timeseries/transformProps.test.ts         |  31 +++
 .../plugins/plugin-chart-pivot-table/package.json  |   2 +-
 .../src/utils/DateWithFormatter.ts                 |  21 +-
 .../SqlEditorLeftBar/SqlEditorLeftBar.test.jsx     |   4 +-
 superset-frontend/src/SqlLab/constants.ts          |   1 +
 .../src/SqlLab/utils/emptyQueryResults.test.js     |  39 +++-
 .../SqlLab/utils/reduxStateToLocalStorageHelper.js |  21 +-
 .../src/assets/images/icons/filter.svg             |   5 +-
 .../DatabaseSelector/DatabaseSelector.test.tsx     |  12 +-
 .../src/components/DatabaseSelector/index.tsx      |   8 +-
 .../src/components/EmptyState/index.tsx            |  24 +--
 .../Table/cell-renderers/NullCell/index.tsx        |   8 +-
 .../TableSelector/TableSelector.test.tsx           |  16 +-
 .../src/components/TableSelector/index.tsx         |   4 +-
 .../CrossFilterScopingForm.test.tsx                |  60 ------
 .../CrossFilterScopingForm/index.tsx               |  57 ------
 .../CrossFilterScopingModal.tsx                    | 112 -----------
 .../components/CrossFilterScopingModal/types.ts    |  24 ---
 .../CrossFilterScopingModal/utils/index.ts         |  29 ---
 .../CrossFilterScopingModal/utils/utils.test.ts    |  34 ----
 .../DetailsPanel/DetailsPanel.test.tsx             |  80 +-------
 .../components/FiltersBadge/DetailsPanel/index.tsx | 211 +++++----------------
 .../FiltersBadge/FilterIndicator/index.tsx         |  49 ++---
 .../components/FiltersBadge/FiltersBadge.test.tsx  |  71 +------
 .../dashboard/components/FiltersBadge/Styles.tsx   | 147 ++++++--------
 .../dashboard/components/FiltersBadge/index.tsx    | 100 +++++-----
 .../src/dashboard/components/SliceHeader/index.tsx |  40 ++--
 .../components/SliceHeaderControls/index.tsx       |  46 +----
 .../FilterBar/CrossFilters/Vertical.tsx            |  10 +-
 .../FilterBar/CrossFilters/selectors.ts            |  46 +++--
 .../FilterBar/FilterControls/FilterControls.tsx    |  29 +--
 .../FilterBar/FiltersDropdownContent/index.tsx     |  13 +-
 .../FiltersOutOfScopeCollapsible/index.tsx         |   3 +
 .../nativeFilters/FilterBar/Horizontal.tsx         |   9 +-
 .../nativeFilters/FilterCard/NameRow.tsx           |  18 +-
 .../FiltersConfigForm/ColumnSelect.tsx             |  18 +-
 .../FiltersConfigForm/DatasetSelect.tsx            |  13 +-
 .../FiltersConfigForm/DependencyList.tsx           |   9 +-
 .../FiltersConfigForm/FiltersConfigForm.tsx        |  94 ++++-----
 .../FiltersConfigModal/FiltersConfigForm/utils.ts  |  16 +-
 .../FiltersConfigModal/FiltersConfigModal.tsx      |  17 +-
 .../components/nativeFilters/selectors.ts          |  93 +++++----
 .../src/explore/components/ControlHeader.tsx       |  10 +-
 .../components/controls/VizTypeControl/index.tsx   |  24 +--
 .../src/views/CRUD/alert/AlertReportModal.tsx      |   7 +-
 .../AddDataset/LeftPanel/LeftPanel.test.tsx        |  16 +-
 superset-frontend/src/views/components/Menu.tsx    |   7 +-
 .../src/visualizations/TimeTable/transformProps.ts |   2 +
 superset-websocket/package-lock.json               | 186 +++++++++++++++---
 superset-websocket/package.json                    |   6 +-
 superset/charts/commands/export.py                 |   1 -
 superset/charts/schemas.py                         |   1 -
 superset/cli/test.py                               |   1 -
 superset/commands/export/assets.py                 |   1 -
 superset/commands/export/models.py                 |   1 -
 superset/common/query_object.py                    |   2 -
 superset/config.py                                 |  13 +-
 superset/connectors/sqla/models.py                 |   9 +-
 superset/constants.py                              |   1 +
 superset/dashboards/commands/export.py             |   1 -
 superset/dashboards/dao.py                         |   6 +-
 superset/databases/api.py                          |  60 +++++-
 superset/databases/commands/export.py              |   1 -
 superset/databases/commands/test_connection.py     |   1 -
 superset/databases/schemas.py                      |  12 +-
 superset/datasets/commands/export.py               |   1 -
 superset/datasource/dao.py                         |   1 -
 superset/db_engine_specs/aurora.py                 |   2 -
 superset/db_engine_specs/base.py                   |   4 +
 superset/db_engine_specs/crate.py                  |   1 -
 superset/db_engine_specs/databricks.py             |   1 -
 superset/db_engine_specs/dremio.py                 |   1 -
 superset/db_engine_specs/drill.py                  |   2 +
 superset/db_engine_specs/elasticsearch.py          |   2 -
 superset/db_engine_specs/gsheets.py                |   1 -
 superset/db_engine_specs/hive.py                   |   5 +-
 superset/db_engine_specs/mysql.py                  |   2 +
 superset/db_engine_specs/netezza.py                |   1 -
 superset/db_engine_specs/presto.py                 |   8 +-
 superset/db_engine_specs/rockset.py                |   1 -
 superset/db_engine_specs/snowflake.py              |   3 +-
 superset/db_engine_specs/trino.py                  |   1 +
 .../configs/charts/Video_Game_Sales_Filter.yaml    |   2 +-
 .../dashboards/COVID_Vaccine_Dashboard.yaml        |   6 +-
 .../dashboards/FCC_New_Coder_Survey_2018.yaml      |   4 +-
 .../configs/dashboards/Sales_Dashboard.yaml        |   6 +-
 .../configs/dashboards/Video_Game_Sales.yaml       |   8 +-
 superset/examples/world_bank.py                    |   1 -
 superset/exceptions.py                             |   2 +-
 superset/initialization/__init__.py                |   5 +-
 superset/jinja_context.py                          |   4 +-
 .../versions/2017-10-03_14-37_4736ec66ce19_.py     |   5 -
 ...8c4473c581_allow_multi_schema_metadata_fetch.py |   1 -
 .../versions/2018-03-20_19-47_f231d82b9b26_.py     |   2 -
 ...-07-20_16-08_937d04c16b64_update_datasources.py |   2 -
 .../2019-10-10_13-52_1495eb914ad3_time_range.py    |   1 -
 ...27_08-25_31b2a1039d4a_drop_tables_constraint.py |   1 -
 ...3605f370a_fix_schemas_allowed_for_csv_upload.py |   1 -
 ...cbaac5_change_datatype_of_type_in_basecolumn.py |   1 -
 ...e5f1dacd_rename_to_schemas_allowed_for_file_.py |   1 -
 ...14-38_a9422eeaae74_new_dataset_models_take_2.py |  10 +-
 superset/models/dashboard.py                       |   4 +-
 superset/models/sql_lab.py                         |   2 -
 superset/queries/saved_queries/commands/export.py  |   1 -
 superset/reports/commands/base.py                  |   1 -
 superset/security/manager.py                       |  17 +-
 superset/sql_parse.py                              |   2 -
 superset/sqllab/exceptions.py                      |  12 +-
 superset/sqllab/query_render.py                    |   3 +-
 superset/sqllab/sql_json_executer.py               |   3 +-
 superset/tags/models.py                            |   5 -
 superset/tasks/async_queries.py                    |  12 +-
 .../form_view/database_schemas_selector.html       |   5 +-
 superset/utils/celery.py                           |   1 +
 superset/utils/core.py                             |   9 +-
 .../utils/dashboard_filter_scopes_converter.py     |   2 +-
 superset/utils/decorators.py                       |   2 +-
 superset/utils/machine_auth.py                     |   2 +-
 superset/utils/webdriver.py                        |  54 ++++--
 superset/views/base.py                             |  13 +-
 superset/views/base_api.py                         |   5 +-
 superset/views/chart/mixin.py                      |   1 -
 superset/views/core.py                             |  51 ++---
 superset/views/dashboard/mixin.py                  |   1 -
 superset/viz.py                                    |   1 -
 tests/common/logger_utils.py                       |   1 -
 tests/integration_tests/charts/data/api_tests.py   |   3 -
 tests/integration_tests/cli_tests.py               |   1 -
 tests/integration_tests/csv_upload_tests.py        |   2 +-
 tests/integration_tests/databases/api_tests.py     |  41 ++++
 tests/integration_tests/datasets/api_tests.py      |   1 -
 .../db_engine_specs/bigquery_tests.py              |   1 +
 .../integration_tests/fixtures/energy_dashboard.py |   1 -
 tests/integration_tests/fixtures/users.py          |   1 -
 tests/integration_tests/reports/alert_tests.py     |   2 -
 tests/integration_tests/reports/api_tests.py       |   4 -
 tests/integration_tests/reports/commands_tests.py  |   9 -
 tests/integration_tests/reports/scheduler_tests.py |   2 -
 .../security/row_level_security_tests.py           |   1 -
 tests/integration_tests/thumbnails_tests.py        |   1 -
 tests/unit_tests/explore/utils_test.py             |  21 +-
 tests/unit_tests/jinja_context_test.py             |  41 +++-
 .../pandas_postprocessing/test_flatten.py          |   8 +-
 .../unit_tests/security}/__init__.py               |   0
 tests/unit_tests/security/manager_test.py          |  91 +++++++++
 173 files changed, 1603 insertions(+), 1519 deletions(-)
 copy superset-frontend/{plugins/plugin-chart-echarts/src/utils/convertInteger.ts => packages/superset-ui-core/src/time-format/utils/normalizeTimestamp.ts} (77%)
 copy superset-frontend/{plugins/plugin-chart-table/src/DataTable/utils/useMountedMemo.ts => packages/superset-ui-core/test/components/SafeMarkdown.test.ts} (54%)
 create mode 100644 superset-frontend/packages/superset-ui-core/test/time-format/utils/normalizeTimestamp.test.ts
 delete mode 100644 superset-frontend/src/dashboard/components/CrossFilterScopingModal/CrossFilterScopingForm/CrossFilterScopingForm.test.tsx
 delete mode 100644 superset-frontend/src/dashboard/components/CrossFilterScopingModal/CrossFilterScopingForm/index.tsx
 delete mode 100644 superset-frontend/src/dashboard/components/CrossFilterScopingModal/CrossFilterScopingModal.tsx
 delete mode 100644 superset-frontend/src/dashboard/components/CrossFilterScopingModal/types.ts
 delete mode 100644 superset-frontend/src/dashboard/components/CrossFilterScopingModal/utils/index.ts
 delete mode 100644 superset-frontend/src/dashboard/components/CrossFilterScopingModal/utils/utils.test.ts
 copy {superset/advanced_data_type => tests/unit_tests/security}/__init__.py (100%)
 create mode 100644 tests/unit_tests/security/manager_test.py