Merge lp:~abentley/launchpad/no-review-diff into lp:launchpad
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Edwin Grubbs on 2010-01-06 | ||||
| Approved revision: | not available | ||||
| Merged at revision: | not available | ||||
| Proposed branch: | lp:~abentley/launchpad/no-review-diff | ||||
| Merge into: | lp:launchpad | ||||
| Diff against target: |
302 lines (+35/-84) 6 files modified
lib/lp/code/browser/tests/test_branchmergeproposal.py (+10/-9) lib/lp/code/doc/branch-merge-proposal-notifications.txt (+4/-8) lib/lp/code/model/branchmergeproposaljob.py (+2/-29) lib/lp/code/model/tests/test_branchmergeproposals.py (+5/-27) lib/lp/code/scripts/tests/test_mp_creationjob.py (+3/-2) lib/lp/code/stories/branches/xx-branch-merge-proposals.txt (+11/-9) |
||||
| To merge this branch: | bzr merge lp:~abentley/launchpad/no-review-diff | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Edwin Grubbs (community) | code | 2010-01-06 | Approve on 2010-01-06 |
|
Review via email:
|
|||
| Aaron Bentley (abentley) wrote : | # |
| Edwin Grubbs (edwin-grubbs) wrote : | # |
Hi Aaron,
This branch looks good. I would just like the two docstrings changed as discussed on IRC.
merge-conditional
-Edwin
IRC Log:
[11:02 AM] <EdwinGrubbs> abentley the docstring for test_preview_
[11:03 AM] <abentley> EdwinGrubbs: The confusion between review diffs and preview diffs was one of the reasons we got rid of review diffs. A review diff shows the changes the branch author made. A preview diff shows what would happen if you merged that branch.
[11:04 AM] <abentley> EdwinGrubbs: The review_diff field on the view class now actually refers to the preview diff, so the docstring is accurate.
[11:05 AM] <EdwinGrubbs> abentley: is that first docstring in the diff correct, or should "review_diff" be "preview_diff". In the test you are checking view.preview_
[11:06 AM] <abentley> EdwinGrubbs: I think review_diff should be preview_diff_text.
[11:06 AM] <EdwinGrubbs> abentley: The docstring for test_preview_
[11:07 AM] <abentley> EdwinGrubbs: It means that if the bytes are utf-8-encoded, they should be decoded to unicode as utf-8.
[11:08 AM] <EdwinGrubbs> abentley: can you clarify that in the docstring?
[11:08 AM] Activating Flood Protection
[11:08 AM] Deactivating Flood Protection
[11:08 AM] <abentley> EdwinGrubbs: "A preview_diff in utf-8 should be decoded as utf-8" ?
[11:13 AM] <EdwinGrubbs> abentley: yes, but there is no reason to say utf-8 twice, can you say "decoded into a unicode object"?
[11:14 AM] <abentley> EdwinGrubbs: The reason to say it twice is because it should not be decoded using a different encoding.
[11:14 AM] <abentley> e.g. "A preview_diff in utf-8 should be decoded as utf-8, not utf-16"
[11:15 AM] <EdwinGrubbs> abentley: ok, that makes sense, since that's what you are really trying to test.
[11:18 AM] <EdwinGrubbs> abentley: in xx-branch-
[11:19 AM] <abentley> EdwinGrubbs: Yes.

= Summary =
Review diffs are supplanted by preview diffs, so stop generating them.
== Proposed fix == eatedJob to stop generating review diffs, while still generating preview diffs.
This patch changes MergeProposalCr
== Pre-implementation notes ==
Pre-implementation was with thumper.
== Implementation details == osal.preview_ diff is not normally writable, so the security proxy must be removed for some tests.
The APIs related to review and preview diffs are somewhat different, so
some changes were necessary, such as using unicode rather than string revision ids. Also, BranchMergeProp
== Tests ==
bin/test -vt branch-merge -t branchmerge -t test_mpcreationjobs
== Demo and Q/A ==
Not applicable; no user-visible changes.
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files: code/model/ tests/test_ branchmergeprop osals.py code/browser/ tests/test_ branchmergeprop osal.py code/scripts/ tests/test_ mp_creationjob. py code/stories/ branches/ xx-branch- merge-proposals .txt code/model/ branchmergeprop osaljob. py code/doc/ branch- merge-proposal- notifications. txt
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
== Pylint notices ==
lib/lp/ code/model/ branchmergeprop osaljob. py
21: [F0401] Unable to import 'lazr.delegates' (No module named delegates)
22: [F0401] Unable to import 'lazr.enum' (No module named enum)