Merge lp:~abentley/launchpad/proprietary-karma into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Aaron Bentley on 2012-11-20 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 16294 |
| Proposed branch: | lp:~abentley/launchpad/proprietary-karma |
| Merge into: | lp:launchpad |
| Diff against target: |
324 lines (+90/-80) 6 files modified
lib/lp/registry/browser/person.py (+1/-1) lib/lp/registry/browser/tests/test_person.py (+18/-22) lib/lp/registry/doc/person-karma.txt (+3/-2) lib/lp/registry/interfaces/person.py (+3/-7) lib/lp/registry/model/person.py (+32/-42) lib/lp/registry/tests/test_person.py (+33/-6) |
| To merge this branch: | bzr merge lp:~abentley/launchpad/proprietary-karma |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Richard Harding (community) | 2012-11-20 | Approve on 2012-11-20 | |
|
Review via email:
|
|||
Commit Message
Filter karma for product privacy.
Description of the Change
= Summary =
Fix bug #1078470: Cannot see user's profile page because it lists a proprietary project
== Proposed fix ==
Use standard product privacy filtering code.
== Pre-implementation notes ==
None
== LOC Rationale ==
Part of Private Projects
== Implementation details ==
Removed iterTopProjects
Stormified the query, then changed it to use Products and Distributions directly, since that's what the calling code really wants. Then changed it to return only active products on the query side. Then added the privacy filter. This reduces the query count slightly, since it no longer needs to repeatedly call IPillarNameSet)
Updated tests to reflect the fact that getProjectsAndC
test_karma_
== Tests ==
bin/test -t test_karma_
== Demo and Q/A ==
Hard to QA because karma cache is updated by a script and staging doesn't have updated data on ~a.rosales
= Launchpad lint =
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/

#208
Multiple imports on the one line.