Merge lp:~rharding/launchpad/oops_912178 into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Richard Harding on 2012-01-06 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 14648 |
| Proposed branch: | lp:~rharding/launchpad/oops_912178 |
| Merge into: | lp:launchpad |
| Diff against target: |
143 lines (+77/-0) 4 files modified
lib/lp/app/javascript/listing_navigator.js (+26/-0) lib/lp/app/javascript/tests/test_listing_navigator.js (+24/-0) lib/lp/bugs/browser/bugtask.py (+3/-0) lib/lp/bugs/browser/tests/test_bugs.py (+24/-0) |
| To merge this branch: | bzr merge lp:~rharding/launchpad/oops_912178 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Abel Deuring (community) | code | 2012-01-05 | Approve on 2012-01-06 |
|
Review via email:
|
|||
Commit Message
[r=adeuring][bug=912178] Add missing method to BugsBugTaskSear
Description of the Change
= Summary =
The main bug search page threw an oops due to a missing method the template expected.
== Proposed Fix ==
Add the search_macro_title method to the View object so that it can be provided to the template.
== Implementation Details ==
During fixing this, it was also found that the javascript for the bug columns is built with the knowledge that there is always a content in LP.cache for it. This View does not provide a context. I added a special case in order to provide the bare minimum of a lp.client.Entry object for the rest of the javascript to proceed.
== Tests ==
./bin/test -cvvt "test_bugs\.
== Demo and Q/A ==
Make sure you can load and operate the bug listing at bugs.launchpad.
== Lint ==
Linting changed files:
lib/lp/
lib/lp/
lib/lp/
lib/lp/

looks good.