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

Issue 40350043: Add status cmd to api with state access fallback

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 5 months ago by gz
Modified:
10 years, 4 months ago
Reviewers:
mp+198444, fwereade, rog
Visibility:
Public.

Description

Add status cmd to api with state access fallback Current progress on having `juju status` use the api. Moves the existing code to a resurrected state/statecmd file. This is exposed both through the api, and as a fallback to accessing state directly. The status tests now pass, but moving some testing down a layer or two would probably be a good plan. Is there anything else required for a status first pass? https://code.launchpad.net/~gz/juju-core/status_api/+merge/198444 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 6

Patch Set 2 : Add status cmd to api with state access fallback #

Patch Set 3 : Add status cmd to api with state access fallback #

Total comments: 7

Patch Set 4 : Add status cmd to api with state access fallback #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+688 lines, -524 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/status.go View 1 2 3 6 chunks +115 lines, -470 lines 1 comment Download
M cmd/juju/status_test.go View 1 2 3 6 chunks +24 lines, -26 lines 0 comments Download
M environs/jujutest/livetests.go View 1 1 chunk +1 line, -1 line 0 comments Download
M state/api/client.go View 2 chunks +45 lines, -7 lines 0 comments Download
M state/api/params/params.go View 1 chunk +5 lines, -0 lines 0 comments Download
M state/apiserver/client/client.go View 1 chunk +0 lines, -20 lines 0 comments Download
A state/apiserver/client/status.go View 1 2 3 1 chunk +20 lines, -0 lines 0 comments Download
A state/statecmd/status.go View 1 2 3 1 chunk +476 lines, -0 lines 0 comments Download

Messages

Total messages: 7
rog
This looks great in general. I'm not keen on the duplicated data structures though. I'll ...
10 years, 5 months ago (2013-12-10 18:54:03 UTC) #1
gz
Thanks! Any ideas on my test issue would be greatly appreciated. https://codereview.appspot.com/40350043/diff/1/cmd/juju/status.go File cmd/juju/status.go (right): ...
10 years, 5 months ago (2013-12-10 19:01:34 UTC) #2
gz
Please take a look.
10 years, 5 months ago (2013-12-10 20:48:46 UTC) #3
gz
Please take a look.
10 years, 5 months ago (2013-12-10 20:53:29 UTC) #4
rog
LGTM modulo the suggestions below. https://codereview.appspot.com/40350043/diff/40001/cmd/juju/status.go File cmd/juju/status.go (right): https://codereview.appspot.com/40350043/diff/40001/cmd/juju/status.go#newcode78 cmd/juju/status.go:78: state, err := statecmd.Status(conn, ...
10 years, 5 months ago (2013-12-10 21:44:25 UTC) #5
gz
Please take a look. https://codereview.appspot.com/40350043/diff/40001/cmd/juju/status.go File cmd/juju/status.go (right): https://codereview.appspot.com/40350043/diff/40001/cmd/juju/status.go#newcode78 cmd/juju/status.go:78: state, err := statecmd.Status(conn, c.patterns) ...
10 years, 5 months ago (2013-12-11 14:19:13 UTC) #6
fwereade
10 years, 4 months ago (2013-12-18 08:35:02 UTC) #7
LGTM

https://codereview.appspot.com/40350043/diff/60001/cmd/juju/status.go
File cmd/juju/status.go (right):

https://codereview.appspot.com/40350043/diff/60001/cmd/juju/status.go#newcode97
cmd/juju/status.go:97: "(direct DB access)")
This looks like it might be in common use and benefit from being factored out
into something like warnFallback("Status").
Sign in to reply to this message.

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