Merge lp:~abentley/launchpad/specification-policy into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Aaron Bentley on 2012-10-10 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 16127 |
| Proposed branch: | lp:~abentley/launchpad/specification-policy |
| Merge into: | lp:launchpad |
| Diff against target: |
176 lines (+45/-16) 7 files modified
lib/lp/blueprints/browser/tests/test_specification.py (+0/-4) lib/lp/blueprints/model/specification.py (+1/-0) lib/lp/registry/model/product.py (+7/-2) lib/lp/registry/services/tests/test_sharingservice.py (+4/-5) lib/lp/registry/tests/test_product.py (+25/-1) lib/lp/registry/tests/test_sharingjob.py (+0/-2) lib/lp/testing/factory.py (+8/-2) |
| To merge this branch: | bzr merge lp:~abentley/launchpad/specification-policy |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Richard Harding (community) | 2012-10-10 | Approve on 2012-10-10 | |
|
Review via email:
|
|||
Commit Message
Specification sharing policy creates information types.
Description of the Change
= Summary =
Fix bug #1061621: Setting specification policy to "proprietary" does not add "proprietary" to sharing table
== Proposed fix ==
Update pruneUnusedPolicies to consider specification sharing policy.
== Pre-implementation notes ==
None
== LOC Rationale ==
Part of private projects.
== Implementation details ==
There were already shared tests for policies. I included Specifications sharing policies in those tests and fixed the failures. This required adding SpecificationSh
Various tests assumed that policies would not be created, and were adjusted to assume they would.
== Tests ==
bin/test -t ProductSpecific
== Demo and Q/A ==
Create a product with an open source license, then change the license to other/proprietary (so that the branch, bug, specification policies are PUBLIC).
View +sharing. "Proprietary" will not be listed under "Who it's shared with".
Change the specification policy to proprietary. "Proprietary" will be listed under "Who it's shared with".
= 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/

Thanks for the update Aaron. I think I follow along.
The comment in #49 implies there's some filtering after the fact around bug/branch policies. I just bring it up to verify there's nothing there to be added for the additional specification policy code.
Edit: never mind, but can you update the comment to also note specification types to reflect the update.