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

Issue 6325062: state: added watcher for service units (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 10 months ago by TheMue
Modified:
11 years, 9 months ago
Reviewers:
mp+112054
Visibility:
Public.

Description

state: added watcher for service units The added watcher returns informations about the assigned or unassigned units of a service. https://code.launchpad.net/~themue/juju-core/go-state-service-units-watcher/+merge/112054 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 11

Patch Set 2 : state: added watcher for service units #

Total comments: 8

Patch Set 3 : state: added watcher for service units #

Total comments: 4

Patch Set 4 : state: added watcher for service units #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -12 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M state/service.go View 1 2 3 2 chunks +6 lines, -4 lines 0 comments Download
M state/watcher.go View 1 2 3 1 chunk +81 lines, -0 lines 0 comments Download
M state/watcher_test.go View 1 2 3 9 chunks +62 lines, -8 lines 0 comments Download

Messages

Total messages: 7
TheMue
Please take a look.
11 years, 10 months ago (2012-06-26 10:23:58 UTC) #1
fwereade
LTM modulo below. https://codereview.appspot.com/6325062/diff/1/state/watcher.go File state/watcher.go (right): https://codereview.appspot.com/6325062/diff/1/state/watcher.go#newcode52 state/watcher.go:52: Added, Deleted []*Unit Just a suggestion: ...
11 years, 10 months ago (2012-06-26 15:02:33 UTC) #2
TheMue
Please take a look. https://codereview.appspot.com/6325062/diff/1/state/watcher.go File state/watcher.go (right): https://codereview.appspot.com/6325062/diff/1/state/watcher.go#newcode52 state/watcher.go:52: Added, Deleted []*Unit On 2012/06/26 ...
11 years, 10 months ago (2012-06-26 15:41:05 UTC) #3
niemeyer
Looking nice. A few details to sort out: https://codereview.appspot.com/6325062/diff/1/state/watcher.go File state/watcher.go (right): https://codereview.appspot.com/6325062/diff/1/state/watcher.go#newcode50 state/watcher.go:50: // ...
11 years, 10 months ago (2012-06-27 06:26:38 UTC) #4
TheMue
Please take a look. https://codereview.appspot.com/6325062/diff/5001/state/watcher.go File state/watcher.go (right): https://codereview.appspot.com/6325062/diff/5001/state/watcher.go#newcode56 state/watcher.go:56: // a service. On 2012/06/27 ...
11 years, 10 months ago (2012-06-27 13:01:18 UTC) #5
niemeyer
Thanks. LGTM, with a couple of trivials: https://codereview.appspot.com/6325062/diff/11001/state/watcher.go File state/watcher.go (right): https://codereview.appspot.com/6325062/diff/11001/state/watcher.go#newcode55 state/watcher.go:55: // ServiceUnitsWatcher ...
11 years, 10 months ago (2012-06-28 07:01:35 UTC) #6
TheMue
11 years, 10 months ago (2012-06-28 13:35:27 UTC) #7
*** Submitted:

state: added watcher for service units

The added watcher returns informations about the
assigned or unassigned units of a service.

R=fwereade, niemeyer
CC=
https://codereview.appspot.com/6325062

https://codereview.appspot.com/6325062/diff/11001/state/watcher.go
File state/watcher.go (right):

https://codereview.appspot.com/6325062/diff/11001/state/watcher.go#newcode55
state/watcher.go:55: // ServiceUnitsWatcher observes the adding and removing
On 2012/06/28 07:01:35, niemeyer wrote:
> addition and removal

Done.

https://codereview.appspot.com/6325062/diff/11001/state/watcher_test.go
File state/watcher_test.go (right):

https://codereview.appspot.com/6325062/diff/11001/state/watcher_test.go#newco...
state/watcher_test.go:147: want = &state.ServiceUnitsChange{nil,
[]*state.Unit{units[test.idx]}}
On 2012/06/28 07:01:35, niemeyer wrote:
> units[test.idx] = nil

Done.
Sign in to reply to this message.

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