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

Issue 9045044: api: subscriptions -> notifications & http issue 216: DataStore (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 7 months ago by yanivi
Modified:
10 years, 7 months ago
Reviewers:
ngmiceli, peleyal, jinny7845
Base URL:
https://code.google.com/p/google-api-java-client/
Visibility:
Public.

Description

api: subscriptions -> notifications & http issue 216: DataStore depends on: https://codereview.appspot.com/9881043/ closely related changeset to deprecate all of the classes in the subscriptions package (but not quite ready for review): https://codereview.appspot.com/9535043/ Nick: careful review of everything Eyal: design review

Patch Set 1 #

Patch Set 2 : updated #

Patch Set 3 : more good stuff #

Patch Set 4 : minor #

Patch Set 5 : 15 -> 16 #

Patch Set 6 : improvements #

Patch Set 7 : fixes #

Total comments: 4

Patch Set 8 : ready #

Total comments: 42

Patch Set 9 : major improvements #

Patch Set 10 : AbstractNotification.toStringHelper #

Total comments: 31

Patch Set 11 : fixes #

Patch Set 12 : minor #

Patch Set 13 : revert google-api-client-protobuf/.project #

Patch Set 14 : fixes #

Total comments: 16

Patch Set 15 : minor #

Patch Set 16 : warning -> WARNING #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2979 lines, -429 lines) Patch
M checkstyle-suppressions.xml View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
A google-api-client-appengine/src/main/java/com/google/api/client/googleapis/extensions/appengine/notifications/AppEngineNotificationServlet.java View 1 2 3 4 5 6 7 8 1 chunk +72 lines, -0 lines 0 comments Download
A google-api-client-appengine/src/main/java/com/google/api/client/googleapis/extensions/appengine/notifications/package-info.java View 1 2 3 4 5 6 7 8 1 chunk +24 lines, -0 lines 0 comments Download
A google-api-client-assembly/android-properties/google-api-client-gson-1.15.0-rc-SNAPSHOT.jar.properties View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
A google-api-client-assembly/android-properties/google-api-client-jackson2-1.15.0-rc-SNAPSHOT.jar.properties View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M google-api-client-assembly/classpath-include View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
A google-api-client-assembly/dependencies/google-api-client-gson-dependencies.html View 1 2 3 4 5 6 7 8 1 chunk +91 lines, -0 lines 0 comments Download
A google-api-client-assembly/dependencies/google-api-client-jackson2-dependencies.html View 1 2 3 4 5 6 7 8 1 chunk +91 lines, -0 lines 0 comments Download
M google-api-client-assembly/pom.xml View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -0 lines 0 comments Download
M google-api-client-assembly/readme.html View 1 2 3 4 5 6 7 8 1 chunk +12 lines, -9 lines 0 comments Download
A google-api-client-gson/.classpath View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download
A google-api-client-gson/.project View 1 2 3 4 5 6 7 8 1 chunk +23 lines, -0 lines 0 comments Download
A google-api-client-gson/.settings/org.eclipse.jdt.core.prefs View 1 2 3 4 5 6 7 8 1 chunk +418 lines, -0 lines 0 comments Download
A google-api-client-gson/.settings/org.eclipse.jdt.ui.prefs View 1 2 3 4 5 6 7 8 1 chunk +119 lines, -0 lines 0 comments Download
A google-api-client-gson/pom.xml View 1 2 3 4 5 6 7 8 1 chunk +68 lines, -0 lines 0 comments Download
A google-api-client-gson/src/main/java/com/google/api/client/googleapis/notifications/json/gson/GsonNotificationCallback.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +78 lines, -0 lines 0 comments Download
A google-api-client-gson/src/main/java/com/google/api/client/googleapis/notifications/json/gson/package-info.java View 1 2 3 4 5 6 7 8 1 chunk +25 lines, -0 lines 0 comments Download
A google-api-client-jackson2/.classpath View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download
A google-api-client-jackson2/.project View 1 2 3 4 5 6 7 8 1 chunk +23 lines, -0 lines 0 comments Download
A google-api-client-jackson2/.settings/org.eclipse.jdt.core.prefs View 1 2 3 4 5 6 7 8 1 chunk +418 lines, -0 lines 0 comments Download
A google-api-client-jackson2/.settings/org.eclipse.jdt.ui.prefs View 1 2 3 4 5 6 7 8 1 chunk +119 lines, -0 lines 0 comments Download
A google-api-client-jackson2/pom.xml View 1 2 3 4 5 6 7 8 1 chunk +68 lines, -0 lines 0 comments Download
A google-api-client-jackson2/src/main/java/com/google/api/client/googleapis/notifications/json/jackson2/JacksonNotificationCallback.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +78 lines, -0 lines 0 comments Download
A google-api-client-jackson2/src/main/java/com/google/api/client/googleapis/notifications/json/jackson2/package-info.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +25 lines, -0 lines 0 comments Download
M google-api-client-servlet/src/main/java/com/google/api/client/googleapis/extensions/servlet/notifications/NotificationServlet.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +74 lines, -98 lines 0 comments Download
M google-api-client-servlet/src/main/java/com/google/api/client/googleapis/extensions/servlet/notifications/WebhookHeaders.java View 1 2 3 4 5 6 7 8 2 chunks +30 lines, -30 lines 0 comments Download
A google-api-client-servlet/src/main/java/com/google/api/client/googleapis/extensions/servlet/notifications/WebhookUtils.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +166 lines, -0 lines 0 comments Download
M google-api-client-servlet/src/main/java/com/google/api/client/googleapis/extensions/servlet/notifications/package-info.java View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -4 lines 0 comments Download
M google-api-client/src/main/java/com/google/api/client/googleapis/auth/oauth2/GoogleAuthorizationCodeFlow.java View 1 2 3 4 5 6 7 8 4 chunks +23 lines, -1 line 0 comments Download
M google-api-client/src/main/java/com/google/api/client/googleapis/auth/oauth2/GoogleCredential.java View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -3 lines 0 comments Download
M google-api-client/src/main/java/com/google/api/client/googleapis/notifications/AbstractNotification.java View 1 2 3 4 5 6 7 8 9 10 3 chunks +204 lines, -72 lines 0 comments Download
A google-api-client/src/main/java/com/google/api/client/googleapis/notifications/NotificationUtils.java View 1 2 3 4 5 6 7 8 1 chunk +34 lines, -0 lines 0 comments Download
M google-api-client/src/main/java/com/google/api/client/googleapis/notifications/ResourceStates.java View 1 2 3 4 5 6 7 8 2 chunks +12 lines, -23 lines 0 comments Download
M google-api-client/src/main/java/com/google/api/client/googleapis/notifications/StoredChannel.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +127 lines, -60 lines 0 comments Download
A google-api-client/src/main/java/com/google/api/client/googleapis/notifications/TypedNotification.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +131 lines, -0 lines 0 comments Download
M google-api-client/src/main/java/com/google/api/client/googleapis/notifications/TypedNotificationCallback.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +56 lines, -79 lines 0 comments Download
A google-api-client/src/main/java/com/google/api/client/googleapis/notifications/UnparsedNotification.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +141 lines, -0 lines 0 comments Download
M google-api-client/src/main/java/com/google/api/client/googleapis/notifications/UnparsedNotificationCallback.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +27 lines, -25 lines 0 comments Download
A google-api-client/src/main/java/com/google/api/client/googleapis/notifications/json/JsonNotificationCallback.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +86 lines, -0 lines 0 comments Download
A google-api-client/src/main/java/com/google/api/client/googleapis/notifications/json/package-info.java View 1 2 3 4 5 6 7 8 1 chunk +24 lines, -0 lines 0 comments Download
M google-api-client/src/main/java/com/google/api/client/googleapis/notifications/package-info.java View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -6 lines 0 comments Download
M google-api-client/src/main/java/com/google/api/client/googleapis/testing/notifications/MockUnparsedNotificationCallback.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +18 lines, -14 lines 0 comments Download
M google-api-client/src/main/java/com/google/api/client/googleapis/testing/notifications/package-info.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +4 lines, -3 lines 0 comments Download
M pom.xml View 1 2 3 4 5 6 7 8 4 chunks +27 lines, -2 lines 0 comments Download

Messages

Total messages: 12
yanivi
12 years, 6 months ago (2013-05-30 20:58:52 UTC) #1
yanivi
friendly ping
12 years, 5 months ago (2013-06-07 17:48:44 UTC) #2
ngmiceli
On 2013/06/07 17:48:44, yanivi wrote: > friendly ping Waiting on your responses to our comments ...
12 years, 5 months ago (2013-06-07 17:51:10 UTC) #3
ngmiceli
Hi, There is a lack in testing for this package, can we add unit test ...
12 years, 5 months ago (2013-06-10 19:41:45 UTC) #4
yanivi
https://codereview.appspot.com/9045044/diff/41001/google-api-client/src/main/java/com/google/api/client/googleapis/notify/ResourceStates.java File google-api-client/src/main/java/com/google/api/client/googleapis/notify/ResourceStates.java (right): https://codereview.appspot.com/9045044/diff/41001/google-api-client/src/main/java/com/google/api/client/googleapis/notify/ResourceStates.java#newcode33 google-api-client/src/main/java/com/google/api/client/googleapis/notify/ResourceStates.java:33: public static final String EXISTS = "EXISTS"; On 2013/06/10 ...
12 years, 5 months ago (2013-06-13 20:36:36 UTC) #5
yanivi
Ping. Let's get this done today.
12 years, 5 months ago (2013-06-17 12:05:25 UTC) #6
peleyal
https://codereview.appspot.com/9045044/diff/60001/google-api-client-appengine/src/main/java/com/google/api/client/googleapis/extensions/appengine/notifications/package-info.java File google-api-client-appengine/src/main/java/com/google/api/client/googleapis/extensions/appengine/notifications/package-info.java (right): https://codereview.appspot.com/9045044/diff/60001/google-api-client-appengine/src/main/java/com/google/api/client/googleapis/extensions/appengine/notifications/package-info.java#newcode20 google-api-client-appengine/src/main/java/com/google/api/client/googleapis/extensions/appengine/notifications/package-info.java:20: * @author Yaniv Inbar [Optional] Please consider add here ...
12 years, 5 months ago (2013-06-17 20:09:48 UTC) #7
yanivi
https://codereview.appspot.com/9045044/diff/60001/google-api-client-appengine/src/main/java/com/google/api/client/googleapis/extensions/appengine/notifications/package-info.java File google-api-client-appengine/src/main/java/com/google/api/client/googleapis/extensions/appengine/notifications/package-info.java (right): https://codereview.appspot.com/9045044/diff/60001/google-api-client-appengine/src/main/java/com/google/api/client/googleapis/extensions/appengine/notifications/package-info.java#newcode20 google-api-client-appengine/src/main/java/com/google/api/client/googleapis/extensions/appengine/notifications/package-info.java:20: * @author Yaniv Inbar On 2013/06/17 20:09:48, peleyal wrote: ...
12 years, 5 months ago (2013-06-18 16:07:50 UTC) #8
peleyal
Only small stuff. Let's close them ASAP, and you will be able to push it ...
12 years, 5 months ago (2013-06-18 21:27:42 UTC) #9
yanivi
https://codereview.appspot.com/9045044/diff/91002/google-api-client-servlet/src/main/java/com/google/api/client/googleapis/extensions/servlet/notifications/NotificationServlet.java File google-api-client-servlet/src/main/java/com/google/api/client/googleapis/extensions/servlet/notifications/NotificationServlet.java (right): https://codereview.appspot.com/9045044/diff/91002/google-api-client-servlet/src/main/java/com/google/api/client/googleapis/extensions/servlet/notifications/NotificationServlet.java#newcode72 google-api-client-servlet/src/main/java/com/google/api/client/googleapis/extensions/servlet/notifications/NotificationServlet.java:72: * By default it uses {@link MemoryDataStoreFactory#getDefaultInstance()} which means ...
12 years, 5 months ago (2013-06-19 00:15:44 UTC) #10
peleyal
LGTM :)
12 years, 5 months ago (2013-06-19 00:17:47 UTC) #11
jinny7845
10 years, 7 months ago (2015-04-25 12:38:43 UTC) #12
Message was sent while issue was closed.
On 2013/06/19 00:15:44, yanivi wrote:
>
https://codereview.appspot.com/9045044/diff/91002/google-api-client-servlet/s...
> File
>
google-api-client-servlet/src/main/java/com/google/api/client/googleapis/extensions/servlet/notifications/NotificationServlet.java
> (right):
> 
>
https://codereview.appspot.com/9045044/diff/91002/google-api-client-servlet/s...
>
google-api-client-servlet/src/main/java/com/google/api/client/googleapis/extensions/servlet/notifications/NotificationServlet.java:72:
> * By default it uses {@link MemoryDataStoreFactory#getDefaultInstance()} which
> means it will NOT
> On 2013/06/18 21:27:43, peleyal wrote:
> > please add WARNING at the beginning of this <p>
> 
> Done.
> 
>
https://codereview.appspot.com/9045044/diff/91002/google-api-client-servlet/s...
>
google-api-client-servlet/src/main/java/com/google/api/client/googleapis/extensions/servlet/notifications/NotificationServlet.java:73:
> * persist the notification channels when the servlet process dies, so it is a
> bad choice for a
> On 2013/06/18 21:27:43, peleyal wrote:
> > BAD CHOICE
> 
> Done.
> 
>
https://codereview.appspot.com/9045044/diff/91002/google-api-client-servlet/s...
>
google-api-client-servlet/src/main/java/com/google/api/client/googleapis/extensions/servlet/notifications/NotificationServlet.java:105:
> * application.
> On 2013/06/18 21:27:43, peleyal wrote:
> > cool :)
> > I prefer as many explanations as possible
> 
> ACK
> 
>
https://codereview.appspot.com/9045044/diff/91002/google-api-client-servlet/s...
>
google-api-client-servlet/src/main/java/com/google/api/client/googleapis/extensions/servlet/notifications/NotificationServlet.java:117:
> protected NotificationServlet(DataStoreFactory dataStoreFactory) throws
> IOException {
> On 2013/06/18 21:27:43, peleyal wrote:
> > [optional]
> > I think that you can remove this constructor and only use directly the one
> > below. so the constructor above will look like this:
> > 
> >  public NotificationServlet() throws IOException {
> >  
> >
>
this(StoredChannel.getDefaultDataStore(MemoryDataStoreFactory.getDefaultInstance()));
> > }
> 
> No, actually the whole point is that this is the recommended constructor to
use
> that takes DataStoreFactory.  You normally shouldn't need to use the
> DataStore<StoredChannel> constructor unless you need to specify which
> notification data store to use other than the default one.
> 
>
https://codereview.appspot.com/9045044/diff/91002/google-api-client/src/main/...
> File
>
google-api-client/src/main/java/com/google/api/client/googleapis/notifications/TypedNotificationCallback.java
> (right):
> 
>
https://codereview.appspot.com/9045044/diff/91002/google-api-client/src/main/...
>
google-api-client/src/main/java/com/google/api/client/googleapis/notifications/TypedNotificationCallback.java:85:
> * Any state changes occurring during this notification will not be persisted.
> On 2013/06/18 21:27:43, peleyal wrote:
> > I tried to understand what you mean here and I didn't succeeded, so maybe
it's
> > better to improve that one
> 
> Removed it.  It doesn't make sense.  Persistence of this object isn't done
here,
> so it doesn't make sense to document it here.
> 
>
https://codereview.appspot.com/9045044/diff/91002/google-api-client/src/main/...
> File
>
google-api-client/src/main/java/com/google/api/client/googleapis/notifications/UnparsedNotificationCallback.java
> (right):
> 
>
https://codereview.appspot.com/9045044/diff/91002/google-api-client/src/main/...
>
google-api-client/src/main/java/com/google/api/client/googleapis/notifications/UnparsedNotificationCallback.java:68:
> * Any state changes occurring during this notification will not be persisted.
> On 2013/06/18 21:27:43, peleyal wrote:
> > ditto
> 
> ditto
> 
>
https://codereview.appspot.com/9045044/diff/91002/google-api-client/src/main/...
> File
>
google-api-client/src/main/java/com/google/api/client/googleapis/testing/notifications/MockUnparsedNotificationCallback.java
> (right):
> 
>
https://codereview.appspot.com/9045044/diff/91002/google-api-client/src/main/...
>
google-api-client/src/main/java/com/google/api/client/googleapis/testing/notifications/MockUnparsedNotificationCallback.java:28:
> * @author Yaniv Inbar
> On 2013/06/18 21:27:43, peleyal wrote:
> > @author Matthias Linder (mlinder)
> 
> Done.
> 
>
https://codereview.appspot.com/9045044/diff/91002/google-api-client/src/main/...
> File
>
google-api-client/src/main/java/com/google/api/client/googleapis/testing/notifications/package-info.java
> (right):
> 
>
https://codereview.appspot.com/9045044/diff/91002/google-api-client/src/main/...
>
google-api-client/src/main/java/com/google/api/client/googleapis/testing/notifications/package-info.java:20:
> * @since 1.16
> On 2013/06/18 21:27:43, peleyal wrote:
> > @author Matthias Linder (mlinder)
> 
> Done.
Sign in to reply to this message.

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