Merge lp:~nhandler/launchpad/bugfix296469.2 into lp:launchpad
Proposed by
Nathan Handler
Status: | Merged |
---|---|
Approved by: | Michael Hudson-Doyle |
Approved revision: | no longer in the source branch. |
Merged at revision: | not available |
Proposed branch: | lp:~nhandler/launchpad/bugfix296469.2 |
Merge into: | lp:launchpad |
Diff against target: |
73 lines 4 files modified
lib/lp/code/browser/branch.py (+4/-1) lib/lp/code/browser/branchmergeproposal.py (+8/-2) lib/lp/code/browser/codereviewcomment.py (+4/-1) lib/lp/code/interfaces/codereviewvote.py (+1/-2) |
To merge this branch: | bzr merge lp:~nhandler/launchpad/bugfix296469.2 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Hudson-Doyle | Approve | ||
Review via email: mp+13103@code.launchpad.net |
Commit message
The description for the review_type field on Merge Proposals used to be the same on all pages with this field. Now, each page that has a review_type field overrides the description, allowing Launchpad to display descriptions that are more appropriate for the page that they are being displayed on.
To post a comment you must log in.
Summary
Bug #296469 describes how the propose branch for merging page (+register-merge) has a description for the 'Review type' field that says "Lowercase keywords describing the type of review you're performing." You are requesting that someone else review your branch, you are not doing the actual reviewing. As a result, the description should be updated to make this more clear.
Proposed fix
The proposed fix is to adjust the call to copy_field to override the review_type description on all of the browser interfaces that reference review_type.
Pre-implementation notes
I have discussed this patch with Michael Hudson (mwhudson). He said that we should also update the description in the interface to describe what the field means in the object.
Implementation details
lib/lp/ code/browser/ branch. py: code/browser/ codereviewcomme nt.py: code/interfaces /codereviewvote .py:
* Adjust call to copy_field to override review_type description
lib/lp/
* Adjust call to copy_field to override review_type description
lib/lp/
* Modify description to be generic and applicable to all pages that reference review_type
Tests
$ ./bin/test -vvct stories/codereview nathan- laptop: ~/launchpad/ lp-branches/ devel$ ./bin/test -vvct stories/branches testing. layers. PageTestLayer tests: testing. layers. BaseLayer in 0.002 seconds. testing. layers. DatabaseLayer in 0.814 seconds. testing. layers. LibrarianLayer in 6.426 seconds. testing. layers. LaunchpadLayer in 0.000 seconds. testing. layers. FunctionalLayer in 5.173 seconds. testing. layers. GoogleServiceLa yer in 1.413 seconds. testing. layers. LaunchpadFuncti onalLayer in 0.000 seconds. testing. layers. PageTestLayer in 0.000 seconds. code/tests/ ../stories/ branches/ package- branch- merge-proposals .txt code/tests/ ../stories/ branches/ package- branch- merges- with-product- branches. txt code/tests/ ../stories/ branches/ revision- details. txt code/tests/ ../stories/ branches/ xx-bazaar- home.txt code/tests/ ../stories/ branches/ xx-branch- deletion. txt code/tests/ ../stories/ branches/ xx-branch- edit-privacy. txt code/tests/ ../stories/ branches/ xx-branch- edit.txt code/tests/ ../stories/ branches/ xx-branch- index.txt code/tests/ ../stories/ branches/ xx-branch- listings- merge-proposal- badge.txt code/tests/ ../stories/ branches/ xx-branch- listings. txt code/tests/ ../stories/ branches/ xx-branch- merge-proposals .txt code/tests/ ../stories/ branches/ xx-branch- mirror- failures. txt code/tests/ ../stories/ branches/ xx-branch- reference. txt code/tests/ ../stories/ branches/ xx-branch- tag-cloud. txt code/tests/ ../stories/ branches/ xx-branch- url-validation. txt code/tests/ ../stories/ branches/ xx-branch- visibility- policy. txt code/tests/ ../stories/ branches/ xx-branchmergep roposal- listings. txt code/tests/ ../stories/ branches/ xx-bug- branch- links.txt code/tests/ ....
Running tests at level 1
Total: 0 tests, 0 failures, 0 errors in 0.000 seconds.
nhandler@
Running tests at level 1
Running canonical.
Set up canonical.
Set up canonical.
Set up canonical.
Set up canonical.
Set up canonical.
Set up canonical.
Set up canonical.
Set up canonical.
Running:
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/lp/
lib/lp/