Merge lp://staging/~gary/launchpad/bug713382 into lp://staging/launchpad

Proposed by Gary Poster
Status: Merged
Approved by: Curtis Hovey
Approved revision: no longer in the source branch.
Merged at revision: 12361
Proposed branch: lp://staging/~gary/launchpad/bug713382
Merge into: lp://staging/launchpad
Diff against target: 51 lines (+26/-1)
2 files modified
lib/lp/bugs/model/bug.py (+12/-1)
lib/lp/bugs/tests/test_bugchanges.py (+14/-0)
To merge this branch: bzr merge lp://staging/~gary/launchpad/bug713382
Reviewer Review Type Date Requested Status
Curtis Hovey (community) code Approve
j.c.sackett (community) code* Approve
Review via email: mp+49145@code.staging.launchpad.net

Commit message

[r=jcsackett,sinzui][bug=713382] test and fix for bug 713382

Description of the change

This branch fixes the linked bug with a test (from Danilo) and a simple fix. The use of the temporary recipients object is a bit odd and ugly, but we want to know why the recipients were added, which is the point of the recipients collection, but we don't know yet if we can add them. Therefore, I did what I did.

make lint is happy.

Run the test with "./bin/test -vvt test_no_lifecycle_email_despite_structural_subscription" as you'd expect.

To QA, log in as a user that has malone.advanced-subscriptions.enabled true (on production, that means you are a member of the malone alpha team; on dev, on https://launchpad.dev/+feature-rules you can set "malone.advanced-subscriptions.enabled default 100 on" as <email address hidden>:test). Also make sure that the user will receive notifications for their own actions (go to the user's "details" page, and select this option: "Send me bug notifications for changes I make") or make sure that, at the end of this process, the comment you make is as a different user. Now, make a structural subscription to a product. The default setting will be to subscribe to all notifications; that is what we want, so you should not have to do anything special. Next, go to a bug in that product. Directly change your URL to go to the bug's +subscribe page, like https://bugs.launchpad.net/launchpad/+bug/548/+subscribe . There, choose "Any change is made to this bug, other than a new comment being added." or "The bug is fixed or re-opened." and click Continue. Then go to the bug and make a comment. Ask the LOSAs to run "cronscripts/send-bug-notifications.py -vv" and give you the output (warn them that it might be large). In that output, verify that the user did not get a notification for the comment you made.

Thank you

Gary

To post a comment you must log in.
Revision history for this message
j.c.sackett (jcsackett) wrote :

This looks good to me. You're right that it's a little awkward, but it does seem like the best solution.

review: Approve (code*)
Revision history for this message
Curtis Hovey (sinzui) wrote :

This looks good to land.

review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.