Skip to content

feat: personless User deletion via admin #9312

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

Merged
merged 9 commits into from
Aug 7, 2025

Conversation

jennifer-richards
Copy link
Member

This replaces the default UserAdmin with one that adds an action to delete selected User records that are not associated with a Person. A list filter is added to allow selecting / reviewing these records. Selecting all on a page will cause an option to "Select all users" to appear:
screen capture showing UI option to 'Select all 4191 users'
Clicking this will select all records, including those that are not on the current page of 100.

Selecting the action and clicking "Go" gives the usual review of objects / related objects to be deleted. It also applies two adjustments to the selected set. First, only users whose person field is null will be affected. Any others will be ignored. Second, the set of objects that will be is limited to 990. This is needed because Django has a global limit on the number of fields a request can contain (which is at its default of 1000). Clicking on the "Yes I'm sure" will carry out the deletion.

Copy link

codecov bot commented Aug 6, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.75%. Comparing base (ea8377d) to head (8928dde).
⚠️ Report is 13 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #9312   +/-   ##
=======================================
  Coverage   88.74%   88.75%           
=======================================
  Files         320      320           
  Lines       41674    41689   +15     
=======================================
+ Hits        36985    37001   +16     
+ Misses       4689     4688    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@rjsparks rjsparks merged commit ebe6fbf into ietf-tools:main Aug 7, 2025
15 of 16 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants