This is an automated email from the ASF dual-hosted git repository.
johnbodley pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
from cd1b379bdf fix: accept only JSON credentials (#22040)
add ef6b9a97d5 feat(dashboard): confirm overwrite to prevent unintended
changes (#21819)
No new revisions were added by this update.
Summary of changes:
RESOURCES/FEATURE_FLAGS.md | 1 +
superset-frontend/package-lock.json | 122 +++++++++++-
superset-frontend/package.json | 2 +
.../superset-ui-core/src/utils/featureFlags.ts | 1 +
.../spec/fixtures/mockDashboardState.js | 86 +++++++++
.../src/dashboard/actions/dashboardState.js | 114 ++++++++---
.../src/dashboard/actions/dashboardState.test.js | 80 +++++++-
.../src/dashboard/components/Header/index.jsx | 3 +
.../OverwriteConfirm/OverwriteConfirm.test.tsx} | 42 +++--
.../OverwriteConfirmModal.test.tsx | 90 +++++++++
.../OverwriteConfirm/OverwriteConfirmModal.tsx | 209 +++++++++++++++++++++
.../components/OverwriteConfirm/index.tsx} | 38 ++--
superset-frontend/src/dashboard/constants.ts | 1 +
.../src/dashboard/reducers/dashboardState.js | 7 +
superset-frontend/src/dashboard/types.ts | 11 ++
superset-frontend/src/dashboard/util/constants.ts | 1 +
...oardEmpty.test.ts => getOverwriteItems.test.ts} | 51 +++--
.../src/dashboard/util/getOverwriteItems.ts | 44 +++++
superset-frontend/src/logger/LogUtils.ts | 3 +
19 files changed, 822 insertions(+), 84 deletions(-)
copy superset-frontend/src/{SqlLab/components/App/App.test.jsx =>
dashboard/components/OverwriteConfirm/OverwriteConfirm.test.tsx} (51%)
create mode 100644
superset-frontend/src/dashboard/components/OverwriteConfirm/OverwriteConfirmModal.test.tsx
create mode 100644
superset-frontend/src/dashboard/components/OverwriteConfirm/OverwriteConfirmModal.tsx
copy superset-frontend/src/{components/Pagination/Next.test.tsx =>
dashboard/components/OverwriteConfirm/index.tsx} (60%)
copy superset-frontend/src/dashboard/util/{isDashboardEmpty.test.ts =>
getOverwriteItems.test.ts} (50%)
create mode 100644 superset-frontend/src/dashboard/util/getOverwriteItems.ts