Merge lp:~gary/launchpad/bug741684-2 into lp:launchpad
Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Approved by: | Gary Poster | ||||||||
Approved revision: | no longer in the source branch. | ||||||||
Merged at revision: | 12715 | ||||||||
Proposed branch: | lp:~gary/launchpad/bug741684-2 | ||||||||
Merge into: | lp:launchpad | ||||||||
Prerequisite: | lp:~gary/launchpad/bug741684 | ||||||||
Diff against target: |
429 lines (+151/-74) 8 files modified
database/schema/security.cfg (+2/-0) lib/canonical/launchpad/helpers.py (+5/-28) lib/canonical/launchpad/tests/test_helpers.py (+0/-34) lib/lp/bugs/scripts/bugnotification.py (+4/-5) lib/lp/registry/model/person.py (+64/-0) lib/lp/registry/tests/test_person.py (+69/-1) lib/lp/services/mail/notificationrecipientset.py (+5/-4) lib/lp/soyuz/scripts/ppareport.py (+2/-2) |
||||||||
To merge this branch: | bzr merge lp:~gary/launchpad/bug741684-2 | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
j.c.sackett (community) | Approve | ||
Review via email: mp+55657@code.launchpad.net |
Commit message
[r=jcsackett][bug=741684,742230] Optimizations for the DB usage and performance of the bug notifications script.
Description of the change
This branch is the second of two that I have in mind to address the linked bugs. The other branch is the one on which this one depends, lp:~gary/launchpad/bug741684. The only additional change I know of at the moment may be to increase the Storm cache size, as discussed in the MP for the other branch.
This branch replaces canonical.
I briefly toyed with the idea of making this a method on the Person class. I really have wanted to see a move to tightly-focused data-based models, though, so I preferred to make this a function. That so, if you, the reviewer, request that it be a method, I will make it so with nary a complaint.
When migrating the tests of the old function to the new location, I expanded them. The test_get_
I incorporated the new version of the function everywhere the old one was used; I am running tests now to see if this causes any unpleasant hiccups. As you might expect, the usage I'm most interested in right now is the one in lib/lp/
Thank you for your time.
Gary
This looks good to land.