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

Issue 6852082: Supporting NDB in oauth2client/appengine, and beginning *slow* transition to this datastore API. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 7 months ago by dhermes
Modified:
12 years, 7 months ago
CC:
google-api-python-client_googlegroups.com
Visibility:
Public.

Patch Set 1 #

Total comments: 16

Patch Set 2 : Addressing some review comments. #

Total comments: 8

Patch Set 3 : Adding test for XSRF NDB stuff and moving implicit storage in OAuth deco back to DB. #

Patch Set 4 : Updating docstrings #

Total comments: 8

Patch Set 5 : Fixing typo and adding note in StorageByKeyName about cache with NDB models. #

Patch Set 6 : Fixing import order in test and adding extra assert to test_get_and_put_mixed_db_storage_ndb_get #

Patch Set 7 : Add assert to test_get_and_put_ndb #

Unified diffs Side-by-side diffs Delta from patch set Stats (+322 lines, -22 lines) Patch
M oauth2client/appengine.py View 1 2 3 4 9 chunks +187 lines, -20 lines 0 comments Download
M tests/test_oauth2client_appengine.py View 1 2 3 4 5 6 6 chunks +135 lines, -2 lines 0 comments Download

Messages

Total messages: 17
dhermes
Hi Joe and Ali, This is support for NDB at parity with the DB models ...
12 years, 7 months ago (2012-11-22 01:23:46 UTC) #1
Ali Afshar
Overall, very nice. https://codereview.appspot.com/6852082/diff/1/oauth2client/appengine.py File oauth2client/appengine.py (right): https://codereview.appspot.com/6852082/diff/1/oauth2client/appengine.py#newcode34 oauth2client/appengine.py:34: from google.appengine.ext import ndb Is there ...
12 years, 7 months ago (2012-11-22 06:01:17 UTC) #2
dhermes
https://codereview.appspot.com/6852082/diff/1/oauth2client/appengine.py File oauth2client/appengine.py (right): https://codereview.appspot.com/6852082/diff/1/oauth2client/appengine.py#newcode34 oauth2client/appengine.py:34: from google.appengine.ext import ndb On 2012/11/22 06:01:17, Ali Afshar ...
12 years, 7 months ago (2012-11-22 18:01:42 UTC) #3
Ali Afshar
https://codereview.appspot.com/6852082/diff/1/oauth2client/appengine.py File oauth2client/appengine.py (right): https://codereview.appspot.com/6852082/diff/1/oauth2client/appengine.py#newcode34 oauth2client/appengine.py:34: from google.appengine.ext import ndb On 2012/11/22 18:01:42, dhermes wrote: ...
12 years, 7 months ago (2012-11-23 07:21:53 UTC) #4
dhermes
https://codereview.appspot.com/6852082/diff/1/oauth2client/appengine.py File oauth2client/appengine.py (right): https://codereview.appspot.com/6852082/diff/1/oauth2client/appengine.py#newcode34 oauth2client/appengine.py:34: from google.appengine.ext import ndb I'm not too worried about ...
12 years, 7 months ago (2012-11-23 23:17:53 UTC) #5
Ali Afshar
LGTM On 2012/11/23 23:17:53, dhermes wrote: > https://codereview.appspot.com/6852082/diff/1/oauth2client/appengine.py > File oauth2client/appengine.py (right): > > https://codereview.appspot.com/6852082/diff/1/oauth2client/appengine.py#newcode34 ...
12 years, 7 months ago (2012-11-24 03:09:42 UTC) #6
dhermes
So can I commit? Shall I wait for Joe's review (I know it's a holiday, ...
12 years, 7 months ago (2012-11-24 05:31:26 UTC) #7
Ali Afshar
Please always wait for Joe's review. Thanks.
12 years, 7 months ago (2012-11-24 05:53:57 UTC) #8
jcgregorio_google
https://codereview.appspot.com/6852082/diff/6001/oauth2client/appengine.py File oauth2client/appengine.py (right): https://codereview.appspot.com/6852082/diff/6001/oauth2client/appengine.py#newcode85 oauth2client/appengine.py:85: class SiteXsrfSecretKeyNDB(ndb.Model): This isn't used anywhere, is it really ...
12 years, 7 months ago (2012-11-25 03:12:08 UTC) #9
dhermes
https://codereview.appspot.com/6852082/diff/6001/oauth2client/appengine.py File oauth2client/appengine.py (right): https://codereview.appspot.com/6852082/diff/6001/oauth2client/appengine.py#newcode85 oauth2client/appengine.py:85: class SiteXsrfSecretKeyNDB(ndb.Model): As with the FlowProperty, this are intended ...
12 years, 7 months ago (2012-11-25 19:45:07 UTC) #10
jcgregorio_google
https://codereview.appspot.com/6852082/diff/6001/oauth2client/appengine.py File oauth2client/appengine.py (right): https://codereview.appspot.com/6852082/diff/6001/oauth2client/appengine.py#newcode85 oauth2client/appengine.py:85: class SiteXsrfSecretKeyNDB(ndb.Model): I'd like a longer explanation in the ...
12 years, 7 months ago (2012-11-26 04:20:09 UTC) #11
dhermes
https://codereview.appspot.com/6852082/diff/6001/oauth2client/appengine.py File oauth2client/appengine.py (right): https://codereview.appspot.com/6852082/diff/6001/oauth2client/appengine.py#newcode85 oauth2client/appengine.py:85: class SiteXsrfSecretKeyNDB(ndb.Model): On 2012/11/26 04:20:09, jcgregorio_google wrote: > I'd ...
12 years, 7 months ago (2012-11-26 17:18:35 UTC) #12
jcgregorio_google
https://codereview.appspot.com/6852082/diff/9003/oauth2client/appengine.py File oauth2client/appengine.py (right): https://codereview.appspot.com/6852082/diff/9003/oauth2client/appengine.py#newcode296 oauth2client/appengine.py:296: Since CredentialsProperty stores data as s blob and this ...
12 years, 7 months ago (2012-11-26 18:12:13 UTC) #13
dhermes
https://codereview.appspot.com/6852082/diff/9003/oauth2client/appengine.py File oauth2client/appengine.py (right): https://codereview.appspot.com/6852082/diff/9003/oauth2client/appengine.py#newcode296 oauth2client/appengine.py:296: Since CredentialsProperty stores data as s blob and this ...
12 years, 7 months ago (2012-11-26 18:25:56 UTC) #14
jcgregorio_google
https://codereview.appspot.com/6852082/diff/9003/tests/test_oauth2client_appengine.py File tests/test_oauth2client_appengine.py (right): https://codereview.appspot.com/6852082/diff/9003/tests/test_oauth2client_appengine.py#newcode62 tests/test_oauth2client_appengine.py:62: from oauth2client.appengine import FlowNDBProperty import order https://codereview.appspot.com/6852082/diff/9003/tests/test_oauth2client_appengine.py#newcode381 tests/test_oauth2client_appengine.py:381: self.assertEqual('bar', ...
12 years, 7 months ago (2012-11-26 18:34:38 UTC) #15
dhermes
https://codereview.appspot.com/6852082/diff/9003/tests/test_oauth2client_appengine.py File tests/test_oauth2client_appengine.py (right): https://codereview.appspot.com/6852082/diff/9003/tests/test_oauth2client_appengine.py#newcode62 tests/test_oauth2client_appengine.py:62: from oauth2client.appengine import FlowNDBProperty On 2012/11/26 18:34:39, jcgregorio_google wrote: ...
12 years, 7 months ago (2012-11-26 18:39:38 UTC) #16
jcgregorio_google
12 years, 7 months ago (2012-11-26 18:42:27 UTC) #17
LGTM
Sign in to reply to this message.

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