-
Notifications
You must be signed in to change notification settings - Fork 16.3k
feat(users): user deletion to allow for asset reassignment and the option for a soft/hard delete #36342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
Thanks! @michael-s-molina was just discussing this recently. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #36342 +/- ##
===========================================
+ Coverage 0 48.03% +48.03%
===========================================
Files 0 638 +638
Lines 0 46933 +46933
Branches 0 5096 +5096
===========================================
+ Hits 0 22544 +22544
- Misses 0 23738 +23738
- Partials 0 651 +651
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Thank you for the PR, @jl141! I believe this feature would benefit from a SIP that aligns with and complements SIP-27: Proposal for Paranoid Deletes. Implementing soft deletion will impact several areas in Superset where users are referenced, such as datasets, charts, dashboards, and saved queries. Additionally, there’s an important distinction between items that can be reassigned and those that cannot—like log entries. |
SUMMARY
Fixes: #13345
When trying to delete a user, the error message "Associated data exists, please delete them first" appears. Even with all the charts and dashboards created by the user being deleted, the user being set as inactive, and their role setting deleted, it is not possible to delete the user.
Our changes involve:
ab_usercolumns to support soft deletionRegarding a user's action logs after they are deleted:
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Deletion UI before:


Deletion UI after:
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION
ab_usertable - near-instant on all databases