Issue Details (XML | Word | Printable)

Key: FLM-207
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Adam Zieliński
Reporter: Borys Musielak
Votes: 0
Watchers: 0
Operations

Clone this issue
Create sub-task
If you were logged in you would be able to see more operations.
Filmaster

Add a trigger that removes activities when reviews are removed

Created: 30/Sep/09 09:24 AM   Updated: 13/Feb/10 04:19 PM
Component/s: Walls and activities
Affects Version/s: 1.0.1
Fix Version/s: 1.0.1

Time Tracking:
Not Specified


 Description  « Hide
Add a trigger that removes activities when reviews are removed.

Currently the activities and all comments stay on Planet Filmaster even though the actual review and comments to it have been deleted. These activities are best removed in the delete() method of Post / Comment classes.

In case we don't delete the comments for deleted reviews -- we should be doing this as well.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Adam Zieliński added a comment - 31/Dec/09 09:21 PM
Activities for deleted comments shouldn't appear on the planet. I think that deleting the post shouldn't remove all comments - we sholud show text 'this post was deleted by the owner' and leave comments (if there are any)

Borys Musielak added a comment - 01/Jan/10 03:13 PM
Yes, it makes sense.
At the same time we should add a button next to each comment on the Planet called "show" / "pokaż" which would show (in an ajaxy way) the while comment without reloading the page.
This would be a usability fix anyway, but in case of deleting the blog post / first comment, this would also be the only way of seeing the comment.

Adam Zieliński added a comment - 13/Feb/10 04:19 PM
I wrote function delete_for_object(object_id) it marks comments connected with object as deleted (set status DELETED_STATUS).