-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
user deletion #746
Comments
Facebook keeps the chat messages but replaces the name with "A Facebook User" |
i dont like the idea of removing all posts, what happens if User A had a long back and forth conversation with User B, on a topic created by User A, then you delete User B with all their posts, then User A looks like loner talking to him/her self. |
how about a |
I think the sole purpose of deleting content is for removing test users or bots/spammers. I don't think it should be used on real users. What do you mean by a soft-delete? |
In all cases, we'd just be calling |
Assign the post's owner to "user formerly known as X"? |
Just bumping this issue - we had someone here try and fail to delete a user while DB diving. I think we should definitely implement a "hard delete" (including "hard deleting" posts and topics) for cases like spambots. IMO the ban feature is good enough as a "soft delete" Adding RFC tag to this, just in case anybody has any opinions on this |
Just attempting to summarize the important notes from above: @barisusakli Two Buttons:
Button Number 1 - "soft delete" aka BAN - soft deletes user; any post by that user will look similar to this:
this is in order to prevent this problem:
Button Number 2 - just hard deletes all topics & posts referenced by that user. I think for now we can forget about adjusting stuff like up/downvotes etc, because that may be too much work on server. This is for potential spambots or test users, we don't need this cluttering our DB for no reason. |
(Been a while since I've commented on this project)
Since we're server side, why not schedule this for when the CPU usage is below a threshold? |
Currently using Vanilla Forums, when I go to delete a user I'm presented with 3 options:
I use option 3 all the time to clean up when a spammer gets in and posts, just thing morning I had multiple pages of spam from two users that I cleaned up by deleting them and their content. Not being able to quickly clean up spam that gets past any filters would be an issue for me and my community. I understand the issue with hard deleting a user and their posts, but spammers can and will get in and being able to quickly and simply remove them and their content is very important. |
2 buttons in admin/users
Things to do for user delete
- deleteusername
from hashusername:uid
- deleteuserslug
from hashuserslug:uid
- deleteemail
from hashemail:uid
- deleteuid:<uid>:notifications:read
anduid:<uid>:notifications:unread
- delete uid from the sorted setsusers:joindate
,users:postcount
andusers:reputation
.- deleteuid:<uid>:favourites
- for eachcid
incategories:cid
deleteuid
fromcid:<cid>:active_users
- go through everyone infollowers:<uid>
and removeuid
fromfollowing:<theiruid>
- deletefollowers:<uid>
andfollowing:<uid>
- delete user hashuser:<uid>
-delete uid:<uid>
:chats-delete uid:<uid>
:ip-delete uid:<uid>
:upvote-delete uid:<uid>
:downvote-remove user from all groupsThings to do for content delete
Go through each pid in
uid:<uid>:posts
and- delete setpid:<pid>:users_favourited
- delete pid from users upvotes downvotes- deletepid
fromcategories:recent_posts:cid:<postCid>
- deletepid
fromtid:<postTid>:posts
- decrementglobal
postCount
- delete post content from search- delete hashpost:<pid>
- delete pid fromposts:pid
Go through each
tid
inuid:<uid>:topics
and- deletetid:<tid>:followers
- deletetid
fromtopics:tid
- deletetid
fromtopics:recent
- deletetid
fromtopics:posts
- deletetid
fromtopics:views
- deletetid
fromcategories:<topicCid>:tid
- decrementcategory:<topicCid>
fieldtopic_count
- decrementglobal
topicCount
- delete topic title from search- delete hashtopic:<tid>
-deletetid:<tid>:read_by_uid
Delete sorted setsuid:<uid>:topics
anduid:<uid>:posts
I may have missed some things to do, I am not sure what to do with chat messages. If we delete a user should we delete his conversations with others? If we don't they will show up as null in other people's chat history.
Also no wonder why our first delete implementation was not complete so much to do 😄
The text was updated successfully, but these errors were encountered: