lp:~robru/friends/dont-block-refresh
- Get this branch:
- bzr branch lp:~robru/friends/dont-block-refresh
Branch merges
- Ken VanDine: Approve
- Ricardo Mendoza: Pending requested
-
Diff: 78 lines (+27/-16)2 files modifiedfriends/service/dispatcher.py (+7/-10)
friends/tests/test_dispatcher.py (+20/-6)
Branch information
Recent revisions
- 90. By Robert Bruce Park
-
Instead of blocking Dispatcher.Refresh until the previous refresh
completes, simply abort it instead. With test coverage. - 87. By Robert Bruce Park
-
Get better about raising exceptions to indicate error conditions.
Now that we have a viable way of indicating error conditions to our
calling code, with the failure callback, it no longer makes sense to
log & ignore error conditions. So, this commit changes most (if not
all...) of the calls to 'log.error' with calls to 'raise FriendsError'
instead.These exceptions still end up being logged thanks to
_OperationThread's traceback logging logic, and also prevent the
success callback from being called.I think we're in a pretty good state here, although we'll have to keep
an eye on this and make sure that the success callback never gets
called when there was actually an error. If we find such a case, we'll
need to fix it by identifying the error condition and then ensuring
that it raises an appropriate exception. - 85. By Robert Bruce Park
-
Fully generalize all the async code so that any protocol operation can
utilize it without needing any modifications.This commit also adds the async API onto Dispatcher.Do, SendMessage,
and SendReply, and re-unifies UploadAsync into Upload. The callbacks
are fully optional, so all previous code should be unaffected and
continue working, but you now have the option of adding callbacks to
be notified when the operations complete.This commit also adds test coverage to _OperationThread, which I
discovered was untested. - 83. By Robert Bruce Park
-
Add Upload method to Dispatcher class.
This was necessary because 'Do' was unable to specify both a URI and a
description for the uploaded image. - 82. By Robert Bruce Park
-
Merge what's left of friends.testing into friends.tests.
There used to be a bigger distinction between those modules but that
has largely been lost over time. - 81. By Robert Bruce Park
-
Split notify logic off into it's own module, friends.
utils.notify. This commit also moves it's related testsuite into it's own test
module, generally improving the overall structure and making it easier
to find.No semantic changes are introduced, API remains identical.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:friends