Merge lp:~wallyworld/launchpad/disabled-project-bugs-shown into lp:launchpad
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Robert Collins | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 12816 | ||||
Proposed branch: | lp:~wallyworld/launchpad/disabled-project-bugs-shown | ||||
Merge into: | lp:launchpad | ||||
Diff against target: |
147 lines (+81/-13) 2 files modified
lib/lp/bugs/browser/bugtask.py (+16/-9) lib/lp/bugs/browser/tests/test_bugtask.py (+65/-4) |
||||
To merge this branch: | bzr merge lp:~wallyworld/launchpad/disabled-project-bugs-shown | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Robert Collins (community) | Approve | ||
William Grant | code* | Approve | |
Review via email: mp+57265@code.launchpad.net |
Commit message
[r=lifeless,
Description of the change
A simple fix to prevent the bug tasks table from showing tasks for inactive projects and product/distro series.
== Implementation ==
Use a BugTaskSet search to load the bug tasks for the given bug instead of reusing the already cached entire bug task list. This uses a bit extra sql but means less setup work is done to construct data objects which would otherwise not be used.
If you navigate to the inactive project, it is still possible to click through from there to a related bug. But when you get to the bug index page, there will be no bug task entry for the inactive project, which is fine.
== Tests ==
Add to existing bugs/browser/
TestBugTasksAnd
test_
test_
== Lint ==
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
Looks good. But could you use bugtask. pillar. active instead of the disjunctions? Also, I don't understand why you set both series' statuses to EXPERIMENTAL.