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

Issue 6595064: state: update ServiceUnitsWatcher

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 6 months ago by aram
Modified:
11 years, 6 months ago
Reviewers:
mp+127837, niemeyer
Visibility:
Public.

Description

state: update ServiceUnitsWatcher Add lifecycle support to the ServiceUnitsWatcher and make it a new style watcher that only returns ids. https://code.launchpad.net/~aramh/juju-core/101-state-watchers-service-units5/+merge/127837 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 5

Patch Set 2 : state: update ServiceUnitsWatcher #

Total comments: 10

Patch Set 3 : state: update ServiceUnitsWatcher #

Unified diffs Side-by-side diffs Delta from patch set Stats (+282 lines, -224 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M state/service_test.go View 1 2 4 chunks +197 lines, -134 lines 0 comments Download
M state/watcher.go View 1 2 4 chunks +83 lines, -90 lines 0 comments Download

Messages

Total messages: 10
aram
Please take a look.
11 years, 6 months ago (2012-10-03 17:43:47 UTC) #1
aram
https://codereview.appspot.com/6595064/diff/1/state/service_test.go File state/service_test.go (right): https://codereview.appspot.com/6595064/diff/1/state/service_test.go#newcode345 state/service_test.go:345: type unitSlice []*state.Unit This is not new code, it's ...
11 years, 6 months ago (2012-10-03 17:46:57 UTC) #2
niemeyer
https://codereview.appspot.com/6595064/diff/1/state/service.go File state/service.go (right): https://codereview.appspot.com/6595064/diff/1/state/service.go#newcode27 state/service.go:27: Units []string It's quite unfortunate, but we can't have ...
11 years, 6 months ago (2012-10-03 19:09:13 UTC) #3
aram
Please take a look.
11 years, 6 months ago (2012-10-08 20:08:02 UTC) #4
niemeyer
LGTM. A few last points for your consideration: https://codereview.appspot.com/6595064/diff/8001/state/service_test.go File state/service_test.go (right): https://codereview.appspot.com/6595064/diff/8001/state/service_test.go#newcode361 state/service_test.go:361: { ...
11 years, 6 months ago (2012-10-09 18:01:59 UTC) #5
niemeyer
https://codereview.appspot.com/6595064/diff/8001/state/watcher.go File state/watcher.go (right): https://codereview.appspot.com/6595064/diff/8001/state/watcher.go#newcode409 state/watcher.go:409: func (w *ServiceUnitsWatcher) merge(pending []string, name string) (changes []string, ...
11 years, 6 months ago (2012-10-09 21:22:48 UTC) #6
niemeyer
LGTM given the above straightforward change still.
11 years, 6 months ago (2012-10-09 21:23:14 UTC) #7
aram
https://codereview.appspot.com/6595064/diff/8001/state/watcher.go File state/watcher.go (right): https://codereview.appspot.com/6595064/diff/8001/state/watcher.go#newcode409 state/watcher.go:409: func (w *ServiceUnitsWatcher) merge(pending []string, name string) (changes []string, ...
11 years, 6 months ago (2012-10-10 12:15:35 UTC) #8
aram
https://codereview.appspot.com/6595064/diff/8001/state/service_test.go File state/service_test.go (right): https://codereview.appspot.com/6595064/diff/8001/state/service_test.go#newcode361 state/service_test.go:361: { On 2012/10/09 18:01:59, niemeyer wrote: > We can ...
11 years, 6 months ago (2012-10-10 14:34:25 UTC) #9
aram
11 years, 6 months ago (2012-10-10 14:34:52 UTC) #10
*** Submitted:

state: update ServiceUnitsWatcher

Add lifecycle support to the ServiceUnitsWatcher and make it a new style
watcher that only returns ids.

R=niemeyer
CC=
https://codereview.appspot.com/6595064
Sign in to reply to this message.

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