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

Issue 7554046: Add ServiceDestroyUnits to the API

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

Description

Add ServiceDestroyUnits to the API https://code.launchpad.net/~benji/juju-core/1130151/+merge/153351 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 31

Patch Set 2 : Add ServiceDestroyUnits to the API #

Patch Set 3 : Add ServiceDestroyUnits to the API #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -29 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/addunit.go View 1 1 chunk +2 lines, -2 lines 0 comments Download
M cmd/juju/destroyunit.go View 1 2 chunks +8 lines, -3 lines 0 comments Download
M state/api/apiclient.go View 1 1 chunk +12 lines, -8 lines 0 comments Download
M state/api/params/params.go View 1 1 chunk +7 lines, -2 lines 0 comments Download
M state/apiserver/api_test.go View 1 4 chunks +25 lines, -4 lines 0 comments Download
M state/apiserver/apiserver.go View 1 1 chunk +8 lines, -3 lines 0 comments Download
M state/state.go View 1 1 chunk +4 lines, -2 lines 0 comments Download
M state/state_test.go View 1 1 chunk +18 lines, -1 line 0 comments Download
M state/statecmd/addunit.go View 1 1 chunk +2 lines, -2 lines 0 comments Download
M state/statecmd/addunit_test.go View 1 1 chunk +2 lines, -2 lines 0 comments Download
A state/statecmd/destroyunit.go View 1 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 12
benji
Please take a look.
11 years, 1 month ago (2013-03-14 12:51:30 UTC) #1
benji
I added a comment about the motivation of one of the changes. https://codereview.appspot.com/7554046/diff/1/state/state.go File state/state.go ...
11 years, 1 month ago (2013-03-14 12:54:17 UTC) #2
fwereade
LGTM modulo naming. https://codereview.appspot.com/7554046/diff/1/state/api/apiclient.go File state/api/apiclient.go (right): https://codereview.appspot.com/7554046/diff/1/state/api/apiclient.go#newcode138 state/api/apiclient.go:138: // ServiceDestroyUnits decreases the number of ...
11 years, 1 month ago (2013-03-14 14:02:28 UTC) #3
dimitern
Overall LGTM, but I have doubts about the regex change and a few other suggestions. ...
11 years, 1 month ago (2013-03-14 14:18:49 UTC) #4
fwereade
https://codereview.appspot.com/7554046/diff/1/state/state.go File state/state.go (right): https://codereview.appspot.com/7554046/diff/1/state/state.go#newcode63 state/state.go:63: validUnit = regexp.MustCompile(serviceSnippet + "(-[a-z0-9]*[a-z][a-z0-9]*)*/[0-9]+$") On 2013/03/14 14:18:49, dimitern ...
11 years, 1 month ago (2013-03-14 14:32:53 UTC) #5
rog
looks good, apart from the opClientServiceDestroyUnits issue. https://codereview.appspot.com/7554046/diff/1/state/api/apiclient.go File state/api/apiclient.go (right): https://codereview.appspot.com/7554046/diff/1/state/api/apiclient.go#newcode133 state/api/apiclient.go:133: return clientError(err) ...
11 years, 1 month ago (2013-03-14 15:44:11 UTC) #6
rog
https://codereview.appspot.com/7554046/diff/1/state/apiserver/api_test.go File state/apiserver/api_test.go (right): https://codereview.appspot.com/7554046/diff/1/state/apiserver/api_test.go#newcode404 state/apiserver/api_test.go:404: // We can't remove the last unit so we ...
11 years, 1 month ago (2013-03-14 16:28:24 UTC) #7
benji
Thanks for the good review guys. I have addressed everything and am preparing to submit ...
11 years, 1 month ago (2013-03-15 13:39:12 UTC) #8
dimitern
Much better, thanks! Although in the future, please repropose after applying the suggested changes, rather ...
11 years, 1 month ago (2013-03-15 13:52:36 UTC) #9
benji
Please take a look. https://codereview.appspot.com/7554046/diff/1/cmd/juju/destroyunit.go File cmd/juju/destroyunit.go (right): https://codereview.appspot.com/7554046/diff/1/cmd/juju/destroyunit.go#newcode41 cmd/juju/destroyunit.go:41: // DestroyUnitCommand connects to the ...
11 years, 1 month ago (2013-03-15 14:16:32 UTC) #10
benji
See below for a report on go linters and a question. Thanks.
11 years, 1 month ago (2013-03-15 14:16:52 UTC) #11
benji
11 years, 1 month ago (2013-03-15 15:21:10 UTC) #12
*** Submitted:

Add ServiceDestroyUnits to the API

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

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