Merge lp:~edwin-grubbs/launchpad/bug-590840-getMembershipInformation-timeout into lp:launchpad
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Edwin Grubbs | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 10996 | ||||
Proposed branch: | lp:~edwin-grubbs/launchpad/bug-590840-getMembershipInformation-timeout | ||||
Merge into: | lp:launchpad | ||||
Diff against target: |
113 lines (+23/-31) 2 files modified
lib/lp/registry/model/mailinglist.py (+21/-30) lib/lp/services/mailman/doc/staging.txt (+2/-1) |
||||
To merge this branch: | bzr merge lp:~edwin-grubbs/launchpad/bug-590840-getMembershipInformation-timeout | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Nelson (community) | code | Approve | |
Review via email: mp+27108@code.launchpad.net |
Description of the change
Summary
-------
The MailingListAPIV
canonical.
(See OOPS-1612S995).
This was caused by the MailingListSet.
retrieving all the columns from the tables being joined instead of
just the three columns actually needed.
Implementation details
-------
Improved performance of getSenderAddres
lib/
Drive-by testfix. I'm not sure if this test is being run by buildbot,
since it didn't look like it could possibly work otherwise.
lib/
Tests
-----
./bin/test -vv -t mailinglist
./bin/test -vv --layer=Mailman
Great, thanks Edwin. Small note below that you can choose to ignore.
> === modified file 'lib/lp/ registry/ model/mailingli st.py' registry/ model/mailingli st.py 2010-04-23 15:19:10 +0000 registry/ model/mailingli st.py 2010-06-10 13:10:37 +0000 *tables) .find( email), pation. teamID. is_in(team_ ids),
> --- lib/lp/
> +++ lib/lp/
> @@ -729,20 +726,13 @@
> Person.teamowner != None))
> )
> team_members = store.using(
> - (EmailAddress, MailingList, Person, Team),
> + (Team.name, Person.displayname, EmailAddress.
> And(TeamPartici
I only realised that it wasn't part of your change after testing it, but the And expression is not needed here. Up to you (other examples follow too.