Merge lp:~julian-edwards/launchpad/sync-email-from-addr-bug-817102 into lp:launchpad
Proposed by
Julian Edwards
Status: | Merged |
---|---|
Approved by: | Julian Edwards |
Approved revision: | no longer in the source branch. |
Merged at revision: | 13555 |
Proposed branch: | lp:~julian-edwards/launchpad/sync-email-from-addr-bug-817102 |
Merge into: | lp:launchpad |
Diff against target: |
133 lines (+40/-4) 5 files modified
lib/lp/soyuz/adapters/notification.py (+10/-1) lib/lp/soyuz/adapters/tests/test_notification.py (+23/-0) lib/lp/soyuz/model/packagecopyjob.py (+1/-1) lib/lp/soyuz/scripts/packagecopier.py (+5/-2) lib/lp/soyuz/tests/test_packagecopyjob.py (+1/-0) |
To merge this branch: | bzr merge lp:~julian-edwards/launchpad/sync-email-from-addr-bug-817102 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jeroen T. Vermeulen (community) | Approve | ||
Review via email: mp+69659@code.launchpad.net |
Commit message
[r=jtv][bug=817102] Sync announcement emails now come from the sync requester not the package changer.
Description of the change
The announcement emails for syncs into a distro were heading out with the From: address set as the Changed-by on the package being synced. This is wrong, it should be the person who requested the sync.
This branch fixes that.
To post a comment you must log in.
That should do the trick. May be worth documenting that the override doesn't happen if the given user has no email address; I believe you hit snags with that case in the real world.
There's a stupendous amount of setup for such a simple test. Would be nice if that could be avoided somehow, but I'll admit it's a thorny case.