Code review comment for lp://staging/~gary/launchpad/move-events-to-filters

Revision history for this message
Gary Poster (gary) wrote :

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.

« Back to merge proposal