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

Issue 7228069: Rollup of all relevent changes on lp:gomaasapi

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by gz
Modified:
11 years, 2 months ago
Reviewers:
rvb, mp+145811, fwereade, TheMue, jtv.canonical, rog
Visibility:
Public.

Description

Rollup of all relevent changes on lp:gomaasapi This is for review only, showing the current trunk of the project in the diff (from the initial commit of the licence and a couple of stub go files). Note it's not possible for the Red squad to update this proposal directly, so don't expect code changes in response to comments to appear here, please watch for other merge proposals. :) https://code.launchpad.net/~gz/gomaasapi/gomaasapi/+merge/145811 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 45

Patch Set 2 : Rollup of all relevent changes on lp:gomaasapi #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+1861 lines, -0 lines) Patch
A README View 1 chunk +12 lines, -0 lines 0 comments Download
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
A client.go View 1 1 chunk +138 lines, -0 lines 1 comment Download
A client_test.go View 1 1 chunk +142 lines, -0 lines 0 comments Download
A example/live_example.go View 1 1 chunk +106 lines, -0 lines 2 comments Download
M gomaasapi.go View 1 chunk +3 lines, -0 lines 0 comments Download
M gomaasapi_test.go View 1 chunk +3 lines, -0 lines 0 comments Download
A jsonobject.go View 1 1 chunk +197 lines, -0 lines 1 comment Download
A jsonobject_test.go View 1 1 chunk +228 lines, -0 lines 0 comments Download
A maas.go View 1 1 chunk +10 lines, -0 lines 0 comments Download
A maas_test.go View 1 1 chunk +22 lines, -0 lines 0 comments Download
A maasobject.go View 1 1 chunk +167 lines, -0 lines 0 comments Download
A maasobject_test.go View 1 1 chunk +133 lines, -0 lines 0 comments Download
A oauth.go View 1 1 chunk +81 lines, -0 lines 0 comments Download
A templates/source.go View 1 chunk +4 lines, -0 lines 0 comments Download
A templates/source_test.go View 1 chunk +13 lines, -0 lines 0 comments Download
A testing.go View 1 chunk +46 lines, -0 lines 0 comments Download
A testservice.go View 1 1 chunk +240 lines, -0 lines 0 comments Download
A testservice_test.go View 1 1 chunk +255 lines, -0 lines 0 comments Download
A util.go View 1 chunk +27 lines, -0 lines 0 comments Download
A util_test.go View 1 chunk +32 lines, -0 lines 0 comments Download

Messages

Total messages: 14
gz
Please take a look.
11 years, 2 months ago (2013-01-31 10:49:04 UTC) #1
TheMue
Mostly a good start. So far only - some missing comments, - sometimes non-go-typical identifiers ...
11 years, 2 months ago (2013-02-01 10:43:41 UTC) #2
rog
seems like a good start. lots of minor comments, but one or two more significant ...
11 years, 2 months ago (2013-02-01 17:30:05 UTC) #3
jtv.canonical
On 2013/02/01 10:43:41, TheMue wrote: > - some missing comments, > - sometimes non-go-typical identifiers ...
11 years, 2 months ago (2013-02-05 11:25:19 UTC) #4
jtv.canonical
On 2013/02/01 10:43:41, TheMue wrote: > https://codereview.appspot.com/7228069/diff/1/client.go#newcode36 > client.go:36: return body, errors.New("Error requesting the MAAS ...
11 years, 2 months ago (2013-02-05 11:49:47 UTC) #5
jtv.canonical
I addressed all of the trivial issues that TheMue raised, plus as many as I ...
11 years, 2 months ago (2013-02-05 12:08:10 UTC) #6
fwereade
+1s to just about everything rog and frank said, and a few comments on JSONObject: ...
11 years, 2 months ago (2013-02-05 12:26:31 UTC) #7
rog
https://codereview.appspot.com/7228069/diff/1/jsonobject.go File jsonobject.go (right): https://codereview.appspot.com/7228069/diff/1/jsonobject.go#newcode159 jsonobject.go:159: func (obj jsonString) GetBool() (bool, error) { return failBool(obj) ...
11 years, 2 months ago (2013-02-05 13:49:57 UTC) #8
TheMue
On 2013/02/05 13:49:57, rog wrote: > but all this seems like it's trying to do ...
11 years, 2 months ago (2013-02-05 14:04:27 UTC) #9
rvb
Thanks a lot for the reviews, another batch of improvements: https://code.launchpad.net/~rvb/gomaasapi/review-changes-2/+merge/146627
11 years, 2 months ago (2013-02-05 16:28:19 UTC) #10
jtv.canonical
And another: https://code.launchpad.net/~jtv/gomaasapi/review-changes-3/+merge/146768
11 years, 2 months ago (2013-02-06 04:01:48 UTC) #11
rog
it would be fantastic if these changes could be proposed with lbox -cr. if that's ...
11 years, 2 months ago (2013-02-06 07:53:42 UTC) #12
gz
Please take a look.
11 years, 2 months ago (2013-02-06 16:59:23 UTC) #13
TheMue
11 years, 2 months ago (2013-02-06 18:53:34 UTC) #14
A lot of improvements, some points still not covered. Additionally I'm still
unsure about the JSON stuff and would like to see an approach similar to
launchpad.net/juju-core/schema or with more generic functions like Roger
described yesterday.

https://codereview.appspot.com/7228069/diff/16001/client.go
File client.go (right):

https://codereview.appspot.com/7228069/diff/16001/client.go#newcode22
client.go:22: func (client Client) dispatchRequest(request *http.Request)
([]byte, error) {
Still prefer (c *Client) as it is a common Go style.

https://codereview.appspot.com/7228069/diff/16001/example/live_example.go
File example/live_example.go (right):

https://codereview.appspot.com/7228069/diff/16001/example/live_example.go#new...
example/live_example.go:24: if err != nil {
checkError() can be used here too.

https://codereview.appspot.com/7228069/diff/16001/example/live_example.go#new...
example/live_example.go:29: if err != nil {
Same here.

https://codereview.appspot.com/7228069/diff/16001/jsonobject.go
File jsonobject.go (right):

https://codereview.appspot.com/7228069/diff/16001/jsonobject.go#newcode65
jsonobject.go:65: // maasify is internal.  It turns a completely untyped
json.Unmarshal result
No need to tell it's internal, only describe what it does.
Sign in to reply to this message.

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