Merge lp:~gmb/launchpad/comment-error-reporting-bug-571692-a into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Graham Binns |
Approved revision: | no longer in the source branch. |
Merged at revision: | 10868 |
Proposed branch: | lp:~gmb/launchpad/comment-error-reporting-bug-571692-a |
Merge into: | lp:launchpad |
Prerequisite: | lp:~gmb/launchpad/halp |
Diff against target: |
577 lines (+324/-67) 8 files modified
lib/lp/bugs/doc/externalbugtracker-comment-imports.txt (+12/-13) lib/lp/bugs/doc/externalbugtracker-comment-pushing.txt (+9/-11) lib/lp/bugs/doc/externalbugtracker-linking-back.txt (+6/-10) lib/lp/bugs/scripts/checkwatches/bugwatchupdater.py (+49/-16) lib/lp/bugs/scripts/checkwatches/core.py (+1/-4) lib/lp/bugs/scripts/checkwatches/remotebugupdater.py (+17/-9) lib/lp/bugs/scripts/checkwatches/tests/test_bugwatchupdater.py (+214/-0) lib/lp/testing/factory.py (+16/-4) |
To merge this branch: | bzr merge lp:~gmb/launchpad/comment-error-reporting-bug-571692-a |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Paul Hummer (community) | code | Approve | |
Review via email: mp+25061@code.launchpad.net |
Commit message
Errors encountered when syncing comments or back-linking to remote bugs will now be handled and reported correctly rather than being returned as "bug watch couldn't be synchronised."
Description of the change
This branch improves the handling and importing of errors that occur
when trying to sync comments with remote bugs. At the moment, those
errors aren't reported properly (i.e. they're masked as "Bug watch
failed to update" errors, which are useless. Once this branch lands the
errors will be displayed clearly on the bug watch pages.o
No lint.
== lib/lp/
- I've updated BugWatchUpdater
errors correctly if something goes wrong when syncing comments or
back-linking.
== lib/lp/
- I've tidied up some lint.
== lib/lp/
- I've altered RemoteBugUpdate
errors that occur when importing remote statuses an importances
explicitly before relying on BugWatchUpdater to deal with errors that
occur during comment syncing.
== lib/lp/
- I've added tests to cover error handling when syncing comments and
back-linking.
- I've added tests to cover the fact that the can_* booleans should be
inherited from RemoteBugUpdater.
== lib/lp/
- I've update makeBugWatch() to allow it to accept a bug_task argument.
- I've updated makeBugComment to allow it to accept a bug_watch
argument.