Merge lp:~jamesh/account-polld/facebook-plugin into lp:~phablet-team/account-polld/trunk
Status: | Merged |
---|---|
Approved by: | Sergio Schvezov |
Approved revision: | 17 |
Merged at revision: | 8 |
Proposed branch: | lp:~jamesh/account-polld/facebook-plugin |
Merge into: | lp:~phablet-team/account-polld/trunk |
Diff against target: |
404 lines (+323/-6) (has conflicts) 6 files modified
cmd/account-polld/account_manager.go (+13/-0) cmd/account-polld/main.go (+5/-4) plugins/facebook/facebook.go (+146/-0) plugins/facebook/facebook_test.go (+157/-0) plugins/gmail/plugin.go (+1/-1) plugins/plugins.go (+1/-1) Text conflict in cmd/account-polld/account_manager.go |
To merge this branch: | bzr merge lp:~jamesh/account-polld/facebook-plugin |
Related bugs: | |
Related blueprints: |
account-polld push and account notification
(Undefined)
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Sergio Schvezov | Approve | ||
Review via email: mp+226966@code.launchpad.net |
Commit message
Add Facebook plugin. It currently doesn't support paginated results, and requires a token with "manage_
Description of the change
First cut at the Facebook plugin. There are still a few issues to fix:
1. the facebook-microblog online-accounts token we are using does not have the "manage_
2. It isn't currently handling pagination of results. Notifications are automatically deleted when the user reads them though and it looks like it defaults to returning 5000 notifications, so in most cases it won't matter. The fix is to follow the "paging.next" links when we think there is more.
There is some simple tests for the response parsing logic using Go's test infrastructure. If it's okay to use Gustavo's gocheck, I'd be happy to update the tests accordingly.
The actual notification variables I'm sending are quite bare at the moment: I wasn't sure what to put in there, so I've just filled in the summary.
I've added a couple of inline minor comments.
wrt
I'll ping alex about the extra permission (I have a similar problem for gmail) and add you to an email I sent him (he promised to look into it tomorrow morning)
If you don't mind to use the "still in" bzr gocheck, feel free to do so; it's packaged as golang-gocheck-dev and it's import path is "launchpad. net/gocheck" . If you have reasons to believe the github one has things that are direly needed we should start packaging it for ubuntu now (I haven't since I didn't find an urgency for it).
I have an MP with updates to the notifications API with descriptions of what everything is; just take the "Actions" one with a grain of salt as it's subject to change on the Post side.