Skip to content
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

Improved handling of inactive users #105

Open
torgeirl opened this issue Oct 7, 2020 · 0 comments
Open

Improved handling of inactive users #105

torgeirl opened this issue Oct 7, 2020 · 0 comments

Comments

@torgeirl
Copy link
Contributor

torgeirl commented Oct 7, 2020

User case

Django admin UI is quite limited in its handling of user deletion; Trix 2.1 only has filters for super users and last login (today, last seven days, this month, this year, no login date, or has login date).

With the consent form introduced in 2.1.0 (#21) it would also be nice to filter whether users has signed the consent form or not.

Solutions

1. CLI commands
CLI commands that allow system administrators to delete inactive users more targeted than Django admin UI, similar to Devilry's management command:

venv/bin/python manage.py devilry_delete_inactive_users "YYYY-MM-DD HH:MM"

This could be combined with an option to keep users older than the provided date, if they have signed consent form.

2. Extend Django admin filters
Add more filters to /trix_core/user:

  • Has signed concent form: All/Yes/No
  • Last login: add before this semester and before last semester (could require trix_settings.py definition of semesters)
@torgeirl torgeirl added this to the Trix 3.1 milestone Dec 12, 2022
@torgeirl torgeirl modified the milestones: Trix 4.0, Trix 4.1 Nov 29, 2023
@torgeirl torgeirl removed this from the Trix 4.1 milestone Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant