Merge lp:~wallyworld/launchpad/pillar-owners-private-bug-visibility-702429 into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Curtis Hovey |
Approved revision: | no longer in the source branch. |
Merged at revision: | 14038 |
Proposed branch: | lp:~wallyworld/launchpad/pillar-owners-private-bug-visibility-702429 |
Merge into: | lp:launchpad |
Diff against target: |
272 lines (+101/-41) 4 files modified
lib/lp/bugs/model/bug.py (+4/-29) lib/lp/bugs/model/bugtask.py (+44/-3) lib/lp/bugs/tests/test_bugtask_search.py (+48/-9) lib/lp/services/features/flags.py (+5/-0) |
To merge this branch: | bzr merge lp:~wallyworld/launchpad/pillar-owners-private-bug-visibility-702429 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Curtis Hovey (community) | code | Approve | |
Robert Collins (community) | Needs Fixing | ||
Review via email: mp+75961@code.launchpad.net |
Commit message
[r=sinzui][bug=702429] Bugtask pillar owners can see private bugs.
Description of the change
Add extra search terms to get_bug_
== Implementation ==
The bug report is a little out of date. BugTaskResultset doesn't exist any more and Bug.userCanView has already been updated to do the right thing. What remained was to update the construction of the filter terms used in bug queries.
BugTask.
Also did some drive by lint fixes.
== Tests ==
Add a new test to test_bugtask_
- test_private_
Also, I broke up the existing large test_private_
bin/test -vvct test_bugtask -t bug.txt
== Lint ==
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
lib/lp/
looks broadly fine but:
- needs a feature flag to toggle on the new behaviour - we are likely to have perf issues and this lets us react quickly without panicking.
- you need to update the security rules as well; bug *searches* inject visibility, but direct landing on such a bug won't, the user will still get a 404.