← Back to team overview

launchpad-reviewers team mailing list archive

Re: [Merge] lp:~gary/launchpad/move-events-to-filters into lp:launchpad/db-devel

 

There's one more thing I hope will get someone's attention: the XXX I added.  I intend to remove it after discussion and resolution in this review.

Here's the concern.  The filter class (lp.bugs.model.bugsubscriptionfilter.BugSubscriptionFilter) has an explicit "delete" method that will delete all of its subobjects (that is, records in the database in a many to one relationship with the filter class).  However, the structural subscriptions do not have any similar code for the filters, which are themselves many to one with the structural subscriptions.  Why?  Is the delete method in BugSubscriptionFilter overkill because we have cascading delete in the database, or do I need to do something similar to the delete method on structural subscriptions?  This seems like an elementary question for LP development, but not something I've encountered yet.

Thanks.
-- 
https://code.launchpad.net/~gary/launchpad/move-events-to-filters/+merge/48069
Your team Launchpad code reviewers is requested to review the proposed merge of lp:~gary/launchpad/move-events-to-filters into lp:launchpad/db-devel.



Follow ups

References