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

Issue 12464043: apiserver: common AgentEntityWatcher mixin (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by dimitern
Modified:
10 years, 9 months ago
Reviewers:
gz, mp+178578, rog
Visibility:
Public.

Description

apiserver: common AgentEntityWatcher mixin Last step of Machiner API refactoring - extracted the Watch method as a reusable AgentEntityWatcher mixin and changed the machiner to use it. It will be used by the upcoming Uniter API as well. https://code.launchpad.net/~dimitern/juju-core/090-api-agententitywatcher/+merge/178578 Requires: https://code.launchpad.net/~dimitern/juju-core/089-api-ensuredeader/+merge/178545 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : apiserver: common AgentEntityWatcher mixin #

Total comments: 6

Patch Set 3 : apiserver: common AgentEntityWatcher mixin #

Unified diffs Side-by-side diffs Delta from patch set Stats (+233 lines, -51 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
A state/apiserver/common/watch.go View 1 chunk +77 lines, -0 lines 0 comments Download
A state/apiserver/common/watch_test.go View 1 chunk +126 lines, -0 lines 0 comments Download
M state/apiserver/machine/machiner.go View 3 chunks +9 lines, -51 lines 0 comments Download
M state/state.go View 2 chunks +19 lines, -0 lines 0 comments Download

Messages

Total messages: 5
dimitern
Please take a look.
10 years, 9 months ago (2013-08-05 14:44:22 UTC) #1
dimitern
Please take a look.
10 years, 9 months ago (2013-08-05 14:58:35 UTC) #2
gz
LGTM. https://codereview.appspot.com/12464043/diff/4001/state/apiserver/common/watch.go File state/apiserver/common/watch.go (right): https://codereview.appspot.com/12464043/diff/4001/state/apiserver/common/watch.go#newcode20 state/apiserver/common/watch.go:20: type AgentEntityWatcherer interface { Morerer. ;_;
10 years, 9 months ago (2013-08-05 16:41:48 UTC) #3
rog
LGTM https://codereview.appspot.com/12464043/diff/4001/state/apiserver/common/watch.go File state/apiserver/common/watch.go (right): https://codereview.appspot.com/12464043/diff/4001/state/apiserver/common/watch.go#newcode20 state/apiserver/common/watch.go:20: type AgentEntityWatcherer interface { I'm only letting this ...
10 years, 9 months ago (2013-08-05 16:50:12 UTC) #4
dimitern
10 years, 9 months ago (2013-08-05 17:05:21 UTC) #5
Please take a look.

https://codereview.appspot.com/12464043/diff/4001/state/apiserver/common/watc...
File state/apiserver/common/watch.go (right):

https://codereview.appspot.com/12464043/diff/4001/state/apiserver/common/watc...
state/apiserver/common/watch.go:56: func (a *AgentEntityWatcher) Watch(args
params.Entities) (params.NotifyWatchResults, error) {
On 2013/08/05 16:50:12, rog wrote:
> For future consideration: make this more general so that
> UpgraderAPI.WatchAPIVersion and other similar watcher API entry
> points can use it.

Will have a look and think about it, thanks.

https://codereview.appspot.com/12464043/diff/4001/state/state.go
File state/state.go (right):

https://codereview.appspot.com/12464043/diff/4001/state/state.go#newcode648
state/state.go:648: func (st *State) AgentEntityWatcher(tag string)
(AgentEntityWatcher, error) {
On 2013/08/05 16:50:12, rog wrote:
> wot no tests?

It will get changed soon anyway. And it's tested in the worker/machiner and the
apiserver/machiner
Sign in to reply to this message.

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