Add soft delete for users with deleted users tab and E2E tests#815
Merged
Add soft delete for users with deleted users tab and E2E tests#815
Conversation
8fb73b2 to
8e5f56c
Compare
… migrations, and tests
8e5f56c to
ae342c9
Compare
|
Approve Database Migration
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary & Motivation
Add soft delete functionality for users, allowing Tenant Owners and Admins to delete users with the ability to restore them or permanently purge them. Previously, user deletion was immediate and irreversible. This feature provides a safety net for accidental deletions and compliance with data retention requirements.
ISoftDeletableinterface from the shared kernelGET /api/users/deleted- list deleted users with paginationPOST /api/users/{id}/restore- restore a soft-deleted userDELETE /api/users/{id}/purge- permanently delete a single userPOST /api/users/deleted/bulk-purge- permanently delete multiple usersPOST /api/users/deleted/empty-recycle-bin- purge all deleted usersSmartDatecomponent anduseSmartDatehook for auto-updating relative time display ("Just now", "5 minutes ago", "2 hours ago"), used in the Users table for Created and Modified columnsformatDateutility to use fixed English month names for consistent formatting across browsersForceHardDeletetoForcePurgeandMarkForHardDeletetoMarkForPurgein theISoftDeletableinterface for consistencyChecklist