Merge lp:~jcsackett/launchpad/dont-show-obsolete-junk into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Brad Crittenden |
Approved revision: | no longer in the source branch. |
Merged at revision: | 11373 |
Proposed branch: | lp:~jcsackett/launchpad/dont-show-obsolete-junk |
Merge into: | lp:launchpad |
Diff against target: |
217 lines (+53/-25) 6 files modified
lib/lp/registry/browser/person.py (+1/-1) lib/lp/registry/doc/person-account.txt (+1/-1) lib/lp/registry/model/person.py (+28/-16) lib/lp/registry/stories/person/xx-person-projects.txt (+2/-2) lib/lp/registry/templates/person-portlet-related-projects.pt (+1/-3) lib/lp/registry/tests/test_person.py (+20/-2) |
To merge this branch: | bzr merge lp:~jcsackett/launchpad/dont-show-obsolete-junk |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Brad Crittenden (community) | code | Approve | |
Review via email: mp+32585@code.launchpad.net |
Commit message
Fixes the related-projects for a team so that only active projects &c are shown. Incidentally fixes the branding issues with how those projects are shown (i.e. branding wasn't shown before).
Description of the change
Summary
Fixes an issue with related projects show obsolete/
Proposed fix
If possible, change the model to not return inactive projects. Otherwise, change the view to iterate over the returned set and remove anything we don't want to show.
Pre-implementation notes
Spoke with Curtis Hovey (sinzui) about the problem and investigated the view and model with him.
Implementation details
The person model's getOwnedOrDrive
The template now users pillarname/
Demo and Q/A
Go to a team page (https:/
lint
= Launchpad lint =
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
Hi Jonathan,
This branch looks good. I think the following:
return len(list( self._related_ projects( )))
could be:
return self._related_ projects( ).count( )
Please give that a whirl.
I'm marking this Approved with the understanding you'll make that change.