Merge lp:~thumper/launchpad/bmp-notification-email-job into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Michael Hudson-Doyle |
Approved revision: | no longer in the source branch. |
Merge reported by: | Tim Penhey |
Merged at revision: | not available |
Proposed branch: | lp:~thumper/launchpad/bmp-notification-email-job |
Merge into: | lp:launchpad |
Prerequisite: | lp:~thumper/launchpad/new-reviewer-email-job |
Diff against target: |
423 lines (+187/-76) 5 files modified
lib/lp/code/configure.zcml (+10/-0) lib/lp/code/interfaces/branchmergeproposal.py (+21/-0) lib/lp/code/mail/branchmergeproposal.py (+22/-13) lib/lp/code/mail/tests/test_branchmergeproposal.py (+60/-62) lib/lp/code/model/branchmergeproposaljob.py (+74/-1) |
To merge this branch: | bzr merge lp:~thumper/launchpad/bmp-notification-email-job |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Hudson-Doyle | Approve | ||
Review via email: mp+21703@code.launchpad.net |
Description of the change
Pipe 3 of (approximately 7).
This branch changes the email being sent from update events to be sent using a job.
Not a lot to see here, just more of the same.
tests:
mail/
This branch is not going to be landed, but the branch at the end of the
pipeline that will be.
BTW the tests pass for this branch on ec2.
lib/lp/
- just registering the job
lib/lp/
- the interface for the job and the job creation utility
lib/lp/
- Some of the delta checking logic has moved into the event subscriber
function as we don't want to create a job for something that isn't
even going to send out some mail.
- If there are changes to see, then a job is created.
- The job contains the text_delta that would be included in the email.
lib/lp/
- tests for the job creation and the resulting email.
lib/lp/
- the implementation of the job itself.
- again this just defers most of the processing to the BMPMailer
I'm not sure that all the docstrings in lib/lp/ code/mail/ tests/test_ branchmergeprop osal.py make sense any more -- can you have a whip through and make sure they're up to date?
Otherwise, it's all good.