2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-03-04 01:15:08 +08:00
discourse/spec/services/user
Bannon Tanner 938bf7ac25
FEATURE: Add background job and ability to delete posts from suspend user modal (#36813)
## Background
User wanted admin ability to delete all of a user's posts from the
suspend modal, to reduce the steps needed.

## Changes
Adds a background job that triggers when number of posts to be deleted
is past a certain threshold, which is determined by a new system
setting. Admins get a message in their inbox when the job is complete.

Modifies original admin "delete all posts" flow to utilize the
background job, when necessary.

Added option to the "What would you like to do with the associated post"
dropdown to delete all of a user's posts while suspending them. This
then also obeys the system setting to run the deletion as a background
or foreground job.
2026-01-07 10:25:01 -06:00
..
action FIX: bug when silence user and do nothing to post (#33819) 2025-07-25 10:31:22 +08:00
bulk_destroy_spec.rb DEV: Add missing specs to User::BulkDestroy 2025-04-08 11:42:51 +02:00
silence_spec.rb FIX: bug when silence user and do nothing to post (#33819) 2025-07-25 10:31:22 +08:00
suspend_spec.rb FEATURE: Add background job and ability to delete posts from suspend user modal (#36813) 2026-01-07 10:25:01 -06:00