Merge lp:~abentley/launchpad/transitive-confidential into lp:launchpad
| Status: | Superseded |
|---|---|
| Proposed branch: | lp:~abentley/launchpad/transitive-confidential |
| Merge into: | lp:launchpad |
| Diff against target: |
347 lines (+97/-167) 4 files modified
lib/lp/registry/browser/product.py (+0/-41) lib/lp/registry/browser/tests/test_product.py (+0/-113) lib/lp/registry/model/product.py (+40/-13) lib/lp/registry/tests/test_product.py (+57/-0) |
| To merge this branch: | bzr merge lp:~abentley/launchpad/transitive-confidential |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Aaron Bentley (community) | Needs Fixing on 2012-11-22 | ||
| Richard Harding (community) | 2012-11-19 | Approve on 2012-11-19 | |
|
Review via email:
|
|||
This proposal has been superseded by a proposal from 2012-11-23.
Commit Message
Forbid public artifacts on confidential products.
Description of the Change
= Summary =
Fix bug #1079785: public artifacts are permitted on confidential projects
== Proposed fix ==
Move checks from view to model and raise exceptions. Add shared bug check.
== Pre-implementation notes ==
None
== LOC Rationale ==
Reduces LOC
== Implementation details ==
Revert 16258 and migrate code from getPublicWarning. Add check for shared bugs.
Remove getPublicWarning and related code and tests.
== Tests ==
bin/test -t test_change_
== Demo and Q/A ==
Create a public product with other/proprietary license. Create a public branch, bug, blueprint. Create a private shared bug. You should not be able to change its information type to proprietary until you've made all artifacts private and removed the extra bugtask from the shared bug.
= Launchpad lint =
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
lib/lp/
lib/lp/

Further discussion with Curtis reveals that only Proprietary and Embargoed artefacts should be permitted when transitioning product to proprietary/ embargoed. See bug.