Merge lp:~wgrant/launchpad/branch-type-policy-model into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Brad Crittenden |
Approved revision: | no longer in the source branch. |
Merged at revision: | 15629 |
Proposed branch: | lp:~wgrant/launchpad/branch-type-policy-model |
Merge into: | lp:launchpad |
Prerequisite: | lp:~wgrant/launchpad/branch-type-policy-db |
Diff against target: |
563 lines (+315/-6) 11 files modified
lib/lp/code/model/branchnamespace.py (+64/-0) lib/lp/code/model/tests/test_branchnamespace.py (+92/-3) lib/lp/registry/browser/product.py (+6/-0) lib/lp/registry/configure.zcml (+1/-1) lib/lp/registry/enums.py (+61/-0) lib/lp/registry/interfaces/product.py (+15/-0) lib/lp/registry/interfaces/sharingservice.py (+7/-0) lib/lp/registry/model/product.py (+9/-1) lib/lp/registry/services/sharingservice.py (+19/-0) lib/lp/registry/services/tests/test_sharingservice.py (+34/-1) lib/lp/services/features/flags.py (+7/-0) |
To merge this branch: | bzr merge lp:~wgrant/launchpad/branch-type-policy-model |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Brad Crittenden (community) | code | Approve | |
Review via email: mp+114805@code.launchpad.net |
Commit message
Model and basic admin-only UI for branch sharing policies.
Description of the change
This branch adds functional branch sharing policies, and basic admin-only UI to control them, using the column added in lp:~wgrant/launchpad/branch-type-policy-db.
Branch sharing policies replace BranchVisibilit
‣ Public: Branches are public unless they contain sensitive security information.
‣ Public, can be proprietary: New branches are public, but can be made proprietary later.
‣ Proprietary, can be public: New branches are proprietary, but can be made public later. Only people who can see the project's proprietary information can create new branches.
‣ Proprietary: Branches are always proprietary. Only people who can see the project's proprietary information can create new branches.
Note that while the text says Proprietary, the implementation still says User Data. This will be changed in a later branch once Proprietary is more widely supported. Branch privacy still falls back to BranchVisibilit
You can see this in action on launchpad.dev:
- Log in as <email address hidden>.
- Add ~name12 to ~registry at <https:/
- At <https:/
- Log in as <email address hidden> and head over to <https:/
- Set the development focus to '~name12/
- Observe the privacy portlet stating default branch privacy.
- Change the branch sharing policy at <https:/
I also added an enum and model/interface definition for bug_sharing_policy, but they're as-yet unused.
Hi William,
Thanks for the nice write up for this merge proposal.
I wanted to see your changes so I appreciate the detailed instructions. Unfortunately at the step "Change the branch sharing policy..." I did not see the sharing policy listed. I then logged in as an administrator, saw the extra admin fields, but again did not see the branch sharing parts.
Otherwise your changes look good.
I'm going to abstain until I can verify the minimal UI. If you see a problem with the instructions you gave, or can verify it works for you still, please let me know.