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

Issue 13430044: state: added status data to status doc

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 7 months ago by mue
Modified:
10 years, 7 months ago
Reviewers:
mp+186130, fwereade
Visibility:
Public.

Description

state: added status data to status doc This is the 2nd CL for lp:1224568. It adds status data to the status doc and changes the API. Also the first infos in ModeHookError() are added to the status. If this CL is conceptual ok more tests have to be added and the exact data of ModeHooError() has to be discussed with the GUI team. https://code.launchpad.net/~themue/juju-core/046-added-status-data/+merge/186130 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : state: added status data to status doc #

Patch Set 3 : state: added status data to status doc #

Total comments: 18

Patch Set 4 : state: added status data to status doc #

Total comments: 12

Patch Set 5 : state: added status data to status doc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+342 lines, -102 lines) Patch
A [revision details] View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/resolved_test.go View 1 2 1 chunk +1 line, -1 line 0 comments Download
M cmd/juju/status_test.go View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M cmd/jujud/machine_test.go View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M state/api/machiner/machine.go View 1 chunk +2 lines, -2 lines 0 comments Download
M state/api/machiner/machiner_test.go View 2 chunks +2 lines, -2 lines 0 comments Download
M state/api/params/internal.go View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M state/api/params/params.go View 1 2 3 chunks +5 lines, -0 lines 0 comments Download
M state/api/params/params_test.go View 2 chunks +2 lines, -2 lines 0 comments Download
M state/api/uniter/unit.go View 1 chunk +2 lines, -2 lines 0 comments Download
M state/api/uniter/unit_test.go View 2 chunks +2 lines, -2 lines 0 comments Download
M state/apiserver/client/api_test.go View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M state/apiserver/client/client_test.go View 1 2 1 chunk +1 line, -1 line 0 comments Download
M state/apiserver/common/setstatus.go View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M state/apiserver/common/setstatus_test.go View 1 2 3 chunks +10 lines, -8 lines 0 comments Download
M state/apiserver/machine/machiner_test.go View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M state/apiserver/provisioner/provisioner_test.go View 1 2 3 2 chunks +10 lines, -10 lines 0 comments Download
M state/apiserver/uniter/uniter_test.go View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M state/export_test.go View 1 2 3 2 chunks +21 lines, -0 lines 0 comments Download
M state/interface.go View 1 2 1 chunk +1 line, -1 line 0 comments Download
M state/machine.go View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M state/machine_test.go View 1 2 3 4 9 chunks +63 lines, -13 lines 0 comments Download
M state/megawatcher.go View 1 chunk +2 lines, -0 lines 0 comments Download
M state/megawatcher_internal_test.go View 1 2 3 4 6 chunks +53 lines, -17 lines 0 comments Download
M state/state_test.go View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M state/status.go View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M state/unit.go View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M state/unit_test.go View 1 2 3 4 6 chunks +112 lines, -11 lines 0 comments Download
M worker/deployer/deployer_test.go View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M worker/machiner/machiner.go View 2 chunks +2 lines, -2 lines 0 comments Download
M worker/provisioner/provisioner_task.go View 1 2 1 chunk +1 line, -1 line 0 comments Download
M worker/uniter/filter_test.go View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M worker/uniter/modes.go View 1 2 3 4 5 chunks +7 lines, -6 lines 0 comments Download
M worker/uniter/uniter.go View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 7
mue
Please take a look.
10 years, 7 months ago (2013-09-17 18:26:33 UTC) #1
mue
Please take a look.
10 years, 7 months ago (2013-09-18 08:39:05 UTC) #2
mue
Please take a look.
10 years, 7 months ago (2013-09-18 15:59:17 UTC) #3
fwereade
Looking nice. Quickest way to get it landed will be to beef up the testing ...
10 years, 7 months ago (2013-09-19 08:32:23 UTC) #4
mue
Please take a look. https://codereview.appspot.com/13430044/diff/7001/state/machine.go File state/machine.go (right): https://codereview.appspot.com/13430044/diff/7001/state/machine.go#newcode703 state/machine.go:703: func (m *Machine) StatusData() (params.StatusData, ...
10 years, 7 months ago (2013-09-24 09:01:48 UTC) #5
fwereade
LGTM if you (1) tidy up the data that gets set in the tests so ...
10 years, 7 months ago (2013-09-24 15:06:28 UTC) #6
mue
10 years, 7 months ago (2013-09-25 10:34:28 UTC) #7
Please take a look.

https://codereview.appspot.com/13430044/diff/14001/state/megawatcher_internal...
File state/megawatcher_internal_test.go (right):

https://codereview.appspot.com/13430044/diff/14001/state/megawatcher_internal...
state/megawatcher_internal_test.go:667: "remote-unit": "unit-mysql-0",
On 2013/09/24 15:06:29, fwereade wrote:
> Hmm. I feel like this probably ought to be a name.

Done.

https://codereview.appspot.com/13430044/diff/14001/state/unit_test.go
File state/unit_test.go (right):

https://codereview.appspot.com/13430044/diff/14001/state/unit_test.go#newcode318
state/unit_test.go:318: "hook-kind":   "relation-joined",
On 2013/09/24 15:06:29, fwereade wrote:
> I think this should be a name, not a kind. If I said otherwise before I'm an
> idiot and I'm sorry.

Done.

https://codereview.appspot.com/13430044/diff/14001/state/unit_test.go#newcode320
state/unit_test.go:320: "remote-unit": "unit-mysql-0",
On 2013/09/24 15:06:29, fwereade wrote:
> Idon't think this should be a tag, please fix the places it is.

Done.

https://codereview.appspot.com/13430044/diff/14001/state/unit_test.go#newcode360
state/unit_test.go:360: }
On 2013/09/24 15:06:29, fwereade wrote:
> I don't see any tests for setting nil over the top of an existing dict, or
> changing dict contents and avoiding cross-contamination.

Done.

https://codereview.appspot.com/13430044/diff/14001/worker/uniter/modes.go
File worker/uniter/modes.go (right):

https://codereview.appspot.com/13430044/diff/14001/worker/uniter/modes.go#new...
worker/uniter/modes.go:350: // TODO(mue) Add data in next CL together with
testing.
On 2013/09/24 15:06:29, fwereade wrote:
> Delete this code please -- add it with the next CL. At the moment it's just
> dead. But it is exactly what I'm looking for in the next CL :).

Done.

https://codereview.appspot.com/13430044/diff/14001/worker/uniter/uniter.go
File worker/uniter/uniter.go (right):

https://codereview.appspot.com/13430044/diff/14001/worker/uniter/uniter.go#ne...
worker/uniter/uniter.go:386: func (u *Uniter) CurrentHookName() string {
On 2013/09/24 15:06:29, fwereade wrote:
> This shouldn't be exported. It's only safe to call from mode funcs.
> 
> And it's nice, but this and the uniter change really make a perfect CL on
their
> own. If you spot opportunities to extract micro-CLs like this one please do so
> :).

Done.
Sign in to reply to this message.

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