Merge lp:~matsubara/launchpad/bug-436640 into lp:launchpad/db-devel
Proposed by
Diogo Matsubara
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Diogo Matsubara | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | not available | ||||
Proposed branch: | lp:~matsubara/launchpad/bug-436640 | ||||
Merge into: | lp:launchpad/db-devel | ||||
Diff against target: |
372 lines 6 files modified
lib/canonical/launchpad/webapp/errorlog.py (+17/-4) lib/canonical/launchpad/webapp/publication.py (+1/-1) lib/canonical/launchpad/webapp/tests/test_errorlog.py (+80/-32) lib/canonical/launchpad/webapp/tests/test_publication.py (+3/-0) lib/canonical/launchpad/webapp/tests/test_user_requested_oops.py (+10/-0) lib/lp/bugs/doc/checkwatches.txt (+2/-0) |
||||
To merge this branch: | bzr merge lp:~matsubara/launchpad/bug-436640 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gary Poster (community) | Approve | ||
Review via email: mp+13016@code.launchpad.net |
Commit message
[r=gary][ui=none][bug=436640] add api to generate informational oopses in errorlog.py and flag DisconnectionErrors and UserRequestOops as informational only.
To post a comment you must log in.
This branch add a new api: handling() to the ErrorReportingU tility which allows OOPS reports to be flagged as informational only. It also updates DisconnectionErrors and UserRequestOops to use said API.
Tests
$ bin/test -u test_errorlog requested_ oops
$ bin/test -u test_publication
$ bin/test -u test_user_
Demo and Q/A
1. Open https:/ /staging. launchpad. net/++oops+ + /lp-oops. canonical. com/oops/ ?oopsid= $oops_id_ from_step_ 2
2. Grab the OOPS id in the html source code
3. Wait 10 minutes for the oops to be synced from staging to devpad
4. https:/
5. Check that the OOPS have the flag Informational: True in the left column