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

Issue 10675043: Add a watcher for the minUnits collection.

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

Description

Add a watcher for the minUnits collection. The watcher notifies about changes in the minUnits collection, i.e. it sends events when a service MinUnits is increased or a unit is destroyed. https://code.launchpad.net/~frankban/juju-core/minimum-units-watcher/+merge/171741 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 15

Patch Set 2 : Add a watcher for the minUnits collection. #

Total comments: 10

Patch Set 3 : Add a watcher for the minUnits collection. #

Patch Set 4 : Add a watcher for the minUnits collection. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+179 lines, -0 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M state/state_test.go View 1 2 3 1 chunk +83 lines, -0 lines 0 comments Download
M state/watcher.go View 1 2 3 1 chunk +94 lines, -0 lines 0 comments Download

Messages

Total messages: 10
frankban
Please take a look.
10 years, 10 months ago (2013-06-27 09:07:50 UTC) #1
dimitern
Looks reasonable, but I have a few suggestions. Do you really need to return []string ...
10 years, 9 months ago (2013-06-27 14:54:48 UTC) #2
frankban
On 2013/06/27 14:54:48, dimitern wrote: > Looks reasonable, but I have a few suggestions. > ...
10 years, 9 months ago (2013-06-27 17:23:55 UTC) #3
frankban
Please take a look. https://codereview.appspot.com/10675043/diff/1/state/state_test.go File state/state_test.go (right): https://codereview.appspot.com/10675043/diff/1/state/state_test.go#newcode1632 state/state_test.go:1632: // Check no events. On ...
10 years, 9 months ago (2013-06-27 17:31:50 UTC) #4
fwereade
Looking very nice, just a couple of suggestions. https://codereview.appspot.com/10675043/diff/8001/state/state_test.go File state/state_test.go (right): https://codereview.appspot.com/10675043/diff/8001/state/state_test.go#newcode1624 state/state_test.go:1624: wordpressName ...
10 years, 9 months ago (2013-06-28 10:48:58 UTC) #5
frankban
Please take a look. https://codereview.appspot.com/10675043/diff/8001/state/state_test.go File state/state_test.go (right): https://codereview.appspot.com/10675043/diff/8001/state/state_test.go#newcode1624 state/state_test.go:1624: wordpressName := wordpress.Name() On 2013/06/28 ...
10 years, 9 months ago (2013-06-28 14:18:09 UTC) #6
frankban
https://codereview.appspot.com/10675043/diff/8001/state/watcher.go File state/watcher.go (right): https://codereview.appspot.com/10675043/diff/8001/state/watcher.go#newcode351 state/watcher.go:351: delete(w.known, serviceName) On 2013/06/28 10:48:58, fwereade wrote: > I ...
10 years, 9 months ago (2013-06-28 14:23:52 UTC) #7
fwereade
Lovely, LGTM
10 years, 9 months ago (2013-06-28 14:30:08 UTC) #8
dimitern
LGTM with a minor grumble re a previous suggestion. https://codereview.appspot.com/10675043/diff/1/state/watcher.go File state/watcher.go (right): https://codereview.appspot.com/10675043/diff/1/state/watcher.go#newcode376 state/watcher.go:376: ...
10 years, 9 months ago (2013-06-28 16:14:50 UTC) #9
frankban
10 years, 9 months ago (2013-06-28 16:51:59 UTC) #10
Please take a look.

https://codereview.appspot.com/10675043/diff/1/state/watcher.go
File state/watcher.go (right):

https://codereview.appspot.com/10675043/diff/1/state/watcher.go#newcode376
state/watcher.go:376: case <-w.st.watcher.Dead():
On 2013/06/28 16:14:50, dimitern wrote:

> Haven't see this done, at least explain why you think it's better this way?

Sorry, missed it. Fixed now as you suggested, thank you!
Sign in to reply to this message.

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