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

Issue 113490043: Added support for URI Templates expansion (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 4 months ago by tmatsuo(Google)
Modified:
11 years, 3 months ago
Reviewers:
gmlewis1, bradfitz
CC:
gmlewis1, bradfitz, golang-codereviews
Visibility:
Public.

Description

Added support for URI Templates expansion. This is a fix for: https://code.google.com/p/google-api-go-client/issues/detail?id=65

Patch Set 1 #

Total comments: 10

Patch Set 2 : Bundled uritemplates, and added fallback to the original Expand #

Patch Set 3 : Removed stale comment and code #

Total comments: 10

Patch Set 4 : Moved uritemplates to internal directory and some refactorings #

Total comments: 3

Patch Set 5 : Add a link for RFC6570 #

Patch Set 6 : Comment about double slashes #

Total comments: 2

Patch Set 7 : A correction in regexp #

Total comments: 2

Patch Set 8 : Removed an unnecessary cast #

Patch Set 9 : Re-added mistakingly removed files #

Total comments: 6

Patch Set 10 : Removed the fallback method and unnecessary regexps #

Total comments: 6

Patch Set 11 : Removed unnecessary bits from the code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+408 lines, -18 lines) Patch
M googleapi/googleapi.go View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -17 lines 0 comments Download
M googleapi/googleapi_test.go View 1 2 3 4 5 6 7 8 9 2 chunks +11 lines, -1 line 0 comments Download
A googleapi/internal/uritemplates/LICENSE View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download
A googleapi/internal/uritemplates/uritemplates.go View 1 2 3 1 chunk +359 lines, -0 lines 0 comments Download
A googleapi/internal/uritemplates/utils.go View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 21
gmlewis1
In addition to the comments below, can you please add unit tests for the modified ...
11 years, 4 months ago (2014-07-24 02:55:29 UTC) #1
bradfitz
I don't think this warrants a new dependency. Especially not as a flag, as there ...
11 years, 4 months ago (2014-07-24 03:55:40 UTC) #2
tmatsuo(Google)
PTAL Agreed with the comment from Brad about dependency, so I incorporated the snapshot of ...
11 years, 4 months ago (2014-07-24 07:44:04 UTC) #3
bradfitz
https://codereview.appspot.com/113490043/diff/40001/googleapi/googleapi.go File googleapi/googleapi.go (right): https://codereview.appspot.com/113490043/diff/40001/googleapi/googleapi.go#newcode22 googleapi/googleapi.go:22: "strings" standard library first. blank line after this, and ...
11 years, 4 months ago (2014-07-24 16:10:10 UTC) #4
tmatsuo(Google)
Thanks for the review Brad! PTAL This time, I'm pretty sure we won't break any ...
11 years, 4 months ago (2014-07-25 00:44:38 UTC) #5
gmlewis1
https://codereview.appspot.com/113490043/diff/60001/googleapi/googleapi.go File googleapi/googleapi.go (right): https://codereview.appspot.com/113490043/diff/60001/googleapi/googleapi.go#newcode333 googleapi/googleapi.go:333: values := make(map[string]interface{}) Brad, would this be a place ...
11 years, 4 months ago (2014-07-25 01:30:47 UTC) #6
tmatsuo(Google)
https://codereview.appspot.com/113490043/diff/60001/googleapi/googleapi_test.go File googleapi/googleapi_test.go (right): https://codereview.appspot.com/113490043/diff/60001/googleapi/googleapi_test.go#newcode191 googleapi/googleapi_test.go:191: "http://www.golang.org//topics/myproject/mytopic", On 2014/07/25 01:30:47, gmlewis1 wrote: > Do we ...
11 years, 4 months ago (2014-07-25 01:43:34 UTC) #7
gmlewis1
On 2014/07/25 01:43:34, tmatsuo(Google) wrote: > Yes, I think it's weird too, but yes :) ...
11 years, 4 months ago (2014-07-25 01:52:00 UTC) #8
tmatsuo(Google)
On 2014/07/25 01:52:00, gmlewis1 wrote: > On 2014/07/25 01:43:34, tmatsuo(Google) wrote: > > Yes, I ...
11 years, 4 months ago (2014-07-25 02:22:02 UTC) #9
gmlewis1
LGTM, but please wait for final review from Brad. Thanks, Takashi!
11 years, 4 months ago (2014-07-25 04:46:08 UTC) #10
bradfitz
https://codereview.appspot.com/113490043/diff/100001/googleapi/googleapi.go File googleapi/googleapi.go (right): https://codereview.appspot.com/113490043/diff/100001/googleapi/googleapi.go#newcode319 googleapi/googleapi.go:319: var findURITemplatesOperator = regexp.MustCompile(`(\{[\+\./;\?\&\#]+[A-Za-z_]+\})`) why is this [\+\./;\?\&\#]+ instead ...
11 years, 4 months ago (2014-07-25 18:00:41 UTC) #11
tmatsuo(Google)
Sorry for my slow response. I got a bereavement. PTAL https://codereview.appspot.com/113490043/diff/100001/googleapi/googleapi.go File googleapi/googleapi.go (right): https://codereview.appspot.com/113490043/diff/100001/googleapi/googleapi.go#newcode319 ...
11 years, 4 months ago (2014-08-02 21:38:16 UTC) #12
tmatsuo(Google)
On 2014/08/02 21:38:16, tmatsuo(Google) wrote: > Sorry for my slow response. I got a bereavement. ...
11 years, 4 months ago (2014-08-08 22:23:12 UTC) #13
gmlewis1
LGTM, but please let Brad perform the final review. https://codereview.appspot.com/113490043/diff/120001/googleapi/googleapi.go File googleapi/googleapi.go (right): https://codereview.appspot.com/113490043/diff/120001/googleapi/googleapi.go#newcode335 googleapi/googleapi.go:335: ...
11 years, 4 months ago (2014-08-09 04:43:10 UTC) #14
tmatsuo(Google)
Brad, can you take another look? https://codereview.appspot.com/113490043/diff/120001/googleapi/googleapi.go File googleapi/googleapi.go (right): https://codereview.appspot.com/113490043/diff/120001/googleapi/googleapi.go#newcode335 googleapi/googleapi.go:335: values[k] = interface{}(v) ...
11 years, 4 months ago (2014-08-12 00:10:27 UTC) #15
bradfitz
https://codereview.appspot.com/113490043/diff/160001/googleapi/googleapi.go File googleapi/googleapi.go (right): https://codereview.appspot.com/113490043/diff/160001/googleapi/googleapi.go#newcode316 googleapi/googleapi.go:316: var findEncodedStrings = regexp.MustCompile(`(\{[A-Za-z_]+\})`) seems like these two regexps ...
11 years, 4 months ago (2014-08-13 21:15:24 UTC) #16
tmatsuo(Google)
PTAL I made a small change on one of the tests for a case when ...
11 years, 4 months ago (2014-08-13 23:15:58 UTC) #17
bradfitz
https://codereview.appspot.com/113490043/diff/180001/googleapi/googleapi.go File googleapi/googleapi.go (right): https://codereview.appspot.com/113490043/diff/180001/googleapi/googleapi.go#newcode315 googleapi/googleapi.go:315: // the map supplied, using uritemplates package. remove this ...
11 years, 3 months ago (2014-08-18 18:02:53 UTC) #18
tmatsuo(Google)
Thanks Brad, PTAL https://codereview.appspot.com/113490043/diff/180001/googleapi/googleapi.go File googleapi/googleapi.go (right): https://codereview.appspot.com/113490043/diff/180001/googleapi/googleapi.go#newcode315 googleapi/googleapi.go:315: // the map supplied, using uritemplates ...
11 years, 3 months ago (2014-08-18 18:38:09 UTC) #19
bradfitz
LGTM
11 years, 3 months ago (2014-08-18 18:39:35 UTC) #20
bradfitz
11 years, 3 months ago (2014-08-18 19:14:53 UTC) #21
*** Submitted as
https://code.google.com/p/google-api-go-client/source/detail?r=11e893087017 ***

Added support for URI Templates expansion.

Fixes Issue 65

LGTM=gmlewis, bradfitz
R=gmlewis, bradfitz
CC=golang-codereviews
https://codereview.appspot.com/113490043

Committer: Brad Fitzpatrick <bradfitz@golang.org>
Sign in to reply to this message.

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