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

Issue 9566045: Refactor deploy as proper statecmd

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 3 months ago by matthew.scott
Modified:
12 years, 3 months ago
Reviewers:
bac, gz, teknico, mp+164754
Visibility:
Public.

Description

Refactor deploy as proper statecmd This is the second step to implementing upgrade charm in the API (proper testing requires deploying, which wasn't available in the statecmd_test package). Deploy is now implemented in the API in the same way as other commands (rather than directly in apiserver). Tests were moved so that both the API command and CLI command are tested. https://code.launchpad.net/~makyo/juju-core/deploy-refactor/+merge/164754 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 4

Patch Set 2 : Refactor deploy as proper statecmd #

Total comments: 3

Patch Set 3 : Refactor deploy as proper statecmd #

Unified diffs Side-by-side diffs Delta from patch set Stats (+332 lines, -166 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/deploy.go View 1 2 chunks +7 lines, -22 lines 0 comments Download
M cmd/juju/deploy_test.go View 2 chunks +0 lines, -123 lines 0 comments Download
M juju/testing/repo.go View 1 chunk +1 line, -0 lines 0 comments Download
M state/api/params/params.go View 1 2 1 chunk +8 lines, -6 lines 0 comments Download
M state/apiserver/apiserver.go View 1 2 1 chunk +1 line, -15 lines 0 comments Download
A state/statecmd/deploy.go View 1 1 chunk +63 lines, -0 lines 0 comments Download
A state/statecmd/deploy_test.go View 1 2 1 chunk +250 lines, -0 lines 0 comments Download

Messages

Total messages: 10
matthew.scott
Please take a look.
12 years, 3 months ago (2013-05-20 15:19:47 UTC) #1
teknico
LGTM
12 years, 3 months ago (2013-05-21 14:54:03 UTC) #2
gz
LGTM, seems like a resonable moving around of code and addition of a couple of ...
12 years, 3 months ago (2013-05-21 17:12:06 UTC) #3
jameinel
The refactoring makes a lot of sense to me, and lets us re-use code. I'd ...
12 years, 3 months ago (2013-05-22 10:53:50 UTC) #4
matthew.scott
jameinel: I appear to have gone in the wrong direction with regards to config, and ...
12 years, 3 months ago (2013-05-22 15:11:08 UTC) #5
matthew.scott
Replying to a comment below. The doc comment has been added. https://codereview.appspot.com/9566045/diff/1/state/statecmd/deploy.go File state/statecmd/deploy.go (right): ...
12 years, 3 months ago (2013-05-22 17:01:53 UTC) #6
matthew.scott
Please take a look.
12 years, 3 months ago (2013-05-22 19:36:27 UTC) #7
jameinel
On 2013/05/22 15:11:08, matthew.scott wrote: > jameinel: > > I appear to have gone in ...
12 years, 3 months ago (2013-05-23 07:41:16 UTC) #8
bac
LGTM modulo comments about num units and some suggested new tests. https://codereview.appspot.com/9566045/diff/10001/state/statecmd/deploy.go File state/statecmd/deploy.go (right): ...
12 years, 3 months ago (2013-05-23 14:33:10 UTC) #9
matthew.scott
12 years, 3 months ago (2013-05-24 16:35:05 UTC) #10
*** Submitted:

Refactor deploy as proper statecmd

This is the second step to implementing upgrade charm in the API (proper testing
requires deploying, which wasn't available in the statecmd_test package). 
Deploy is now implemented in the API in the same way as other commands (rather
than directly in apiserver).  Tests were moved so that both the API command and
CLI command are tested.

R=teknico, gz, jameinel, bac
CC=
https://codereview.appspot.com/9566045
Sign in to reply to this message.

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