Skip to content

Conversation

@0x46616c6b
Copy link
Member

This pull request introduces a new scheduled maintenance task to automatically remove inactive users who have not been active for more than two years, excluding admin and permanent accounts. The feature is integrated into the UI, backend, and scheduling system, and includes comprehensive tests to ensure correct behavior.

New Scheduled Task: Remove Inactive Users

  • Added a new message class RemoveInactiveUsers and its handler RemoveInactiveUsersHandler, which finds and deletes users inactive for over two years, skipping admin, domain admin, and permanent users. Logging is included for transparency. [1] [2]
  • Registered the new task in the maintenance controller and scheduled it to run weekly at 06:00 via the MaintenanceSchedule. [1] [2] [3] [4]

User Interface and Translations

  • Updated the settings maintenance UI (show.html.twig) to include a new section and button for manually triggering the removal of inactive users.

@0x46616c6b 0x46616c6b added the enhancement New feature or request label Jan 17, 2026
@0x46616c6b 0x46616c6b force-pushed the Add-Schedule-to-remove-inactive-users branch from 99f5181 to 90adbfa Compare January 17, 2026 19:47
@sonarqubecloud
Copy link

Copy link
Contributor

@y3n4 y3n4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx!

@0x46616c6b 0x46616c6b merged commit b21427b into main Jan 17, 2026
9 checks passed
@0x46616c6b 0x46616c6b deleted the Add-Schedule-to-remove-inactive-users branch January 17, 2026 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants