Error on Delete User in pending-approvals list

AI-generated summary

Error on Delete User in Pending-Approvals List Summary

The issue occurs when deleting a user from the pending-approvals list. After deleting a user, their posts remain in the list. When attempting to delete or reject these remaining posts, a ‘Post not found’ error occurs. schungx suggests the UI should delete all topics created by the deleted user.

sam mentions that eviltrout will address the issue as part of the review queue work. eviltrout has fixed the bug in the reviewable queue, which will resolve the issue when merged.

However, schungx reports that the issue has resurfaced, and pressing the ‘Delete User’ button on an item in the pending-approval list now results in a ‘Server error.’

How to reproduce

  1. Setup approvals for new users and email-in support
  2. Send emails from some new email account to multiple categories
  3. New user is staged, and new posts are created for each, in approvals list
  4. Go into approvals list, click Delete User on one of the posts
  5. That post and the staged user are both deleted
  6. Look in approvals list, the remaining posts by the same (now deleted) staged user are still there
  7. Press Reject, Delete or Delete User on one of those remaining posts, an error will come up: Post not found.

I believe the UI should loop through the entire list and delete all the topics created by a user that has been deleted.

3 Likes

Hold tight here, @eviltrout will clean this up as part of his review queue work.

5 Likes

I had the same bug in the reviewable queue, so this afternoon I made sure it was fixed there. When that is merged in this will work.

8 Likes

Sorry to bump this, but after working perfectly for a while, now pressing Delete User on an item on the pending-approval list will pop up a Server error.