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

Issue 150890043: code review 150890043: google-api-go-client: Implement partial requests by add... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 1 month ago by gmlewis1
Modified:
11 years ago
Reviewers:
bradfitz
CC:
bradfitz, golang-codereviews
Visibility:
Public.

Description

google-api-go-client: Implement partial requests by adding Fields option. Demonstration of partial requests added to calendar example. As a result, only the calender:v3 API has been updated. All remaining APIs will be updated in a separate CL.

Patch Set 1 #

Patch Set 2 : diff -r e1c259484b49 https://code.google.com/p/google-api-go-client #

Patch Set 3 : diff -r e1c259484b49 https://code.google.com/p/google-api-go-client #

Total comments: 6

Patch Set 4 : diff -r e1c259484b49 https://code.google.com/p/google-api-go-client #

Total comments: 4

Patch Set 5 : diff -r e1c259484b49 https://code.google.com/p/google-api-go-client #

Total comments: 8

Patch Set 6 : diff -r e1c259484b49 https://code.google.com/p/google-api-go-client #

Patch Set 7 : diff -r e1c259484b49 https://code.google.com/p/google-api-go-client #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1197 lines, -6 lines) Patch
M calendar/v3/calendar-api.json View 5 chunks +9 lines, -5 lines 0 comments Download
M calendar/v3/calendar-gen.go View 65 chunks +407 lines, -0 lines 0 comments Download
M examples/calendar.go View 1 chunk +21 lines, -0 lines 0 comments Download
M google-api-go-generator/gen.go View 2 chunks +11 lines, -1 line 0 comments Download
M google-api-go-generator/testdata/blogger-3.want View 52 chunks +341 lines, -0 lines 0 comments Download
M google-api-go-generator/testdata/getwithoutbody.want View 2 chunks +11 lines, -0 lines 0 comments Download
M google-api-go-generator/testdata/mapofarrayofobjects.want View 1 chunk +11 lines, -0 lines 0 comments Download
M google-api-go-generator/testdata/mapofstrings-1.want View 1 chunk +11 lines, -0 lines 0 comments Download
M google-api-go-generator/testdata/resource-named-service.want View 52 chunks +341 lines, -0 lines 0 comments Download
M googleapi/googleapi.go View 1 chunk +34 lines, -0 lines 0 comments Download

Messages

Total messages: 8
gmlewis1
Hello bradfitz@golang.org (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/google-api-go-client
11 years, 1 month ago (2014-09-24 05:14:03 UTC) #1
bradfitz
https://codereview.appspot.com/150890043/diff/40001/examples/calendar.go File examples/calendar.go (right): https://codereview.appspot.com/150890043/diff/40001/examples/calendar.go#newcode53 examples/calendar.go:53: listRes, err := svc.CalendarList.List().Fields("items/id").Do() whoa, I would've never guessed ...
11 years ago (2014-09-24 17:05:35 UTC) #2
gmlewis1
PTAL https://codereview.appspot.com/150890043/diff/40001/examples/calendar.go File examples/calendar.go (right): https://codereview.appspot.com/150890043/diff/40001/examples/calendar.go#newcode53 examples/calendar.go:53: listRes, err := svc.CalendarList.List().Fields("items/id").Do() On 2014/09/24 17:05:34, bradfitz ...
11 years ago (2014-09-24 17:57:54 UTC) #3
bradfitz
LGTM Looks great, thanks! https://codereview.appspot.com/150890043/diff/60001/google-api-go-generator/gen.go File google-api-go-generator/gen.go (right): https://codereview.appspot.com/150890043/diff/60001/google-api-go-generator/gen.go#newcode1268 google-api-go-generator/gen.go:1268: opts = append(opts, &Param{name: "fields"}) ...
11 years ago (2014-09-24 18:21:32 UTC) #4
gmlewis1
PTAL https://codereview.appspot.com/150890043/diff/60001/google-api-go-generator/gen.go File google-api-go-generator/gen.go (right): https://codereview.appspot.com/150890043/diff/60001/google-api-go-generator/gen.go#newcode1268 google-api-go-generator/gen.go:1268: opts = append(opts, &Param{name: "fields"}) On 2014/09/24 18:21:31, ...
11 years ago (2014-09-24 21:18:14 UTC) #5
bradfitz
LGTM https://codereview.appspot.com/150890043/diff/80001/googleapi/googleapi.go File googleapi/googleapi.go (right): https://codereview.appspot.com/150890043/diff/80001/googleapi/googleapi.go#newcode378 googleapi/googleapi.go:378: // For example, if your response has a ...
11 years ago (2014-09-24 22:57:25 UTC) #6
gmlewis1
Thank you, Brad! https://codereview.appspot.com/150890043/diff/80001/googleapi/googleapi.go File googleapi/googleapi.go (right): https://codereview.appspot.com/150890043/diff/80001/googleapi/googleapi.go#newcode378 googleapi/googleapi.go:378: // For example, if your response ...
11 years ago (2014-09-24 23:10:07 UTC) #7
gmlewis1
11 years ago (2014-09-24 23:11:31 UTC) #8
*** Submitted as
https://code.google.com/p/google-api-go-client/source/detail?r=2b03da7296f5 ***

google-api-go-client: Implement partial requests by adding Fields option.
        Demonstration of partial requests added to calendar example.
        As a result, only the calender:v3 API has been updated.
        All remaining APIs will be updated in a separate CL.

R=bradfitz
CC=golang-codereviews
https://codereview.appspot.com/150890043
Sign in to reply to this message.

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