Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(35)

Issue 9885043: New push implementation sketch. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 3 months ago by jcgregorio_google
Modified:
11 years, 2 months ago
CC:
google-api-python-client_googlegroups.com
Visibility:
Public.

Description

A new push implementation. This updates us to the latest revision of the push API which has a much simpler interface. Look in the module doc string for how this API would be used.

Patch Set 1 #

Patch Set 2 : clean up code #

Patch Set 3 : remove push.py #

Patch Set 4 : working code #

Patch Set 5 : Added tests. #

Total comments: 94

Patch Set 6 : comments #

Total comments: 15

Patch Set 7 : comments #

Patch Set 8 : comments #

Patch Set 9 : spacing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+412 lines, -551 lines) Patch
A apiclient/channel.py View 1 2 3 4 5 6 7 8 1 chunk +285 lines, -0 lines 0 comments Download
M apiclient/errors.py View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M apiclient/push.py View 1 2 1 chunk +0 lines, -274 lines 0 comments Download
A tests/test_channel.py View 1 2 3 4 5 6 7 1 chunk +124 lines, -0 lines 0 comments Download
R tests/test_push.py View 1 2 3 4 1 chunk +0 lines, -277 lines 0 comments Download

Messages

Total messages: 21
jcgregorio_google
11 years, 3 months ago (2013-05-30 19:01:07 UTC) #1
dhermes
Is there no base file? Where did this live previously?
11 years, 3 months ago (2013-05-30 19:01:36 UTC) #2
jcgregorio_google
It lived in push.py previously, but basically every line of code changed. On Thu, May ...
11 years, 3 months ago (2013-05-30 19:02:39 UTC) #3
dhermes
Gotcher. I gave it a look, LMK when you want me to look again. On ...
11 years, 3 months ago (2013-05-30 20:02:57 UTC) #4
jcgregorio_google
OK, cleaned up code and added unit tests. Also tested against a live API.
11 years, 3 months ago (2013-06-03 19:37:52 UTC) #5
dhermes
Overall comments: 1) Is there any client code where these are being used? 2) Why ...
11 years, 3 months ago (2013-06-03 20:26:58 UTC) #6
darist
Hi Joe, I finally had a chance to look at this. I added some comments. ...
11 years, 3 months ago (2013-06-07 17:47:34 UTC) #7
jcgregorio_google
https://codereview.appspot.com/9885043/diff/14001/apiclient/channel.py File apiclient/channel.py (right): https://codereview.appspot.com/9885043/diff/14001/apiclient/channel.py#newcode8 apiclient/channel.py:8: - Notification does not dedup notification ids, that up ...
11 years, 2 months ago (2013-06-13 15:04:17 UTC) #8
darist
https://codereview.appspot.com/9885043/diff/30001/apiclient/channel.py File apiclient/channel.py (right): https://codereview.appspot.com/9885043/diff/30001/apiclient/channel.py#newcode25 apiclient/channel.py:25: channel.update(resp) Should the channel be stored again after update()? ...
11 years, 2 months ago (2013-06-13 16:13:27 UTC) #9
dhermes
https://codereview.appspot.com/9885043/diff/14001/apiclient/channel.py File apiclient/channel.py (right): https://codereview.appspot.com/9885043/diff/14001/apiclient/channel.py#newcode103 apiclient/channel.py:103: class Channel(object): Yet :) On 2013/06/13 15:04:18, jcgregorio_google wrote: ...
11 years, 2 months ago (2013-06-13 16:14:55 UTC) #10
darist
https://codereview.appspot.com/9885043/diff/14001/apiclient/channel.py File apiclient/channel.py (right): https://codereview.appspot.com/9885043/diff/14001/apiclient/channel.py#newcode251 apiclient/channel.py:251: uuid.uuid4().hex, url, expiration=expiration_ms, On 2013/06/13 16:14:55, dhermes wrote: > ...
11 years, 2 months ago (2013-06-13 18:30:03 UTC) #11
bossylobster
https://codereview.appspot.com/9885043/diff/30001/apiclient/channel.py File apiclient/channel.py (right): https://codereview.appspot.com/9885043/diff/30001/apiclient/channel.py#newcode123 apiclient/channel.py:123: example, 'web_hook'. Ha! This is very confusing, for what ...
11 years, 2 months ago (2013-06-13 18:31:17 UTC) #12
jcgregorio_google
https://codereview.appspot.com/9885043/diff/30001/apiclient/channel.py File apiclient/channel.py (right): https://codereview.appspot.com/9885043/diff/30001/apiclient/channel.py#newcode25 apiclient/channel.py:25: channel.update(resp) So notifications for a resource_id could come in ...
11 years, 2 months ago (2013-06-18 18:14:47 UTC) #13
jcgregorio_google
ping
11 years, 2 months ago (2013-06-24 18:00:11 UTC) #14
dhermes
On 2013/06/24 18:00:11, jcgregorio_google wrote: > ping Still have some unresolved comments. In particular "So ...
11 years, 2 months ago (2013-06-24 21:55:10 UTC) #15
jcgregorio_google
https://codereview.appspot.com/9885043/diff/14001/apiclient/channel.py File apiclient/channel.py (right): https://codereview.appspot.com/9885043/diff/14001/apiclient/channel.py#newcode196 apiclient/channel.py:196: setattr(self, param_name, value) Per the previous discussion, the id ...
11 years, 2 months ago (2013-06-25 17:48:05 UTC) #16
dhermes
So what is the point of the token? I guess I missed that discussion. On ...
11 years, 2 months ago (2013-06-25 19:17:12 UTC) #17
jcgregorio_google
Yeah, at one point it was supposed to be used for verification, now it's just ...
11 years, 2 months ago (2013-06-25 19:22:16 UTC) #18
darist
Some kind of verification is one of the examples I've heard about. Another example was ...
11 years, 2 months ago (2013-06-25 19:31:31 UTC) #19
dhermes
Alrighty then. LGTM. On Tue, Jun 25, 2013 at 12:31 PM, David Aristizabal <darist@google.com>wrote: > ...
11 years, 2 months ago (2013-06-25 19:33:46 UTC) #20
jcgregorio_google
11 years, 2 months ago (2013-06-25 19:37:36 UTC) #21

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b