Merge lp:~abentley/launchpad/bugcomment-as-icomment into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Brad Crittenden on 2012-01-20 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 14739 |
| Proposed branch: | lp:~abentley/launchpad/bugcomment-as-icomment |
| Merge into: | lp:launchpad |
| Prerequisite: | lp:~abentley/launchpad/comment-lint |
| Diff against target: |
776 lines (+205/-102) 25 files modified
lib/canonical/launchpad/icing/css/modifiers.css (+2/-3) lib/lp/bugs/browser/bugcomment.py (+10/-24) lib/lp/bugs/browser/tests/test_bugcomment.py (+1/-1) lib/lp/bugs/doc/bugcomment.txt (+1/-1) lib/lp/bugs/interfaces/bugmessage.py (+3/-7) lib/lp/bugs/stories/bugs/xx-bug-comments-truncated.txt (+3/-3) lib/lp/bugs/stories/bugs/xx-bug-index-lots-of-comments.txt (+3/-3) lib/lp/bugs/stories/bugs/xx-numbered-comments.txt (+1/-1) lib/lp/bugs/templates/bugcomment-box.pt (+2/-8) lib/lp/code/browser/branch.py (+2/-2) lib/lp/code/browser/branchmergeproposal.py (+6/-3) lib/lp/code/browser/codereviewcomment.py (+16/-20) lib/lp/code/browser/configure.zcml (+6/-1) lib/lp/code/browser/tests/test_branchmergeproposal.py (+17/-1) lib/lp/code/browser/tests/test_codereviewcomment.py (+8/-1) lib/lp/code/templates/codereviewcomment-body.pt (+1/-2) lib/lp/registry/browser/configure.zcml (+5/-1) lib/lp/registry/browser/distroseriesdifference.py (+14/-10) lib/lp/scripts/harness.py (+13/-1) lib/lp/services/comments/browser/configure.zcml (+8/-2) lib/lp/services/comments/browser/messagecomment.py (+61/-0) lib/lp/services/comments/doc/conversation.txt (+4/-1) lib/lp/services/comments/interfaces/conversation.py (+8/-1) lib/lp/services/comments/templates/comment-body.pt (+5/-1) lib/lp/testing/factory.py (+5/-4) |
| To merge this branch: | bzr merge lp:~abentley/launchpad/bugcomment-as-icomment |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Brad Crittenden (community) | code | 2012-01-20 | Approve on 2012-01-20 |
|
Review via email:
|
|||
Commit Message
Use common rendering for BugComment and CodeReviewComment body text.
Description of the Change
= Summary =
Truncate long code review comments and provide "Read more..." link.
== Proposed fix ==
Use common rendering for BugComment and CodeReviewComment
== Pre-implementation notes ==
Discussed with deryck
== Implementation details ==
Provide MessageComment to implement IComment in terms of IMessage, and use in CodeReivewComment, BugComment, DistroSeriesDif
Move the code for truncation/Read More from bug comments to lp.services.
IComment gains too_long and text_for_display attributes. MessageComment implements them.
Support truncation to 3200 chars in CodeReviewDispl
Adjust CodeReviewDispl
Use a single "comment-text" css class, instead of multiple ones.
Add browser_open to harness.py, to simplify interactive testing.
== Tests ==
bin/test -t test_bugcomment -t bugcomment.txt -t xx-bug-
== Demo and Q/A ==
Create a code review comment longer than 3200 chars. It should be truncated and have a "Read more" link. That link should display the full code review comment.
= Launchpad lint =
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/canonical
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
./lib/canonical
61: Unknown Property name.: filter
62: Unknown Property name.: -ms-filter
140: Unknown Property name.: filter
141: Unknown Property name.: -ms-filter
61: I009: Wrong separator on property: value pair.
140: I009: Wrong separator on property: value pair.
./lib/lp/
26: 'from storm.expr import *' used; unable to detect undefined names
28: 'from storm.locals import *' used; unable to detect undefined names
21: 'rlcompleter' imported but unused

Aaron this is a really nice branch. It was very readable and understandable. Thanks for the nice work. I've got no suggested changes or questions.