Merge lp:~pcjc2/launchpad/allow-empty-comments into lp:launchpad
Proposed by
Peter Clifton
Status: | Merged |
---|---|
Approved by: | Graham Binns |
Approved revision: | no longer in the source branch. |
Merged at revision: | 12128 |
Proposed branch: | lp:~pcjc2/launchpad/allow-empty-comments |
Merge into: | lp:launchpad |
Diff against target: |
218 lines (+92/-42) 3 files modified
lib/lp/bugs/scripts/bugimport.py (+3/-1) lib/lp/bugs/scripts/tests/test_bugimport.py (+77/-30) scripts/bug-import.py (+12/-11) |
To merge this branch: | bzr merge lp:~pcjc2/launchpad/allow-empty-comments |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Graham Binns (community) | code | Approve | |
Peter Clifton (community) | Abstain | ||
Review via email: mp+43449@code.launchpad.net |
Commit message
[r=gmb][ui=none][bug=692951] Avoid insersion of an "<empty comment>" placeholder for imported bug comments which contain an attachment.
Description of the change
Without this change, it is not possible for the import to give the same clean, uncluttered blank comments you see when adding files directly from within the launchpad web-interface.
To post a comment you must log in.
Hi Peter,
Thanks for this branch. I'm marking it "Needs Fixing" because your
change is untested. We're very strict about adding tests for new
features in Launchpad, and there needs to be a unit test for this new
code before it can land.
The new test should go in lib/lp/ bugs/scripts/ tests/test_ bugimport. py,
along with the other bug import tests. If you need any help writing the
test feel free to ping me (gmb) or Gavin (allenap) in #launchpad-dev on
Freenode.
Besides the test issue I've got one other comment:
37 self.parser. add_option( '--dont- verify- users', dest='verify_ users', 'store_ false', default=True) add_option( '--allow- empty-comments' , empty_comments' , 'store_ true', default=False)
38 help="Don't verify newly created users",
39 action=
40 + self.parser.
41 + dest='allow_
42 + help="Allow empty bug comments",
43 + action=
It would be really great if you could format this, and the lines above
it (which are formatted incorrectly) according to our style guide, which
is thus: