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

Issue 8094045: Support 'add-relation' in API.

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 1 month ago by teknico
Modified:
11 years, 1 month ago
Reviewers:
mp+156030, fwereade, rog
Visibility:
Public.

Description

Support 'add-relation' in API. Support 'add-relation' in API, for real this time. https://code.launchpad.net/~teknico/juju-core/support-add-relation-in-go-env-2/+merge/156030 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 16

Patch Set 2 : Support 'add-relation' in API. #

Total comments: 1

Patch Set 3 : Support 'add-relation' in API. #

Patch Set 4 : Support 'add-relation' in API. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+234 lines, -20 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/addrelation.go View 1 2 2 chunks +6 lines, -5 lines 0 comments Download
M cmd/juju/destroyrelation.go View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M state/api/apiclient.go View 1 1 chunk +13 lines, -4 lines 0 comments Download
M state/api/params/params.go View 1 1 chunk +13 lines, -0 lines 0 comments Download
M state/apiserver/api_test.go View 1 3 chunks +35 lines, -1 line 0 comments Download
M state/apiserver/apiserver.go View 1 chunk +5 lines, -0 lines 0 comments Download
A state/statecmd/addrelation.go View 1 1 chunk +31 lines, -0 lines 0 comments Download
A state/statecmd/addrelation_test.go View 1 1 chunk +110 lines, -0 lines 0 comments Download
M state/statecmd/destroyrelation.go View 1 1 chunk +0 lines, -4 lines 0 comments Download
M state/statecmd/destroyrelation_test.go View 1 2 3 chunks +15 lines, -6 lines 0 comments Download

Messages

Total messages: 9
teknico
Please take a look.
11 years, 1 month ago (2013-03-28 17:19:18 UTC) #1
rog
very nice. LGTM modulo the minor comments below. https://codereview.appspot.com/8094045/diff/1/cmd/juju/addrelation.go File cmd/juju/addrelation.go (right): https://codereview.appspot.com/8094045/diff/1/cmd/juju/addrelation.go#newcode36 cmd/juju/addrelation.go:36: Endpoints: ...
11 years, 1 month ago (2013-03-28 17:35:55 UTC) #2
teknico
Thanks for the review, fixed some things, added a few questions. https://codereview.appspot.com/8094045/diff/1/state/api/apiclient.go File state/api/apiclient.go (right): ...
11 years, 1 month ago (2013-03-28 17:58:41 UTC) #3
rog
https://codereview.appspot.com/8094045/diff/1/state/apiserver/api_test.go File state/apiserver/api_test.go (right): https://codereview.appspot.com/8094045/diff/1/state/apiserver/api_test.go#newcode1363 state/apiserver/api_test.go:1363: c.Assert(res.Endpoints["wordpress"].Name, Equals, "db") On 2013/03/28 17:58:41, teknico wrote: > ...
11 years, 1 month ago (2013-03-28 18:03:50 UTC) #4
teknico
Please take a look.
11 years, 1 month ago (2013-03-29 12:09:54 UTC) #5
teknico
Implemented all rogpeppe's suggestions, all tests pass. https://codereview.appspot.com/8094045/diff/1/state/apiserver/api_test.go File state/apiserver/api_test.go (right): https://codereview.appspot.com/8094045/diff/1/state/apiserver/api_test.go#newcode1363 state/apiserver/api_test.go:1363: c.Assert(res.Endpoints["wordpress"].Name, Equals, ...
11 years, 1 month ago (2013-03-29 12:13:17 UTC) #6
fwereade
I'm a bit iffy about dropping the 2-endpoints check in the add-relation command... do the ...
11 years, 1 month ago (2013-03-29 12:50:50 UTC) #7
teknico
Please take a look.
11 years, 1 month ago (2013-03-29 14:31:37 UTC) #8
teknico
11 years, 1 month ago (2013-03-29 14:33:23 UTC) #9
*** Submitted:

Support 'add-relation' in API.

Support 'add-relation' in API, for real this time.

R=rog, fwereade
CC=
https://codereview.appspot.com/8094045
Sign in to reply to this message.

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