Merge lp:~adeuring/launchpad/bug-1086876 into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | j.c.sackett on 2012-12-06 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 16350 |
| Proposed branch: | lp:~adeuring/launchpad/bug-1086876 |
| Merge into: | lp:launchpad |
| Diff against target: |
311 lines (+123/-31) 9 files modified
lib/lp/blueprints/browser/specification.py (+3/-0) lib/lp/blueprints/browser/sprint.py (+6/-6) lib/lp/blueprints/model/specification.py (+55/-15) lib/lp/blueprints/tests/test_specification.py (+49/-0) lib/lp/registry/model/distroseries.py (+1/-1) lib/lp/registry/model/milestone.py (+1/-1) lib/lp/registry/model/person.py (+6/-6) lib/lp/registry/model/productseries.py (+1/-1) lib/lp/registry/model/projectgroup.py (+1/-1) |
| To merge this branch: | bzr merge lp:~adeuring/launchpad/bug-1086876 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| j.c.sackett (community) | 2012-12-06 | Approve on 2012-12-06 | |
|
Review via email:
|
|||
Commit Message
subscribe the assignee, drafter, approver of a non-public blueprint if they do not have yet a grant to view the blueprint.
Description of the Change
The fix is simple: I renamed the ForeignKey attributes assignee/drafter/
approver of the class Specification to _assignee/
defined assignee/
attributes are set to a new value, the new "role owner" are subscribed, if
necessary.
Running "/bin/test blueprints -vv" revealed a number of locations where
assignee/
to _assignee etc there too.
The change in lib/lp/
additional SQL queries to load the assignee/drafter because the specs
were loaded via self.context.
HasSpecificatio
objects.
"/bin/test blueprints -vv" also revealed a completely unrelated problem
in some tests; I filed bug 1087314 and added an XXX to
lib/lp/
tests: ./bin/test blueprints -vvt test_setting_
no lint

Thanks.