You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by di...@apache.org on 2024/06/28 14:26:41 UTC
(superset) branch geido/refactor/dashboard-screenshot updated (0544d66f17 -> f5c487c701)
This is an automated email from the ASF dual-hosted git repository.
diegopucci pushed a change to branch geido/refactor/dashboard-screenshot
in repository https://gitbox.apache.org/repos/asf/superset.git
from 0544d66f17 Update retry test case
add ebba8c9d26 Clean up
add 914ebd9ba3 fix(permalink): adding anchor to dashboard permalink generation (#28744)
add ae7c40920e chore: translate strings to French (#29247)
add d49d79121c chore: trigger CI jobs on all release-related branches (#29274)
add 358e83a849 build(deps): bump ws from 8.17.0 to 8.17.1 in /superset-websocket (#29276)
add c7b8ae9013 build(deps): bump ws from 7.5.9 to 7.5.10 in /docs (#29275)
add ab7f8ad1bf docs: remove comment header in README.md (#29273)
add 527f1d20ad fix: filters not updating with force update when caching is enabled (#29291)
add 725afc3848 fix(sqllab): invalid empty state on switch tab (#29278)
add 4537ab6b1a fix(sqllab): excessive API calls for schemas (#29279)
add 796726376a chore: make flask-talisman work with test config (#29277)
add 9f70697046 chore: use json codec for key value lock (#29285)
add 188b5f4781 docs: add Agoda to users list (#29300)
add 36b1535199 chore(e2e): using updated repo secret, new Cypress project id (#29296)
add 99fc04b9a6 build(deps-dev): bump ws from 7.5.7 to 7.5.10 in /superset-embedded-sdk (#29308)
add 172ddb47d5 fix(metastore-cache): prune before add (#29301)
add 03969d5f90 chore(distributed-lock): refactor tests (#29302)
add 1770f8b783 fix(key-value): use flush instead of commit (#29286)
add 313ee596f5 fix(Dashboard): Color inconsistency on refreshes and conflicts (#27439)
add 70f6f5f3ef fix(ui): Disable ability to export data when user does not have the correct permission (#28429)
add a5355d86fc feat: Dashboard tabs api endpoint (#27962)
add 03143bf9ad chore(applitools): making tests more static for consistent testing (#28201)
add 6378ec5d69 feat(dashboard): Enables pivot table download option at dashboard level (#29123)
add 5e060cef7c feat: add new SQLLAB_FORCE_RUN_ASYNC feature flag (#29231)
add 514eda82fb fix: don't strip SQL comments in Explore - 2nd try (#28753)
add 118552d4d2 chore(e2e): more instructions for manual test runs. (#29319)
add 8c990adabe build(deps): bump deck.gl from 9.0.6 to 9.0.12 in /superset-frontend/plugins/legacy-preset-chart-deckgl (#28296)
add 9444c6bd4b fix: Remove recursive repr call (#29314)
add 79d84f30f5 docs: update CVEs fixed on 4.0.1 and 3.1.3 (#29313)
add fe3ba12801 refactor: Adds the sort_by_metric control to sharedControls (#29325)
add 4fe04e63ac chore(e2e): simplify Cypress record key usage (#29327)
add 01ffc1227a docs: Update INTHEWILD.md with Bluesquare (#29337)
add ee5227733b fix: Cannot delete empty column inside a tab using the dashboard editor (#29346)
add 160cece017 fix(explore): restored hidden field values has discarded (#29349)
add 5ffa616d98 fix: actually write changes on "superset import-datasources" (#14817)
add 213fd69b2b chore: Rename Totals to Summary in table chart (#29360)
add 708afb7146 fix(revert 27883): Excess padding in horizontal Bar charts (#29345)
add d69363ef11 fix(tests): Ensure fixture is invoked (#29352)
add c12b4e9cba chore(tests): Cleanup Celery tests (#29355)
add f9f70e3e55 chore(tests): Fix MySQL logic (#29356)
add dffad48504 feat(build): uplift `Jest` to v29 (#29118)
add d74d3a87bb fix: default logging (#27777)
add b5a72e21f7 refactor(Homepage): Migrate Home.test to RTL (#29353)
add de6a518161 fix(Query): Parse html string error responses to avoid displaying raw HTML as error message (#29321)
add 58f33d227a fix(explore): don't respect y-axis formatting (#29367)
add c83d5b88e1 feat: Adds the ECharts Sankey chart (#29329)
add d4054e3d85 feat: Adds chart IDs option to migrate-viz (#29361)
add c49a6dfdef feat(e2e): implementing Cypress Dashboard on `master` branch merges (#29351)
add 731cfb1553 chore(tests): Mark TestConnectionDatabaseCommand as non-test related (#29366)
add 53450b7e2f fix(tox): Address issue with generative environment variables (#29368)
add 5948dac889 chore(ci): Start Celery worker as a background process (#29371)
add 466dda2b14 chore(security): Clean up session/commit logic (#29381)
add 9d405738c0 chore(tests): Remove unnecessary mock (#29386)
add 59d1eea4c8 ci: remove update repo on issue comment (#29388)
add 9c5c124155 docs: fix typo in docker compose doc (#29390)
add c70a9d0e67 fix(readme): changing video from mp4 to webm format (#29392)
add 2a587a771c feat: Add Ant Design 5 Theme (#29328)
add f5c487c701 Merge branch 'master' of https://github.com/apache/superset into geido/refactor/dashboard-screenshot
No new revisions were added by this update.
Summary of changes:
.asf.yaml | 3 +
.github/workflows/bashlib.sh | 14 +
.github/workflows/check_db_migration_confict.yml | 2 +-
.github/workflows/codeql-analysis.yml | 2 +-
.github/workflows/docker.yml | 2 +-
.github/workflows/embedded-sdk-release.yml | 2 +-
.github/workflows/generate-FOSSA-report.yml | 2 +-
.github/workflows/github-action-validator.yml | 2 +-
.github/workflows/pre-commit.yml | 2 +-
.github/workflows/prefer-typescript.yml | 2 +-
.github/workflows/release.yml | 2 +-
.github/workflows/superset-cli.yml | 2 +-
.github/workflows/superset-e2e.yml | 10 +-
.github/workflows/superset-frontend.yml | 2 +-
.github/workflows/superset-helm-release.yml | 2 +-
.../workflows/superset-python-integrationtest.yml | 22 +-
.github/workflows/superset-python-misc.yml | 2 +-
.github/workflows/superset-python-presto-hive.yml | 14 +-
.github/workflows/superset-python-unittest.yml | 2 +-
.github/workflows/superset-translations.yml | 2 +-
.github/workflows/superset-websocket.yml | 2 +-
.github/workflows/tech-debt.yml | 2 +-
.github/workflows/update-monorepo-lockfiles.yml | 52 -
.gitignore | 4 +
.rat-excludes | 1 +
README.md | 8 +-
RESOURCES/FEATURE_FLAGS.md | 1 +
RESOURCES/INTHEWILD.md | 2 +
UPDATING.md | 6 +
docker/pythonpath_dev/superset_config.py | 1 -
docs/docs/installation/docker-compose.mdx | 2 +-
docs/docs/security/cves.mdx | 6 +
docs/package.json | 4 +-
docs/src/intro_header.txt | 4 +
docs/yarn.lock | 12 +-
pyproject.toml | 5 +-
scripts/cypress_run.py | 11 +-
scripts/tests/run.sh | 3 +
superset-embedded-sdk/package-lock.json | 5905 ++--
superset-embedded-sdk/package.json | 4 +-
.../src/guestTokenRefresh.test.ts | 2 +-
superset-frontend/cypress-base/cypress.config.ts | 2 +-
.../cypress/e2e/dashboard/editmode.test.ts | 49 +-
.../e2e/explore/visualizations/compare.test.js | 3 -
.../e2e/explore/visualizations/dist_bar.test.js | 3 -
superset-frontend/jest.config.js | 13 +-
superset-frontend/package-lock.json | 32512 ++++++++++---------
superset-frontend/package.json | 14 +-
.../src/shared-controls/sharedControls.tsx | 9 +
.../src/color/CategoricalColorScale.ts | 217 +-
...olorSingleton.ts => LabelsColorMapSingleton.ts} | 74 +-
.../packages/superset-ui-core/src/color/index.ts | 8 +-
.../packages/superset-ui-core/src/color/utils.ts | 5 +-
.../useComponentDidUpdate/useComponentDidUpdate.ts | 10 +-
.../src/query/getClientErrorObject.ts | 111 +-
.../superset-ui-core/src/utils/featureFlags.ts | 1 +
.../superset-ui-core/src/utils/html.test.tsx | 76 +
.../packages/superset-ui-core/src/utils/html.tsx | 55 +-
.../test/color/CategoricalColorNameSpace.test.ts | 2 +-
.../test/color/CategoricalColorScale.test.ts | 286 +-
.../test/color/LabelsColorMapSingleton.test.ts | 234 +
.../test/color/SharedLabelColorSingleton.test.ts | 201 -
.../test/query/getClientErrorObject.test.ts | 133 +-
.../time-comparison/computeCustomDateTime.test.ts | 2 +-
.../test/time-comparison/getTimeOffset.test.ts | 66 +-
.../test/time-comparison/parseDttmToDate.test.ts | 58 +-
.../superset-ui-core/test/utils/logging.test.ts | 6 +-
.../plugins/legacy-plugin-chart-chord/src/Chord.js | 4 +-
.../legacy-plugin-chart-chord/src/controlPanel.ts | 13 +-
.../src/controlPanel.tsx | 13 +-
.../src/Histogram.jsx | 2 +-
.../legacy-plugin-chart-partition/src/Partition.js | 2 +-
.../plugins/legacy-plugin-chart-rose/src/Rose.js | 14 +-
.../legacy-plugin-chart-sankey/src/Sankey.js | 2 +-
.../legacy-plugin-chart-sankey/src/controlPanel.ts | 13 +-
.../legacy-plugin-chart-sankey/src/index.js | 2 +-
.../src/controlPanel.ts | 13 +-
.../legacy-preset-chart-deckgl/package.json | 2 +-
.../src/CategoricalDeckGLContainer.tsx | 10 +-
.../legacy-preset-chart-nvd3/src/NVD3Vis.js | 4 +-
.../src/BoxPlot/transformProps.ts | 6 +-
.../src/Funnel/controlPanel.tsx | 6 +-
.../src/Funnel/transformProps.ts | 2 +-
.../src/Gauge/controlPanel.tsx | 13 +-
.../src/Gauge/transformProps.ts | 4 +-
.../src/Graph/transformProps.ts | 2 +-
.../plugin-chart-echarts/src/Pie/controlPanel.tsx | 7 +-
.../plugin-chart-echarts/src/Pie/transformProps.ts | 2 +-
.../src/Radar/transformProps.ts | 2 +-
.../src/{Heatmap/Heatmap.tsx => Sankey/Sankey.tsx} | 5 +-
.../src/Sankey}/buildQuery.ts | 13 +-
.../src/Sankey/controlPanel.tsx} | 46 +-
.../src/Sankey/images/example1.png | Bin 0 -> 151732 bytes
.../src/Sankey/images/example2.png | Bin 0 -> 101327 bytes
.../src/Sankey/images/thumbnail.png | Bin 0 -> 59782 bytes
.../src/{Histogram => Sankey}/index.ts | 24 +-
.../src/Sankey/transformProps.ts | 125 +
.../{Waterfall/buildQuery.ts => Sankey/types.ts} | 29 +-
.../src/Sunburst/controlPanel.tsx | 13 +-
.../src/Timeseries/transformProps.ts | 1 -
.../src/Timeseries/transformers.ts | 12 +-
.../src/Treemap/controlPanel.tsx | 13 +-
.../src/Treemap/transformProps.ts | 4 +-
.../plugins/plugin-chart-echarts/src/index.ts | 2 +
.../test/Timeseries/transformProps.test.ts | 1 -
.../src/plugin/controls/metrics.tsx | 2 +-
.../plugins/plugin-chart-table/src/TableChart.tsx | 30 +-
.../plugin-chart-table/src/controlPanel.tsx | 2 +-
.../src/chart/WordCloud.tsx | 9 +-
.../src/legacyPlugin/transformProps.ts | 1 +
.../src/plugin/controlPanel.ts | 13 +-
.../src/plugin/transformProps.ts | 4 +-
.../test/legacyPlugin/transformProps.test.ts | 1 +
.../EditorAutoSync/EditorAutoSync.test.tsx | 34 +-
.../SqlLab/components/ResultSet/ResultSet.test.tsx | 78 +
.../src/SqlLab/components/ResultSet/index.tsx | 41 +-
.../src/SqlLab/components/SqlEditor/index.tsx | 12 +-
.../SqlLab/components/SqlEditorLeftBar/index.tsx | 12 +-
.../src/SqlLab/reducers/getInitialState.ts | 1 +
.../AntdThemeProvider/index.tsx} | 14 +-
superset-frontend/src/components/Chart/Chart.jsx | 4 +-
.../Chart/ChartContextMenu/ChartContextMenu.tsx | 4 +
.../src/components/Chart/ChartRenderer.jsx | 8 +-
.../Chart/DrillBy/DrillByMenuItems.test.tsx | 1 +
.../components/Chart/DrillBy/DrillByMenuItems.tsx | 3 +
.../components/Chart/DrillBy/DrillByModal.test.tsx | 1 +
.../src/components/Chart/DrillBy/DrillByModal.tsx | 3 +
.../Chart/DrillBy/useResultsTableView.test.ts | 4 +-
.../Chart/DrillBy/useResultsTableView.tsx | 3 +
.../DatabaseSelector/DatabaseSelector.test.tsx | 1 +
.../src/components/InfoTooltip/index.tsx | 15 +-
.../src/components/ListView/ListView.test.jsx | 72 +-
.../src/components/Table/Table.stories.tsx | 6 +-
.../cell-renderers/TimeCell/TimeCell.stories.tsx | 2 +-
.../TimezoneSelector.DaylightSavingTime.test.tsx | 59 +
.../TimezoneSelector/TimezoneSelector.test.tsx | 28 +-
.../src/dashboard/actions/dashboardInfo.ts | 39 +-
.../src/dashboard/actions/dashboardState.js | 80 +-
superset-frontend/src/dashboard/actions/hydrate.js | 11 -
.../components/ColorSchemeControlWrapper.jsx | 8 +-
.../DashboardBuilder/DashboardContainer.tsx | 118 +-
.../DashboardBuilder/DashboardWrapper.test.tsx | 4 +-
.../HeaderActionsDropdown.test.tsx | 7 +-
.../Header/HeaderActionsDropdown/index.jsx | 16 +-
.../src/dashboard/components/Header/index.jsx | 13 +-
.../src/dashboard/components/Header/types.ts | 6 +
.../PropertiesModal/PropertiesModal.test.jsx | 41 +-
.../dashboard/components/PropertiesModal/index.tsx | 36 +-
.../components/RefreshIntervalModal.test.tsx | 2 +-
.../src/dashboard/components/SliceHeader/index.tsx | 2 +
.../components/SliceHeaderControls/index.tsx | 15 +
.../components/SyncDashboardState/index.tsx | 4 +-
.../dnd/handleScroll/handleScroll.test.ts | 3 +-
.../dashboard/components/gridComponents/Chart.jsx | 22 +-
.../components/gridComponents/Chart.test.jsx | 8 +-
.../dashboard/components/gridComponents/Tabs.jsx | 1 +
.../DownloadMenuItems/DownloadMenuItems.test.tsx | 2 -
.../DownloadMenuItems/DownloadScreenshot.test.tsx | 21 +-
.../menu/DownloadMenuItems/DownloadScreenshot.tsx | 25 +-
.../components/menu/DownloadMenuItems/index.tsx | 13 -
.../src/dashboard/components/menu/HoverMenu.tsx | 2 +-
.../nativeFilters/FilterBar/FilterBar.test.tsx | 6 +-
.../FilterBar/FilterControls/FilterValue.tsx | 2 +-
.../components/nativeFilters/utils.test.ts | 6 +-
.../src/dashboard/containers/Chart.jsx | 12 +-
.../dashboard/containers/DashboardComponent.jsx | 1 +
.../src/dashboard/containers/DashboardPage.tsx | 23 +-
superset-frontend/src/dashboard/types.ts | 1 +
.../util/charts/getFormDataWithExtraFilters.ts | 16 +-
.../src/dashboard/util/permissionUtils.test.ts | 6 +-
.../src/explore/actions/exploreActions.test.js | 4 +-
.../components/DataTablesPane/DataTablesPane.tsx | 3 +
.../components/DataTableControls.tsx | 5 +-
.../components/ResultsPaneOnDashboard.tsx | 2 +
.../DataTablesPane/components/SamplesPane.tsx | 3 +
.../components/SingleQueryResultPane.tsx | 2 +
.../DataTablesPane/components/useResultsPane.tsx | 3 +
.../DataTablesPane/test/DataTablesPane.test.tsx | 28 +
.../components/DataTablesPane/test/fixture.tsx | 3 +
.../src/explore/components/DataTablesPane/types.ts | 5 +
.../ExploreChartHeader/ExploreChartHeader.test.tsx | 58 +-
.../components/ExploreChartHeader/index.jsx | 38 +-
.../explore/components/ExploreChartPanel/index.jsx | 2 +
.../StashFormDataContainer.test.tsx | 30 +-
.../components/StashFormDataContainer/index.tsx | 9 +-
.../ColorSchemeControl/ColorSchemeControl.test.tsx | 13 +-
.../ColorSchemeControl/ColorSchemeLabel.tsx | 12 +-
.../controls/ColorSchemeControl/index.tsx | 14 +-
...AdhocFilterEditPopoverSimpleTabContent.test.tsx | 2 +-
.../MetricControl/AdhocMetricEditPopover/index.jsx | 2 +-
.../useExploreAdditionalActionsMenu/index.jsx | 30 +-
.../src/explore/reducers/exploreReducer.js | 18 +-
.../src/explore/reducers/exploreReducer.test.js | 45 +
.../databases/DatabaseModal/ExtraOptions.tsx | 23 +-
.../databases/DatabaseModal/index.test.tsx | 4 +-
.../HeaderReportDropdown/index.test.tsx | 3 +-
.../reports/ReportModal/ReportModal.test.tsx | 4 +-
.../features/rls/RowLevelSecurityModal.test.tsx | 1 +
.../src/hooks/apiResources/catalogs.ts | 54 +-
.../src/hooks/apiResources/schemas.test.ts | 30 +-
.../src/hooks/apiResources/schemas.ts | 75 +-
.../src/hooks/useDebounceValue.test.ts | 1 +
superset-frontend/src/pages/Chart/index.tsx | 14 +-
.../src/pages/ChartList/ChartList.test.jsx | 4 +-
.../src/pages/DashboardList/DashboardList.test.jsx | 4 +-
superset-frontend/src/pages/Home/Home.test.tsx | 212 +-
.../pages/SavedQueryList/SavedQueryList.test.jsx | 8 +-
superset-frontend/src/theme/index.ts | 69 +
superset-frontend/src/theme/light.ts | 119 +
.../src/types/DashboardContextForExplore.ts | 4 +-
superset-frontend/src/utils/colorScheme.ts | 140 +
.../src/views/RootContextProviders.tsx | 50 +-
.../src/visualizations/presets/MainPreset.js | 2 +
superset-websocket/package-lock.json | 7964 +++--
superset-websocket/package.json | 7 +-
superset/cli/viz_migrations.py | 151 +-
superset/commands/dashboard/permalink/create.py | 2 +
superset/commands/database/test_connection.py | 1 +
superset/commands/dataset/importers/v0.py | 1 +
superset/commands/exceptions.py | 2 +-
superset/commands/explore/permalink/create.py | 2 +
superset/commands/key_value/create.py | 2 +-
superset/commands/key_value/delete.py | 2 +-
superset/commands/key_value/delete_expired.py | 2 +-
superset/commands/key_value/get.py | 3 +-
superset/commands/key_value/update.py | 2 +-
superset/commands/key_value/upsert.py | 2 +-
superset/config.py | 8 +-
superset/connectors/sqla/models.py | 2 +-
superset/constants.py | 1 +
superset/daos/dashboard.py | 5 +
superset/dashboards/api.py | 62 +
superset/dashboards/schemas.py | 12 +
superset/db_engine_specs/base.py | 5 +-
.../{Word_Cloud.yaml => Sankey.yaml} | 19 +-
.../configs/dashboards/Featured_Charts.yaml | 37 +-
superset/extensions/metastore_cache.py | 9 +-
superset/initialization/__init__.py | 2 +-
superset/key_value/models.py | 5 +
superset/key_value/shared_entries.py | 2 +
superset/migrations/shared/migrate_viz/base.py | 2 -
.../migrations/shared/migrate_viz/processors.py | 12 +
superset/models/dashboard.py | 50 +-
superset/models/helpers.py | 8 +-
superset/security/manager.py | 25 +-
superset/sqllab/sqllab_execution_context.py | 4 +-
superset/translations/fr/LC_MESSAGES/messages.po | 2 +-
superset/utils/lock.py | 13 +-
superset/utils/logging_configurator.py | 12 +-
tests/integration_tests/celery_tests.py | 29 +-
tests/integration_tests/conftest.py | 81 +-
tests/integration_tests/core_tests.py | 4 +-
tests/integration_tests/dashboards/api_tests.py | 179 +
tests/integration_tests/databases/api_tests.py | 4 -
tests/integration_tests/datasource_tests.py | 8 +-
.../extensions/metastore_cache_test.py | 17 +-
.../key_value/commands/delete_test.py | 5 +-
.../key_value/commands/fixtures.py | 2 +-
.../key_value/commands/get_test.py | 4 +-
tests/integration_tests/query_context_tests.py | 31 +
tests/integration_tests/reports/commands_tests.py | 5 -
tests/integration_tests/sqla_models_tests.py | 2 +-
tests/integration_tests/sqllab_tests.py | 4 +-
tests/integration_tests/superset_test_config.py | 2 +-
tests/unit_tests/sql_lab_execution_context.py | 96 +
tests/unit_tests/utils/lock_tests.py | 100 +-
266 files changed, 27582 insertions(+), 24329 deletions(-)
delete mode 100644 .github/workflows/update-monorepo-lockfiles.yml
create mode 100644 docs/src/intro_header.txt
rename superset-frontend/packages/superset-ui-core/src/color/{SharedLabelColorSingleton.ts => LabelsColorMapSingleton.ts} (52%)
create mode 100644 superset-frontend/packages/superset-ui-core/test/color/LabelsColorMapSingleton.test.ts
delete mode 100644 superset-frontend/packages/superset-ui-core/test/color/SharedLabelColorSingleton.test.ts
copy superset-frontend/plugins/plugin-chart-echarts/src/{Heatmap/Heatmap.tsx => Sankey/Sankey.tsx} (89%)
copy superset-frontend/plugins/{plugin-chart-word-cloud/src/plugin => plugin-chart-echarts/src/Sankey}/buildQuery.ts (81%)
copy superset-frontend/plugins/{legacy-plugin-chart-sankey/src/controlPanel.ts => plugin-chart-echarts/src/Sankey/controlPanel.tsx} (63%)
create mode 100644 superset-frontend/plugins/plugin-chart-echarts/src/Sankey/images/example1.png
create mode 100644 superset-frontend/plugins/plugin-chart-echarts/src/Sankey/images/example2.png
create mode 100644 superset-frontend/plugins/plugin-chart-echarts/src/Sankey/images/thumbnail.png
copy superset-frontend/plugins/plugin-chart-echarts/src/{Histogram => Sankey}/index.ts (75%)
create mode 100644 superset-frontend/plugins/plugin-chart-echarts/src/Sankey/transformProps.ts
copy superset-frontend/plugins/plugin-chart-echarts/src/{Waterfall/buildQuery.ts => Sankey/types.ts} (66%)
copy superset-frontend/src/{utils/cachedSupersetGet.ts => components/AntdThemeProvider/index.tsx} (71%)
create mode 100644 superset-frontend/src/components/TimezoneSelector/TimezoneSelector.DaylightSavingTime.test.tsx
create mode 100644 superset-frontend/src/explore/reducers/exploreReducer.test.js
create mode 100644 superset-frontend/src/theme/index.ts
create mode 100644 superset-frontend/src/theme/light.ts
create mode 100644 superset-frontend/src/utils/colorScheme.ts
copy superset/examples/configs/charts/Featured Charts/{Word_Cloud.yaml => Sankey.yaml} (84%)
create mode 100644 tests/unit_tests/sql_lab_execution_context.py