This is an automated email from the ASF dual-hosted git repository.
diegopucci pushed a change to branch chore/color-scheme-updates
in repository https://gitbox.apache.org/repos/asf/superset.git
from 6af10602a4 Lint
add c362c0ed11 chore: Updates CHANGELOG.md and UPDATING.md with 2.0.0
changes (#20709)
add 5beb1aa2f5 docs: WIP release notes for 2.0 (#20490)
add 2cb4fd31f1 refactor(test): add login_as_admin in global conftest
(#20703)
add 5285f3d640 Update api.py (#20711)
add 08d2d37dbc chore: add apache header for 2.0 changelog (#20713)
add a6abcd9ea8 fix: Address regression in main_dttm_col for non-dnd
(#20712)
add 4495868b44 fix: Fixes the instructions to publish to PyPi (#20710)
add c70d102b73 fix: logger message (#20714)
add e5e8867394 feat: Visualize SqlLab.Query model data in Explore 📈
(#20281)
add bbaa4cc65d use existing row when id is found (#20661)
add 883241070f fix: make max-requests and max-requests-jitter adjustable
(#20733)
add 776d211dae docs: add Platzi.com to users list (#20705)
add 5990ea639e fix: getting default value in run-server.sh (#20736)
add 510c1c4817 fix: set reference to columns properly for sqllab ->
explore (#20747)
add 92f3621c75 fix: Error when saving datasource from Explore (#20749)
add 1101922178 fix change dataset (#20751)
add 90600d1883 Fixing broken node build (#20727)
add e60083b45b chore: upgrade SQLAlchemy to 1.4 (#19890)
add 115ab700df fix(sql lab): MultiSelector component render twice (#20706)
add e2d3ea831a fix(db): use paginated_update for area chart migration
(#20761)
add 8c0ac9017f fix: Presto _show_columns return type (#20757)
add e1fd90697c fix(csv): Do not coerce persisted data integer columns to
float (#20760)
add 84d4302628 fix(explore): Fix chart standalone URL for report/thumbnail
generation (#20673)
add 1d9d505a6e fix: datasourcedao datasource not found error (#20725)
add a64cdec8c2 fix(db): set slices.query_context to MEDIUMTEXT for mysql
(#20779)
add bb5b8e4c4f chore: add coverage command in package.json (#20769)
add 5ed85f59a1 Fix missing metadata. (#20684)
add 9c7bcfcead fix: core coverage and add a coverage step in workflow
(#20784)
add 81bd4968d0 fix: set allow `filter_select` for Query objects in Explore
(#20754)
add 2a4c7cfb2a chore: add user agent to Databricks requests (#20660)
add d925b0c883 fix(heatmap): add detail descriptions for heatmap
'normalize across' (#20566)
add d90b973235 fix(plugin-chart-echarts): layout broken when resizing
(#20783)
add 2c5201fa4b fix: Databricks views showing up as tables (#20674)
add 1debacaaca feat(dashboard): Make FilterBar width resizable (#20778)
add 5a04a28518 refactor: Blossom metric fields for dataset API column
selection (#20732)
add 84b852c457 fix: properly set `owners` to Sqlatable.owners_data inside
payload (#20794)
add 3311128c5e fix: Reverts #20749 and #20645 (#20796)
add 922b4b8d1d fix: unexpected commit causes pytest failure (#20780)
add af1bddffad fix(explore): Adhoc columns don't display correctly (#20802)
add 34278c2d56 fix: Redirects old Explore URLs to the new one (#20812)
add 279ab954b1 fix: chart empty state & result panel when multiple queries
are executed display incorrectly (#20816)
add fe9eb58ede chore: bumps the handlebars plugin package version to match
the family. (#20813)
add 51869f32ac Temporal X Axis values are not properly displayed if the
time column has a custom label defined (#20819)
add 39545352d2 chore: update Pillow to 9.1.1 (#20775)
add f011abae2b feat: the samples endpoint supports filters and pagination
(#20683)
add 6e0ddcf848 fix: [explore][mixed time series chart] when user change
size of view query window, query B part will disappear (#20750)
add 7495cdbfe0 feat: Create Chart onClick Functionality (#20809)
add 2c010974e8 fix: Timeseries visualization with Chart Source = Query
(#20795)
add 2263a76f4d remove eleement reference (#20830)
add 4ffa3c22d1 feat: Add Türkiye Map to Country Map (#20801)
add 3fb5c79d77 fix: invalid dataset schema (#20826)
add 557cf4b739 fix(dashboard): add toast if JSON metadata is invalid
(#20823)
add 9bf7ed58cd fix(plugin-chart-echarts): bar chart overflow (#20805)
add 644148b37d chore: add SAMPLES_ROW_LIMIT in frontend conf (#20841)
add 0945d4a2f4 feat: Pass dashboard context to explore through local
storage (#20743)
add 7a1aa79c52 fix: Ensure consistent rollback logic (#20811)
add 8bfc9b76a6 fix: Use cache_manager.cache rather than
cache_manager.data_cache for caching table metadata (#20726)
add e3c6380258 chore: Change Button background color from primary.dark1 to
primary.base (#20846)
add 1518409d35 Merge
No new revisions were added by this update.
Summary of changes:
.github/workflows/superset-frontend.yml | 5 +
CHANGELOG.md | 494 ++++++++
RELEASING/README.md | 9 +-
RELEASING/release-notes-2-0/README.md | 152 +++
RELEASING/release-notes-2-0/changelog.md | 491 ++++++++
RESOURCES/INTHEWILD.md | 1 +
UPDATING.md | 17 +-
docker/docker-frontend.sh | 5 +-
docker/run-server.sh | 2 +
docs/docs/databases/databricks.mdx | 5 +-
docs/docs/installation/sql-templating.mdx | 2 +-
requirements/base.txt | 4 +-
requirements/development.txt | 2 +-
requirements/docker.txt | 2 -
setup.py | 4 +-
.../cypress/integration/explore/control.test.ts | 4 +-
superset-frontend/package-lock.json | 1 +
superset-frontend/package.json | 2 +
.../src/components/labelUtils.tsx | 6 +-
.../src/shared-controls/index.tsx | 4 +-
.../superset-ui-chart-controls/src/types.ts | 3 -
.../src/chart/components/SuperChart.tsx | 12 +-
.../src/chart/models/ChartMetadata.ts | 5 +
.../superset-ui-core/src/query/DatasourceKey.ts | 4 +-
.../superset-ui-core/src/query/types/Column.ts | 4 +-
.../superset-ui-core/src/query/types/Dashboard.ts | 4 +
.../superset-ui-core/src/query/types/Datasource.ts | 3 +-
.../superset-ui-core/src/query/types/Query.ts | 1 +
.../test/query/DatasourceKey.test.ts | 15 +-
.../test/query/buildQueryContext.test.ts | 11 -
.../test/query/types/Datasource.test.ts} | 30 +-
.../src/countries.ts | 2 +
.../src/countries/turkey.geojson | 87 ++
.../src/{controlPanel.ts => controlPanel.tsx} | 22 +-
.../src/utils/explore.js | 2 +-
.../src/vendor/superset/exploreUtils.js | 2 +-
.../src/MixedTimeseries/index.ts | 1 +
.../src/Timeseries/transformProps.ts | 3 +-
.../plugin-chart-echarts/src/components/Echart.tsx | 22 +-
.../plugin-chart-echarts/src/utils/series.ts | 3 -
.../plugins/plugin-chart-handlebars/package.json | 2 +-
.../spec/fixtures/mockNativeFilters.ts | 1 +
.../spec/fixtures/mockSliceEntities.js | 22 +-
superset-frontend/spec/helpers/reducerIndex.ts | 2 +-
superset-frontend/spec/helpers/setup.ts | 2 +
superset-frontend/spec/helpers/testing-library.tsx | 24 +-
superset-frontend/src/SqlLab/actions/sqlLab.js | 17 +-
.../src/SqlLab/actions/sqlLab.test.js | 25 +-
.../src/SqlLab/components/ResultSet/index.tsx | 45 +-
.../SaveDatasetModal/SaveDatasetModal.test.tsx | 33 +-
.../SqlLab/components/SaveDatasetModal/index.tsx | 89 +-
.../src/SqlLab/components/SaveQuery/index.tsx | 6 +-
.../components/ScheduleQueryButton/index.tsx | 12 +-
.../SqlLab/components/SqlEditorLeftBar/index.tsx | 2 +-
.../src/SqlLab/components/TableElement/index.tsx | 10 +-
superset-frontend/src/SqlLab/reducers/sqlLab.js | 8 +-
.../src/SqlLab/reducers/sqlLab.test.js | 4 +-
superset-frontend/src/SqlLab/types.ts | 13 +-
superset-frontend/src/components/Button/index.tsx | 4 +-
superset-frontend/src/components/Chart/Chart.jsx | 2 +-
.../src/components/Chart/chartAction.js | 11 +-
.../src/components/Chart/chartReducer.ts | 4 +-
.../src/components/EditableTitle/index.tsx | 23 +-
.../ErrorMessage/ErrorMessageWithStackTrace.tsx | 2 +-
superset-frontend/src/components/Modal/Modal.tsx | 10 +-
.../ModalTrigger/ModalTrigger.stories.tsx | 8 +-
.../src/components/ModalTrigger/index.jsx | 129 --
.../src/components/ModalTrigger/index.tsx | 130 ++
superset-frontend/src/constants.ts | 6 +-
.../src/dashboard/actions/dashboardState.js | 2 +-
.../datasources.ts} | 40 +-
superset-frontend/src/dashboard/actions/hydrate.js | 27 +
.../src/dashboard/actions/sliceEntities.js | 5 +-
.../CrossFilterScopingModal.tsx | 14 +-
.../src/dashboard/components/Dashboard.test.jsx | 3 +-
.../DashboardBuilder/DashboardBuilder.test.jsx | 196 ---
.../DashboardBuilder/DashboardBuilder.test.tsx | 280 +++++
.../DashboardBuilder/DashboardBuilder.tsx | 80 +-
.../useStoredFilterBarWidth.test.ts | 85 ++
.../DashboardBuilder/useStoredFilterBarWidth.ts | 51 +
.../dashboard/components/FiltersBadge/selectors.ts | 14 +-
.../src/dashboard/components/Header/index.jsx | 1 +
.../dashboard/components/PropertiesModal/index.tsx | 9 +-
.../dashboard/components/RefreshIntervalModal.tsx | 12 +-
.../src/dashboard/components/SaveModal.tsx | 16 +-
.../components/SliceHeader/SliceHeader.test.tsx | 61 +-
.../src/dashboard/components/SliceHeader/index.tsx | 17 +-
.../SliceHeaderControls.test.tsx | 142 +--
.../components/SliceHeaderControls/index.tsx | 28 +-
.../components/filterscope/FilterScopeModal.tsx | 12 +-
.../FilterBar/ActionButtons/ActionButtons.test.tsx | 26 +
.../FilterBar/ActionButtons/index.tsx | 10 +-
.../components/nativeFilters/FilterBar/index.tsx | 13 +-
.../FiltersConfigModal/FiltersConfigForm/utils.ts | 4 +-
.../dashboard/components/nativeFilters/utils.ts | 3 +-
superset-frontend/src/dashboard/constants.ts | 5 +-
.../src/dashboard/containers/Chart.jsx | 6 +-
.../src/dashboard/containers/Dashboard.ts | 4 +-
.../src/dashboard/containers/DashboardPage.tsx | 100 +-
.../reducers/datasources.ts} | 20 +-
superset-frontend/src/dashboard/reducers/types.ts | 1 +
superset-frontend/src/dashboard/types.ts | 13 +-
.../dashboard/util/activeAllDashboardFilters.ts | 87 +-
.../src/dashboard/util/activeDashboardFilters.js | 4 +-
.../util/charts/getFormDataWithExtraFilters.ts | 22 +-
.../util/getFormDataWithExtraFilters.test.ts | 10 +-
superset-frontend/src/explore/ExplorePage.tsx | 55 +-
.../src/explore/actions/datasourcesActions.test.ts | 85 ++
.../actions/datasourcesActions.ts} | 51 +-
.../src/explore/actions/exploreActions.ts | 13 -
.../src/explore/actions/hydrateExplore.test.ts | 3 +
.../src/explore/actions/hydrateExplore.ts | 12 +-
.../DataTablesPane/components/SamplesPane.tsx | 4 +-
.../DataTablesPane/components/useResultsPane.tsx | 40 +-
.../test/ResultsPaneOnDashboard.test.tsx | 15 +-
.../DataTablesPane/test/SamplesPane.test.tsx | 41 +-
.../src/explore/components/DataTablesPane/utils.ts | 24 -
.../DatasourcePanel/DatasourcePanel.test.tsx | 17 +-
.../components/DatasourcePanel/fixtures.tsx | 3 +-
.../explore/components/DatasourcePanel/index.tsx | 187 +--
.../src/explore/components/ExploreAlert.tsx | 9 +-
.../src/explore/components/ExploreChartPanel.jsx | 49 +
.../explore/components/ExploreChartPanel.test.jsx | 9 +
.../ExploreViewContainer.test.tsx | 14 +-
.../components/ExploreViewContainer/index.jsx | 18 +-
.../src/explore/components/SaveModal.tsx | 2 +-
.../DatasourceControl/DatasourceControl.test.jsx | 59 +-
.../DatasourceControl/DatasourceControl.test.tsx | 2 +-
.../controls/DatasourceControl/index.jsx | 146 ++-
.../DndColumnSelectControl/ColumnSelectPopover.tsx | 2 +-
.../DndColumnSelect.test.tsx | 20 +-
.../src/explore/components/controls/ViewQuery.tsx | 76 ++
.../explore/components/controls/ViewQueryModal.tsx | 53 +-
.../components/controls/ViewQueryModalFooter.tsx | 83 ++
.../controls/VizTypeControl/VizTypeGallery.tsx | 2 +-
.../useExploreAdditionalActionsMenu/index.jsx | 4 +-
.../getFormDataFromDashboardContext.test.ts | 212 ++++
.../getFormDataWithDashboardContext.ts | 191 +++
.../reducers/datasourcesReducer.ts} | 29 +-
superset-frontend/src/explore/types.ts | 27 -
.../src/hooks/apiResources/dashboards.ts | 5 +-
superset-frontend/src/reduxUtils.ts | 3 +-
.../types/DashboardContextForExplore.ts} | 49 +-
.../columnType.js => utils/datasourceUtils.js} | 11 +-
superset-frontend/src/utils/localStorageHelpers.ts | 5 +
superset-frontend/src/utils/urlUtils.ts | 6 +-
.../views/CRUD/data/dataset/DatasetList.test.jsx | 2 +-
.../views/CRUD/data/query/QueryPreviewModal.tsx | 54 +-
.../data/savedquery/SavedQueryPreviewModal.tsx | 54 +-
.../src/views/components/RightMenu.tsx | 12 +-
superset-frontend/src/views/menu.tsx | 5 +-
superset-frontend/src/views/store.ts | 61 +-
superset/annotation_layers/annotations/dao.py | 3 +-
superset/annotation_layers/dao.py | 3 +-
superset/charts/dao.py | 3 +-
superset/commands/importers/v1/assets.py | 1 -
superset/commands/importers/v1/examples.py | 1 -
superset/common/query_actions.py | 8 +-
superset/common/query_context_factory.py | 5 +-
superset/common/query_context_processor.py | 14 +-
superset/connectors/sqla/models.py | 36 +-
superset/connectors/sqla/views.py | 2 +-
superset/constants.py | 2 +
superset/dashboards/api.py | 4 +-
.../dashboards/commands/importers/v1/__init__.py | 1 -
superset/dashboards/dao.py | 3 +-
superset/dashboards/schemas.py | 2 +-
superset/datasets/api.py | 86 +-
superset/datasets/commands/samples.py | 80 --
superset/datasource/dao.py | 8 +
superset/db_engine_specs/__init__.py | 2 +-
superset/db_engine_specs/base.py | 34 +-
superset/db_engine_specs/databricks.py | 33 +-
superset/db_engine_specs/drill.py | 19 +-
superset/db_engine_specs/gsheets.py | 8 +-
superset/db_engine_specs/hive.py | 14 +-
superset/db_engine_specs/mysql.py | 6 +-
superset/db_engine_specs/presto.py | 13 +-
superset/db_engine_specs/snowflake.py | 6 +-
superset/db_engine_specs/trino.py | 8 +-
superset/examples/birth_names.py | 3 +
superset/explore/commands/get.py | 10 +-
superset/explore/exceptions.py | 16 +-
.../shared/migrate_viz}/__init__.py | 1 +
.../shared/migrate_viz/base.py} | 133 +-
.../migrations/shared/migrate_viz/processors.py | 55 +
superset/migrations/shared/utils.py | 11 +-
...4fbb_add_type_to_native_filter_configuration.py | 2 +-
..._13-00_c747c78868b6_migrating_legacy_treemap.py | 72 +-
...-07_14-00_06e1e70058c7_migrating_legacy_area.py | 71 +-
...16_a39867932713_query_context_to_mediumtext.py} | 32 +-
superset/models/core.py | 24 +-
superset/models/helpers.py | 1272 +++++++++++++++++++-
superset/models/sql_lab.py | 112 +-
superset/models/sql_types/presto_sql_types.py | 2 +-
superset/queries/saved_queries/dao.py | 3 +-
superset/reports/commands/execute.py | 2 +-
superset/reports/dao.py | 6 +-
superset/sql_lab.py | 1 +
superset/templates/email/role_extended.txt | 2 +-
superset/templates/email/role_granted.txt | 2 +-
superset/utils/core.py | 41 +-
superset/utils/database.py | 10 +-
superset/utils/encrypt.py | 6 +-
superset/utils/mock_data.py | 2 -
superset/utils/webdriver.py | 1 -
superset/views/base.py | 1 +
superset/views/core.py | 24 +-
superset/views/datasource/schemas.py | 32 +-
superset/views/datasource/utils.py | 115 ++
superset/views/datasource/views.py | 24 +
superset/views/redirects.py | 39 +-
.../advanced_data_type/api_tests.py | 18 +-
tests/integration_tests/base_tests.py | 19 +-
tests/integration_tests/cachekeys/api_tests.py | 28 +-
tests/integration_tests/celery_tests.py | 87 +-
tests/integration_tests/charts/api_tests.py | 20 +-
tests/integration_tests/config_tests.py | 173 ---
tests/integration_tests/conftest.py | 138 ++-
tests/integration_tests/core_tests.py | 31 +-
tests/integration_tests/csv_upload_tests.py | 52 +-
tests/integration_tests/dashboard_tests.py | 23 +-
.../dashboards/filter_sets/create_api_tests.py | 9 +-
.../dashboards/filter_sets/delete_api_tests.py | 2 +-
.../dashboards/filter_sets/get_api_tests.py | 2 +-
.../dashboards/filter_sets/update_api_tests.py | 2 +-
.../dashboards/filter_state/api_tests.py | 227 ++--
.../dashboards/permalink/api_tests.py | 36 +-
tests/integration_tests/datasets/api_tests.py | 305 +++--
tests/integration_tests/datasource_tests.py | 196 ++-
.../db_engine_specs/base_engine_spec_tests.py | 8 +-
.../db_engine_specs/bigquery_tests.py | 4 +-
.../db_engine_specs/presto_tests.py | 27 +-
tests/integration_tests/explore/api_tests.py | 53 +-
.../explore/form_data/api_tests.py | 174 +--
.../explore/permalink/api_tests.py | 45 +-
.../fixtures/birth_names_dashboard.py | 30 +-
tests/integration_tests/fixtures/datasource.py | 2 +-
tests/integration_tests/import_export_tests.py | 46 +-
.../06e1e70058c7_migrate_legacy_area__tests.py} | 18 +-
...747c78868b6_migrating_legacy_treemap__tests.py} | 14 +-
tests/integration_tests/model_tests.py | 5 +-
tests/integration_tests/query_context_tests.py | 2 +-
tests/integration_tests/reports/commands_tests.py | 10 +-
tests/integration_tests/sqla_models_tests.py | 3 +-
tests/integration_tests/sqllab_tests.py | 1 +
tests/integration_tests/test_app.py | 17 +-
tests/unit_tests/config_test.py | 330 +++++
tests/unit_tests/conftest.py | 6 +-
.../datasets/commands/importers/v1/import_test.py | 131 +-
tests/unit_tests/datasets/test_models.py | 1 -
tests/unit_tests/db_engine_specs/test_drill.py | 16 +-
tests/unit_tests/utils/urls_tests.py | 4 +-
253 files changed, 7545 insertions(+), 2643 deletions(-)
create mode 100644 RELEASING/release-notes-2-0/README.md
create mode 100644 RELEASING/release-notes-2-0/changelog.md
copy superset-frontend/{src/views/CRUD/dashboard/types.ts =>
packages/superset-ui-core/test/query/types/Datasource.test.ts} (61%)
create mode 100644
superset-frontend/plugins/legacy-plugin-chart-country-map/src/countries/turkey.geojson
rename
superset-frontend/plugins/legacy-plugin-chart-heatmap/src/{controlPanel.ts =>
controlPanel.tsx} (92%)
delete mode 100644 superset-frontend/src/components/ModalTrigger/index.jsx
create mode 100644 superset-frontend/src/components/ModalTrigger/index.tsx
rename superset-frontend/src/dashboard/{util/fetchDatasourceMetadata.ts =>
actions/datasources.ts} (57%)
delete mode 100644
superset-frontend/src/dashboard/components/DashboardBuilder/DashboardBuilder.test.jsx
create mode 100644
superset-frontend/src/dashboard/components/DashboardBuilder/DashboardBuilder.test.tsx
create mode 100644
superset-frontend/src/dashboard/components/DashboardBuilder/useStoredFilterBarWidth.test.ts
create mode 100644
superset-frontend/src/dashboard/components/DashboardBuilder/useStoredFilterBarWidth.ts
copy superset-frontend/src/{datasource/reducer.ts =>
dashboard/reducers/datasources.ts} (66%)
create mode 100644
superset-frontend/src/explore/actions/datasourcesActions.test.ts
rename superset-frontend/src/{datasource/actions.ts =>
explore/actions/datasourcesActions.ts} (52%)
delete mode 100644
superset-frontend/src/explore/components/DataTablesPane/utils.ts
create mode 100644
superset-frontend/src/explore/components/controls/ViewQuery.tsx
create mode 100644
superset-frontend/src/explore/components/controls/ViewQueryModalFooter.tsx
create mode 100644
superset-frontend/src/explore/controlUtils/getFormDataFromDashboardContext.test.ts
create mode 100644
superset-frontend/src/explore/controlUtils/getFormDataWithDashboardContext.ts
rename superset-frontend/src/{datasource/reducer.ts =>
explore/reducers/datasourcesReducer.ts} (68%)
copy superset-frontend/{packages/superset-ui-core/test/index.test.ts =>
src/types/DashboardContextForExplore.ts} (58%)
copy
superset-frontend/src/{explore/components/controls/FilterControl/columnType.js
=> utils/datasourceUtils.js} (79%)
delete mode 100644 superset/datasets/commands/samples.py
copy superset/{advanced_data_type/plugins =>
migrations/shared/migrate_viz}/__init__.py (96%)
rename superset/{utils/migrate_viz.py =>
migrations/shared/migrate_viz/base.py} (50%)
create mode 100644 superset/migrations/shared/migrate_viz/processors.py
copy
superset/migrations/versions/{2020-09-25_10-56_18532d70ab98_fix_table_unique_constraint_in_mysql.py
=> 2022-07-19_15-16_a39867932713_query_context_to_mediumtext.py} (58%)
create mode 100644 superset/views/datasource/utils.py
delete mode 100644 tests/integration_tests/config_tests.py
rename tests/{unit_tests/utils/viz_migration/area_migration_test.py =>
integration_tests/migrations/06e1e70058c7_migrate_legacy_area__tests.py} (86%)
rename tests/{unit_tests/utils/viz_migration/treemap_migration_test.py =>
integration_tests/migrations/c747c78868b6_migrating_legacy_treemap__tests.py}
(87%)
create mode 100644 tests/unit_tests/config_test.py