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

Issue 6498124: state, mstate: implement UnitWatcher

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 7 months ago by rog
Modified:
11 years, 7 months ago
Reviewers:
mp+124078, niemeyer, fwereade
Visibility:
Public.

Description

state, mstate: implement UnitWatcher https://code.launchpad.net/~rogpeppe/juju-core/060-unit-watcher/+merge/124078 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : state, mstate: implement UnitWatcher #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -0 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M state/unit.go View 1 chunk +4 lines, -0 lines 0 comments Download
M state/unit_test.go View 1 chunk +78 lines, -0 lines 0 comments Download
M state/watcher.go View 1 chunk +41 lines, -0 lines 0 comments Download

Messages

Total messages: 4
rog
Please take a look.
11 years, 7 months ago (2012-09-12 23:25:35 UTC) #1
fwereade
On 2012/09/12 23:25:35, rog wrote: > Please take a look. Where's mstate? :p
11 years, 7 months ago (2012-09-13 10:43:53 UTC) #2
fwereade
Fairly strongly -1 on this change. It sounds as though the only current use case ...
11 years, 7 months ago (2012-09-13 12:11:12 UTC) #3
niemeyer
11 years, 7 months ago (2012-09-17 13:14:52 UTC) #4
We've discussed William's concern live in the sprint, and agreed that we'll
migrate trivial watchers (watchers that in general monitor a field in an
entity's document) to generic entity watchers (e.g. service exposed watcher =>
service watcher).

So, we'll indeed need a unit watcher, and should obsolete the other watchers.

That said, we're pushing forward the state > mstate transition at the moment, so
I suggest we have that watcher straight into mstate instead.
Sign in to reply to this message.

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