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

Issue 10608043: state/apiserver/machine: Pull out common help

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 8 months ago by jameinel
Modified:
12 years, 8 months ago
Reviewers:
mp+171536, fwereade, rog
Visibility:
Public.

Description

state/apiserver/machine: Pull out common help There were a few bits of testing infrastructure that I want to use for the Upgrader code, so I pulled those out into state/apiserver/testing. Further, we have a MachineWatchResults struct, which just holds a slice of EntityWatchResult objects. I'm guessing we'll have several APIs that just return ids for entity watching. So it made sense to me to have a generic struct for those cases. (Ultimately Upgrader will need a custom watcher, but in a first pass I'll probably start with an entity watcher because the code is already available.) https://code.launchpad.net/~jameinel/juju-core/machine-api-tweaks-for-upgrader/+merge/171536 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 2

Patch Set 2 : state/apiserver/machine: Pull out common help #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -60 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M state/api/params/params.go View 1 1 chunk +3 lines, -2 lines 0 comments Download
M state/apiserver/machine/agent_test.go View 1 1 chunk +1 line, -1 line 0 comments Download
M state/apiserver/machine/common_test.go View 1 3 chunks +11 lines, -33 lines 0 comments Download
M state/apiserver/machine/machiner.go View 1 1 chunk +2 lines, -2 lines 0 comments Download
M state/apiserver/machine/machiner_test.go View 1 2 chunks +4 lines, -22 lines 0 comments Download
A state/apiserver/testing/fakeauthorizer.go View 1 1 chunk +29 lines, -0 lines 0 comments Download
A state/apiserver/testing/fakeresource.go View 1 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 6
jameinel
Please take a look.
12 years, 8 months ago (2013-06-26 12:44:23 UTC) #1
rog
On 2013/06/26 12:44:23, jameinel wrote: > Please take a look. LGTM
12 years, 8 months ago (2013-06-26 12:50:25 UTC) #2
fwereade
LGTM modulo name bikeshedding. https://codereview.appspot.com/10608043/diff/1/state/api/params/params.go File state/api/params/params.go (right): https://codereview.appspot.com/10608043/diff/1/state/api/params/params.go#newcode71 state/api/params/params.go:71: type EntityWatchResults struct { I'm ...
12 years, 8 months ago (2013-06-26 13:08:42 UTC) #3
fwereade
Oh, and -- I'm pretty sure a NotifyWatcher will work ok here regardless. I'm slightly ...
12 years, 8 months ago (2013-06-26 14:51:26 UTC) #4
jameinel
m https://codereview.appspot.com/10608043/diff/1/state/api/params/params.go File state/api/params/params.go (right): https://codereview.appspot.com/10608043/diff/1/state/api/params/params.go#newcode71 state/api/params/params.go:71: type EntityWatchResults struct { On 2013/06/26 13:08:42, fwereade ...
12 years, 8 months ago (2013-06-27 06:16:09 UTC) #5
jameinel
12 years, 8 months ago (2013-06-27 06:57:51 UTC) #6
Please take a look.
Sign in to reply to this message.

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