Merge lp:~abentley/launchpad/person-product-merges into lp:launchpad
Status: | Merged |
---|---|
Merged at revision: | 13008 |
Proposed branch: | lp:~abentley/launchpad/person-product-merges |
Merge into: | lp:launchpad |
Diff against target: |
269 lines (+97/-15) 7 files modified
lib/lp/code/adapters/branchcollection.py (+7/-0) lib/lp/code/adapters/tests/test_branchcollection.py (+37/-0) lib/lp/code/browser/tests/test_branchmergeproposallisting.py (+25/-11) lib/lp/code/configure.zcml (+4/-0) lib/lp/code/model/tests/test_hasmergeproposals.py (+8/-1) lib/lp/registry/interfaces/personproduct.py (+7/-2) lib/lp/registry/model/personproduct.py (+9/-1) |
To merge this branch: | bzr merge lp:~abentley/launchpad/person-product-merges |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Benji York (community) | code | Approve | |
Review via email: mp+60417@code.launchpad.net |
Commit message
Support +merges on PersonProduct.
Description of the change
= Summary =
Fix bug #739921: The link "see all merge proposals" on person/
== Proposed fix ==
Provide an adapter to convert PersonProduct into an IBranchCollection, and implement IHasMergeProposals on PersonProduct.
== Pre-implementation notes ==
None
== Implementation details ==
Implemented displayname on PersonProduct to support the view classes.
Various drive-by lint fixes.
== Tests ==
bin/test -t test_PersonProd
== Demo and Q/A ==
Create a merge proposal on a Product. Go to lpn/people/
= 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/
This branch looks good. A couple of small points:
It took me a minute to figure out the intent of test_person_ product. A
docstring or comment would probably help.
The HasMergeProposa lsMixin import in registry/ model/personpro duct.py doesn't have to be a mult-line
lib/lp/
import.