This is an automated email from the ASF dual-hosted git repository.
rusackas pushed a change to branch revamped-example-loading
in repository https://gitbox.apache.org/repos/asf/superset.git
from 11c2408daf test(cypress): Re-skip tests that need more extensive fixes
add dc1657b2b7 feat(dashboard): Gate 'Export as Example' by user permission
No new revisions were added by this update.
Summary of changes:
.../playwright/pages/DashboardPage.ts | 100 +++++
.../playwright/tests/dashboard/export.spec.ts | 96 +++++
superset-frontend/playwright/utils/constants.ts | 5 +
superset-frontend/playwright/utils/urls.ts | 1 +
superset-frontend/src/dashboard/actions/hydrate.js | 1 +
.../src/dashboard/components/Header/index.jsx | 2 +
.../src/dashboard/components/Header/types.ts | 2 +
.../Header/useHeaderActionsDropdownMenu.tsx | 2 +
.../DownloadMenuItems/DownloadMenuItems.test.tsx | 7 +-
.../components/menu/DownloadMenuItems/index.tsx | 100 ++++-
superset/cli/export_example.py | 432 +++------------------
.../{cli => commands/dashboard}/export_example.py | 416 ++++++++------------
superset/dashboards/api.py | 92 +++++
tests/integration_tests/dashboards/api_tests.py | 78 ++++
.../commands/dashboard/export_example_test.py | 326 ++++++++++++++++
15 files changed, 1021 insertions(+), 639 deletions(-)
create mode 100644 superset-frontend/playwright/pages/DashboardPage.ts
create mode 100644 superset-frontend/playwright/tests/dashboard/export.spec.ts
copy superset/{cli => commands/dashboard}/export_example.py (53%)
create mode 100644 tests/unit_tests/commands/dashboard/export_example_test.py