Closed (duplicate)
Project:
Activity
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Oct 2009 at 18:00 UTC
Updated:
24 Oct 2009 at 05:16 UTC
Hey guys,
I didn't see any mention of this previously, so I'm hoping it's not a dupe. Just wanted to let you know that if you delete a comment, that comment's activity stays in the activity tables, referencing a comment that no longer exists.
The only way I've found to remedy this is to bounce into the activity table in the DB and delete the offending aid's ... I think in the past I used to add a "published=true" filter in views to hide all the deleted stuff, but that's no longer available in 2.x.
For what it's worth, node types are handled perfectly when they're deleted.
Thanks!
Comments
Comment #1
Scott Reynolds commentedHmm tough problem. Heres hook_nodeapi and hook_user
In both cases we had a foriegn key to use (nid and uid). We keep uid so we can know the 'Creator' of the Activity and we keep the nid so we can make sure a user has access to view the node. I cannot imagine a case where storing other 'keys' would be a.) doable and b.) desirable
I would suggest, when deleting activities that you use the url activity/$aid/delete. There is a View handler to create a link to this and a default admin Activities View.
This feels like a Cannot Fix for design reasons...
Comment #2
Apollo610 commentedSounds good Scott, will do that going forward. Thanks for the feedback!
Comment #3
Scott Reynolds commentedOk marking as by design
Comment #4
Scott Reynolds commented#609888: Add a generic oid column as a foreign key