Feature #21495
open
Deleting Entries from activitiy feed when corresponding item is deleted
Added by Laurie Hurson 10 months ago.
Updated 21 days ago.
Description
A user asks:
"If we delete a post as moderators, the post still shows under activity. This is only a problem if the post was removed as problematic. Is there any way for deleted posts not to show under activity?"
Here is the group: https://commons.gc.cuny.edu/groups/m-a-program-in-biography-and-memoir/
I cannot tell if the group is connected to a site, so this user may be referring to forum posts or posts on a connected side fed to the group. Either way, I imagine the expected behavior should be: if a user deletes the original post, the post activity information should also be deleted from the group activity feed. Is this correct?
Files
Laurie, would you mind running tests with a couple of the content types you mentioned, to see if you can reproduce? Forum posts and blog posts have different sync mechanisms, and it would be helpful to know which is not fully working.
I tested deleting blog posts and forum posts in this group -- https://commons.gc.cuny.edu/groups/class-name-71994816/
When I deleted the blog post on the site, or the post topic from the forum, both entry types were deleted from the group activity feed.
I am meeting with this user in December and will ask for more info to see if I can identify and isolate the problem they report.
- Target version set to 2.6.0
We'll try to look at this after the migration.
- Related to Feature #21835: Activity items should have 'delete' button added
- Subject changed from Deleting Entries from activitiy feed to Deleting Entries from activitiy feed when corresponding item is deleted
- Target version changed from 2.6.0 to 2.7.0
Let's handle the creation of a Delete link in #21835, as there are visuals attached to that ticket.
I'm unsure about deleting the items from the activity stream when the corresponding item is deleted. I guess this is OK with me if others agree. This change would presumably affect the following:
- Delete bp_doc_created, bp_doc_edited items when the corresponding Doc is deleted
- Delete added_group_document, edited_group_document when the corresponding Library file is uploaded
- Delete bbp_reply_create when a forum reply is deleted
- When a forum topic is deleted, delete bbp_topic_create items, as well as bbp_reply_create items associated with replies belonging to that topic
- Delete new_blog_comment items when corresponding blog comment is deleted
- When a blog post is deleted, delete correpsonding new_blog_post activity item, as well as the new_blog_comment activity items corresponding to comments on that post
What do others think? Do we want to pursue this?
- Assignee set to Raymond Hoh
Hi Boone, this sounds right to me about corresponding items being deleted automatically when one is deleted manually. Otherwise, we're potentially displaying dead links / nonexistent excerpts of content, right?
Also, does all of this track with what happens in a non-activity-stream sense when something is deleted? For example, if someone deletes a forum topic, that deletes all of the posts and post replies under that topic? I hadn't really thought before about how one deletion can potentially impact so many others nested underneath it, but I suppose that's on the user to understand. It seems like our activity stream deletions should reflect what happens on the rest of the site.
Also available in: Atom
PDF