Merge lp:~thumper/launchpad/less-wip-emails into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Tim Penhey |
Approved revision: | no longer in the source branch. |
Merged at revision: | 11826 |
Proposed branch: | lp:~thumper/launchpad/less-wip-emails |
Merge into: | lp:launchpad |
Diff against target: |
330 lines (+117/-55) 3 files modified
lib/lp/code/mail/tests/test_branchmergeproposal.py (+100/-52) lib/lp/code/model/tests/test_branchmergeproposaljobs.py (+4/-2) lib/lp/code/subscribers/branchmergeproposal.py (+13/-1) |
To merge this branch: | bzr merge lp:~thumper/launchpad/less-wip-emails |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jeroen T. Vermeulen (community) | code | Approve | |
Review via email: mp+39489@code.launchpad.net |
Commit message
Don't send email for work in progress merge proposals when requesting reviews or modifying the proposal.
Description of the change
During the QA of the change where the initial code review email doesn't go out for work in progress merge proposals, it became clear that we should be suppressing other emails, for example the review requests while work in progress, and the state change emails.
This means we won't get an email that says WIP -> Needs Review, followed by the initial review email, we'll just get the initial review email.
Also all of the reviewers get the initial review request, so extra review request emails don't go out when the proposal is work in progress.
tests:
code.
There was also some test refactoring to have the tests use updated factory methods instead of rolling their own.
Looks good. Only the slightest of superficial remarks. To recap from IRC, "there is no email job created" isn't very nice to read; "with person_ logged_ in(...) " would probably make a few tests a bit cleaner; the final condition in the IStore.find() isn't sufficiently indented.