Merge lp:~gmb/launchpad/indexed-message-parents into lp:launchpad
Proposed by
Graham Binns
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp:~gmb/launchpad/indexed-message-parents |
Merge into: | lp:launchpad |
Diff against target: |
140 lines (+92/-4) 4 files modified
lib/canonical/launchpad/interfaces/message.py (+7/-1) lib/lp/bugs/model/bug.py (+13/-3) lib/lp/bugs/tests/test_bug_messages.py (+44/-0) lib/lp/bugs/tests/test_bugs_webservice.py (+28/-0) |
To merge this branch: | bzr merge lp:~gmb/launchpad/indexed-message-parents |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Guilherme Salgado (community) | release-critical | Approve | |
Abel Deuring (community) | Approve | ||
Review via email: mp+15486@code.launchpad.net |
Commit message
The webservice machinery should no longer blow up when encountering messages whose parents aren't linked to the same bug as their children.
To post a comment you must log in.
This branch fixes bug 394097.
The bug was caused by messages in the offending bug's set of message having parent messages that weren't linked to the bug. This caused the webservice machinery to blow up.
To counter this, we've made it so that bug.indexed_ messages ensures that IIndexedMessage .parent returns None if the parent of a message isn't linked to the same bug as the child message.
Gavin has added a regression test to cover the bug and I've added tests to cover the changes to Bug.indexed_ messages.
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files: /launchpad/ interfaces/ message. py bugs/model/ bug.py bugs/tests/ test_bug_ messages. py bugs/tests/ test_bugs_ webservice. py
lib/canonical
lib/lp/
lib/lp/
lib/lp/
== Pylint notices ==
lib/canonical/ launchpad/ interfaces/ message. py fields' (No module named restful) declarations' (No module named restful)
35: [F0401] Unable to import 'lazr.delegates' (No module named delegates)
36: [F0401] Unable to import 'lazr.restful.
37: [F0401] Unable to import 'lazr.restful.
lib/lp/ bugs/model/ bug.py .event' (No module named lifecycle) .snapshot' (No module named lifecycle)
25: [F0401] Unable to import 'email.Utils' (No module named Utils)
38: [F0401] Unable to import 'lazr.lifecycle
40: [F0401] Unable to import 'lazr.lifecycle