Merge lp:~james-w/launchpad/package-merge-proposal-permissions into lp:launchpad
Proposed by
James Westby
Status: | Merged |
---|---|
Approved by: | Jonathan Lange |
Approved revision: | no longer in the source branch. |
Merged at revision: | not available |
Proposed branch: | lp:~james-w/launchpad/package-merge-proposal-permissions |
Merge into: | lp:launchpad |
Diff against target: |
97 lines (+78/-4) 2 files modified
lib/canonical/launchpad/security.py (+2/-4) lib/lp/code/tests/test_branchmergeproposal.py (+76/-0) |
To merge this branch: | bzr merge lp:~james-w/launchpad/package-merge-proposal-permissions |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jonathan Lange (community) | Approve | ||
Review via email: mp+21561@code.launchpad.net |
Commit message
Edit permissions on merge proposals for source package branches now take in to account the special permissions that official branches have.
Description of the change
This allows merge proposals to work with the special permissions
of package branches.
Thanks,
James
To post a comment you must log in.
Good catch. This is very much how the permission should have been designed in the first place. A few small points:
* Remove the is_admin and is_bzr_expert checks from the merge proposal permission checks. They are already got with the new permission you add. n_set"?
* The new test should be test_package... not test_packge...
* Why do you set "self.permissio
* Why do you have an "if" statement in a test? It smells like the behaviour varies from run to run, which is bad for a test.
* Ideally, there would be two unit tests, with the second round of assertions being split out into a second test.