Merge lp:~stevenk/launchpad/reject-mail-ppa-name into lp:launchpad
Proposed by
Steve Kowalik
on 2010-10-22
| Status: | Merged |
|---|---|
| Approved by: | Robert Collins on 2010-10-22 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 11778 |
| Proposed branch: | lp:~stevenk/launchpad/reject-mail-ppa-name |
| Merge into: | lp:launchpad |
| Diff against target: |
42 lines (+9/-4) 2 files modified
lib/lp/archiveuploader/tests/test_ppauploadprocessor.py (+2/-2) lib/lp/soyuz/model/queue.py (+7/-2) |
| To merge this branch: | bzr merge lp:~stevenk/launchpad/reject-mail-ppa-name |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Robert Collins (community) | 2010-10-22 | Approve on 2010-10-22 | |
|
Review via email:
|
|||
Commit Message
Add the PPA name to the Subject of the reject message sent.
Description of the Change
This branch changes the Subject for rejected uploads to PPAs to better tell the user which PPA rejected their upload. The information is currently presented to users, in the form of a X-Launchpad-PPA header, this leaves that intact for mail filters and the like, and adds the information to the subject.
To test: bin/test -vvt test_ppauploadp
To post a comment you must log in.

I have three thoughts here.
Firstly, accepted mails also do this formatting right? how about combining that code for easier maintenance.
Secondly, having the formatter as a helper e.g. reply(status= 'rejected' )
subject = self.upload_
would allow it to be tested in isolation, for more permutations, corner cases etc.
Lastly [PPA cprov] is a bit ugly, perhaps use the full dput syntax:
[ppa:cproc/ppa]
-Rob