lp:~robru/friends/replies

Created by Robert Bruce Park and last modified
Get this branch:
bzr branch lp:~robru/friends/replies
Only Robert Bruce Park can upload to this branch. If you are Robert Bruce Park please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Robert Bruce Park
Project:
Friends
Status:
Merged

Recent revisions

31. By Robert Bruce Park

Invoke the avatar expiry logic from main.py

Also fix up a bunch of test failures.

30. By Robert Bruce Park

Shorter log message for avatar downloading.

29. By Robert Bruce Park

Access token no longer necessary.

28. By Robert Bruce Park

Increase efficiency in avatar downloading.

Previously, we had to send a request to find out the URL, and the we
had to send another request to download the URL; I've streamlined that
now to just construct the URL magically, and then send a single query
direct for the avatar (unless it is cached).

27. By Robert Bruce Park

Implement avatar logic for Facebook.

Now for each published message, we query facebook for the avatar url
of the message's sender, and then we download that avatar into the
cache (if necessary).

26. By Robert Bruce Park

Drop the 'comments' 'as' field from the model schema.

Facebook's replies have been promoted to top-level comments in the
model. Instead of appearing in the 'messages' stream, there is now a
new set of streams in the format of 'reply_to/*' where * is the
message_id that is being replied to.

This commit also fixes up all the associated test breakages, with some
new test coverage of the new behavior.

25. By Robert Bruce Park

Merged lp:~cjcurran/friends/facebook-contacts.

Some style/whitespace cleanup, but also some test fixes too.

24. By Robert Bruce Park

Workaround for a bug in DeeModel.insert_sorted.

Apparently insert_sorted can't figure out where in an empty Model to
sortedly insert a new row, so we need to check for that and use
Model.append instead.

This commit also has a bit of logic in place to only do the check
once, and then once we're confident that there is actually at least
one row in the model, it replaces itself with Model.insert_sorted
directly so that it can be called much more efficiently during the
ongoing operation of the program.

23. By Robert Bruce Park

Also mock the _seen_ids dict.

22. By Robert Bruce Park

Get better about resetting state between tests.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:friends
This branch contains Public information 
Everyone can see this information.