Merge lp:~rharding/launchpad/store_edit_product_info_type into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Richard Harding |
Approved revision: | no longer in the source branch. |
Merged at revision: | 16120 |
Proposed branch: | lp:~rharding/launchpad/store_edit_product_info_type |
Merge into: | lp:launchpad |
Prerequisite: | lp:~rharding/launchpad/edit_product_info_type |
Diff against target: |
324 lines (+162/-33) 6 files modified
lib/lp/registry/browser/tests/test_product.py (+68/-0) lib/lp/registry/javascript/product_views.js (+4/-2) lib/lp/registry/model/product.py (+41/-9) lib/lp/registry/stories/webservice/xx-project-registry.txt (+1/-1) lib/lp/registry/tests/test_product.py (+46/-19) lib/lp/scripts/garbo.py (+2/-2) |
To merge this branch: | bzr merge lp:~rharding/launchpad/store_edit_product_info_type |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Aaron Bentley (community) | Approve | ||
Review via email: mp+128288@code.launchpad.net |
Commit message
Implement updating based on changing the information type on Product edit.
Description of the change
= Summary =
This is the second branch in allowing edits to the Product. It updates the
setter for the information type to update policies as required.
== Pre Implementation ==
Talked with Aaron about updating the policies correctly.
== Implementation Notes ==
The first update is to change the validation to make sure we allow the
_setLicense to create a commercial subscription if we've not had one
previously. This allows for a Public project to go to a Private information
type as an edit.
The second update makes sure that after we change the information type that
any policies are updated as required.
== Q/A ==
Create a new project, as a public information type, and then after you create
it go to the "Edit details" and change it to a Private type. It should adjust
accordingly and show as Private.
Create a new project, as a private information type, and then change it to
Public and it should.
== Tests ==
test_product.py
== Lint ==
Cleaned up a couple of lint errors from this and previous branch.