Merge lp:~jcsackett/launchpad/404-project-milestones-privacy into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | j.c.sackett on 2012-11-21 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 16296 |
| Proposed branch: | lp:~jcsackett/launchpad/404-project-milestones-privacy |
| Merge into: | lp:launchpad |
| Diff against target: |
82 lines (+42/-2) 2 files modified
lib/lp/registry/browser/tests/test_projectgroup.py (+39/-1) lib/lp/registry/model/projectgroup.py (+3/-1) |
| To merge this branch: | bzr merge lp:~jcsackett/launchpad/404-project-milestones-privacy |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Deryck Hodge (community) | 2012-11-20 | Approve on 2012-11-20 | |
|
Review via email:
|
|||
Commit Message
Fixes ProjectMilestone generation in the milestone page to not link private products for unpriveleged users.
Description of the Change
Summary
=======
Going to a projectmilestone index page causes a 403 when the milestone
incorporates data from private products.
This is because product and milestone data isn't sufficiently filtered. While
the initial query to fetch all milestones on a project's associated products
filters, a second query is made to group the milestones appropriated and
combine the data for product milestones with the same name. This second a
query is not filtered, and should be.
Preimp
======
Spoke with Curtis Hovey about the initial problem.
Implementation
==============
Add the privacy filter to the second query.
Tests
=====
bin/test -vvct test_mixed_
QA
==
QA steps are listed in a comment by Curtis Hovey on the bug.
LoC
===
Part of private projects.
Lint
====
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
