Merge lp:~brian-murray/launchpad/bug-97633 into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Graham Binns |
Approved revision: | no longer in the source branch. |
Merged at revision: | 11046 |
Proposed branch: | lp:~brian-murray/launchpad/bug-97633 |
Merge into: | lp:launchpad |
Diff against target: |
435 lines (+205/-24) 12 files modified
lib/canonical/launchpad/doc/notification-recipient-set.txt (+14/-1) lib/canonical/launchpad/interfaces/launchpad.py (+8/-1) lib/canonical/launchpad/mailnotification.py (+34/-11) lib/lp/bugs/doc/bugnotification-email.txt (+1/-1) lib/lp/bugs/doc/bugnotification-sending.txt (+2/-2) lib/lp/bugs/doc/bugnotifications.txt (+1/-1) lib/lp/bugs/doc/bugtask.txt (+2/-2) lib/lp/bugs/mail/tests/test_bug_task_assignment.py (+120/-0) lib/lp/bugs/model/bugtask.py (+1/-1) lib/lp/bugs/tests/test_bugchanges.py (+2/-2) lib/lp/bugs/tests/test_bugtask.py (+1/-1) lib/lp/services/mail/notificationrecipientset.py (+19/-1) |
To merge this branch: | bzr merge lp:~brian-murray/launchpad/bug-97633 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Graham Binns (community) | code | Approve | |
Review via email: mp+28109@code.launchpad.net |
Commit message
Modify new bug subscription message to identify assignment and assigner instead of treating it like a subscription.
Description of the change
= Summary =
Bug 97633 describes three issues two of which are addressed in this bug report
while the third was put into a separate bug report (bug 596974).
1) Email notification says you have been subscribed when you were assigned
2) Receive 2 emails one about the bug subscription and one about bug
transition
3) Email notification does identify self-assignment (bug 596974)
== Proposed fix ==
1) This is caused by generate_
checking if the new_recipient was an assignee. Additionally, there is no
tracking of whom the assigner was.
2) This is caused by notify_
add_bug_
task assignment changes.
== Implementation details ==
While determining how to prevent the assignee from receiving a notification
about the bug task assignee changing I discovered that
INotificationRe
the recipient list and had to create one. Additionally, there were no tests
for testing the email notifications sent to bug assignees so I wrote them in
test_bug_
When I was reading all the code to understand how the notification system
worked I also fixed some typos.
lib/canonical/
* Created a test for removing recipients
lib/canonical/
* documented remove method
lib/canonical/
* added in event_creator tracking for who assigned the task
* added in "You have been assigned" to email contents
* added new_subscribers parament to add_bug_
lib/lp/
* new file with tests for changes
lib/lp/
* added in remove method
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
* Fixed some typos
== Tests ==
bin/test -vv -t test_bug_
Test bug subscription email messages passes too:
bin/test -vv -t test_bug_subscribe