Ratings not deleted when entry deleted? 
Posted: 06 June 2008 12:43 PM   [ Ignore ]
Newbie
Rank
Total Posts:  11
Joined  2008-02-06

Shouldn’t ratings get deleted when the corresponding entry is deleted?  I’m finding that when an entry is deleted, the ratings are orphaned.

For now I might add code to my own ‘delete_entries_loop’ hook handler to take care of it, but obviously it should really be handled by Rating itself.

Profile
 
 
Posted: 09 June 2008 07:23 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

McCarthy,

You’re right, it’d be great if Ratings were removed when a weblog entry is deleted, although I don’t believe this functionality is built into Rating.
The fact that the Ratings are really a seperate entry in their own table poses the issue I guess, as they’re only really just “related”

You would probably need to add a hook handler for this like you plan to do.

I’ll add this as a feature request anyway smile

Thank you!

 Signature 
Profile
 
 
Posted: 09 June 2008 12:59 PM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  11
Joined  2008-02-06

Thanks for your reply and for adding the feature request.

The fact that the Ratings are really a seperate entry in their own table poses the issue I guess, as they’re only really just “related”

That is the fundamental nature of relational databases.  Same deal with comments and all sorts of other things in the EE database that are deleted when you delete the entry they’re dependent on.  I’m assuming it’s just an oversight that the ratings aren’t deleted.

There’s already an extension that’s part of Rating, so all it would take is to add a ‘delete_entries_loop’ handler to that.

Thank you

Profile
 
 
Posted: 09 August 2008 07:42 AM   [ Ignore ]   [ # 3 ]
Jr. Member
RankRank
Total Posts:  33
Joined  2008-04-14

If you guys could offer the “fix for this it would be greatly appreciated.  cheese

I’ll settle for instructions on how to “add the hook” myself until it’s worked into a new release.

Same goes for deletion of Gallery Extended relationships (this is a huge one!)

Anyway, Thanks for any reply

Profile
 
 
Posted: 10 August 2008 01:16 PM   [ Ignore ]   [ # 4 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

wecreateyou,

The next version will be out shortly, and this feature is included smile

 Signature 
Profile
 
 
Posted: 29 August 2008 11:13 AM   [ Ignore ]   [ # 5 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

McCarthy / wecreateyou,

This feature has been added in the release of Rating 2.2.0, now available for download. smile

 Signature 
Profile
 
 
Posted: 29 August 2008 02:44 PM   [ Ignore ]   [ # 6 ]
Jr. Member
RankRank
Total Posts:  33
Joined  2008-04-14

LOL I’m too happy Thanks a bunch you guys.  ooooh can’t wait. cheese

Profile