Skip to content

Add cancel deletion request for accounts - #180

Merged
oveldman merged 8 commits into
mainfrom
feature/173-cancel-deletion-request
Jul 7, 2026
Merged

Add cancel deletion request for accounts#180
oveldman merged 8 commits into
mainfrom
feature/173-cancel-deletion-request

Conversation

@oveldman

@oveldman oveldman commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds the ability for administrators to cancel a pending account deletion request, restoring the account to Active status. Also includes a GDPR user guide and documentation updates.

Changes

  • Add CancelDeletion method to the Account domain entity
  • Add CancelDeletionRequestAccountUseCase and POST /accounts/{userId}/cancel-deletion-request endpoint (Administrator policy)
  • Add CancelDeletionRequestAsync to IAccountService and AccountService
  • Add AccountCancelDeletionFailed to BlazorErrors
  • Update Admin UI (AccountDeletionRequests.razor) with inline "Cancel request" action alongside "Confirm deletion"
  • Fix Status/Updated column swap in the deletion requests table
  • Add component tests for the cancel deletion flow
  • Add GDPR user guide (docs/user-guides/Gpdr.md)
  • Update docs/README.md and docs/index.md with new pages

How to Test

  • Sign in to the Portal, go to Settings, and submit a deletion request
  • Sign in to the Admin panel and open Accounts → Deletion Requests
  • Verify the "Cancel request" button appears next to "Confirm deletion" for DeletionRequested accounts
  • Click "Cancel request" → confirm the inline prompt → verify the account status returns to Active
  • Verify that clicking "No" on the cancel prompt restores both action buttons without making an API call
  • Verify that the "Confirm deletion" flow still works as before

Checklist

  • Code builds without errors
  • Changes have been tested locally
  • No new warnings introduced

@oveldman oveldman self-assigned this Jul 7, 2026
@oveldman oveldman added the enhancement New feature or request label Jul 7, 2026
@sonarqubecloud

sonarqubecloud Bot commented Jul 7, 2026

Copy link
Copy Markdown

@oveldman
oveldman merged commit 1a3ae9c into main Jul 7, 2026
10 checks passed
@oveldman
oveldman deleted the feature/173-cancel-deletion-request branch July 7, 2026 10:35
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.

Allow administrators to cancel a pending or confirmed account deletion request

1 participant