Merge lp:~sinzui/launchpad/search-oopses-1 into lp:launchpad
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 12544 | ||||
Proposed branch: | lp:~sinzui/launchpad/search-oopses-1 | ||||
Merge into: | lp:launchpad | ||||
Diff against target: |
423 lines (+123/-45) 15 files modified
buildout.cfg (+1/-1) lib/canonical/config/schema-lazr.conf (+2/-2) lib/canonical/launchpad/scripts/runlaunchpad.py (+1/-1) lib/canonical/launchpad/testing/tests/test_googleservice.py (+1/-1) lib/canonical/testing/layers.py (+1/-1) lib/lp/app/browser/root.py (+3/-5) lib/lp/app/browser/tests/launchpad-search-pages.txt (+1/-11) lib/lp/services/configure.zcml (+1/-1) lib/lp/services/googlesearch/__init__.py (+11/-4) lib/lp/services/googlesearch/configure.zcml (+7/-7) lib/lp/services/googlesearch/doc/google-searchservice.txt (+6/-7) lib/lp/services/googlesearch/doc/google-service-stub.txt.disabled (+1/-1) lib/lp/services/googlesearch/tests/googleserviceharness.py (+2/-2) lib/lp/services/googlesearch/tests/test_google.py (+84/-0) lib/lp/services/googlesearch/tests/test_googleharness.py (+1/-1) |
||||
To merge this branch: | bzr merge lp:~sinzui/launchpad/search-oopses-1 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Benji York (community) | code | Approve | |
Review via email: mp+52272@code.launchpad.net |
Description of the change
Suppress oopses from the remote Google search service.
Launchpad bug: https:/
Pre-
Test command: ./bin/test -vv \
-t launchpad-
There are several kinds of oopses
OOPS-1552A1017 (URLError: <urlopen error (110, 'Connection timed out')
OOPS-979H877 (IndexError: list index out of range)
OOPS-1539B1178 (HTTPError: HTTP Error 500: Internal Server Error)
that emanate from GoogleSearchSer
errors and raise GoogleResponseError which is handled by the view.
LaunchpadSearchView should not report GoogleResponseError as an oopses
because we know there is nothing in Lp's code to fix.
-------
RULES
* Remove the oops reporting block from LaunchpadSearch
* Convert the connection/
GoogleRes
QA
* None
LINT
lib/
lib/
lib/
lib/
IMPLEMENTATION
Removed the oops reporting block from LaunchpadSearch
lib/
lib/
Converted the connection/
lib/
lib/
This branch looks good.