Merge lp:~bac/launchpad/bug-652149 into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Brad Crittenden |
Approved revision: | 11705 |
Merged at revision: | 11789 |
Proposed branch: | lp:~bac/launchpad/bug-652149 |
Merge into: | lp:launchpad |
Diff against target: |
485 lines (+192/-55) 8 files modified
lib/lp/code/browser/branchlisting.py (+3/-1) lib/lp/code/browser/branchvisibilitypolicy.py (+21/-14) lib/lp/code/browser/tests/test_branchlisting.py (+77/-13) lib/lp/code/stories/branches/xx-branch-visibility-policy.txt (+51/-15) lib/lp/code/templates/branch-visibility.pt (+2/-2) lib/lp/code/templates/project-branches.pt (+37/-8) lib/lp/registry/browser/project.py (+1/-1) lib/lp/testing/sampledata.py (+0/-1) |
To merge this branch: | bzr merge lp:~bac/launchpad/bug-652149 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Curtis Hovey (community) | ui | Approve | |
Henning Eggers (community) | ui* | Approve | |
Jeroen T. Vermeulen (community) | code | Approve | |
Review via email: mp+38705@code.launchpad.net |
Commit message
Provide an indication of the default branch visibility rule for a project group and a link to 'Define branch visibility' for LP admins and commercial admins.
Description of the change
= Summary =
The code view for a project group did not show the default branch rules.
It did have a link for 'Define branch visibility' but the permission on
it was wrong, so commercial admins did not see it.
== Proposed fix ==
Convert the template to main_side, add a portlet for the privacy setting
display and a portlet for the link to define branch visibility.
== Pre-implementation notes ==
Brief chat with Curtis.
== Implementation details ==
I included some drive-by fixes. Removed redundancy from
lp.testing.
product-branches to not use conditional paragraphs.
== Tests ==
bin/test -vvm lp.code -t TestProjectGrou
== Demo and Q/A ==
Visit a project group such as https:/
determine everything is in order.
= Launchpad lint =
Bah, I'll check to ensure the real lint issues are fixed.
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
./lib/lp/
1: narrative uses a moin header.
67: source exceeds 78 characters.
94: narrative uses a moin header.
104: source exceeds 78 characters.
107: source exceeds 78 characters.
125: source exceeds 78 characters.
126: want exceeds 78 characters.
134: source exceeds 78 characters.
138: source exceeds 78 characters.
146: narrative uses a moin header.
198: narrative uses a moin header.
231: source exceeds 78 characters.
253: source exceeds 78 characters.
./lib/lp/
1388: E302 expected 2 blank lines, found 1
Looks fine, apart from a few things we discussed on IRC: view())
* Render & search views in your tests using BeautifulSoup(
* Multi-line strings would be nicer than ("line" "line") in tests.
* The view inherits from both LaunchpadFormView and, indirectly, LaunchpadView.