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

Issue 6305070: add VersionWatcher, sharing common features with ContentWatcher

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 5 months ago by fwereade
Modified:
12 years, 5 months ago
Reviewers:
mp+109310, rog
Visibility:
Public.

Description

add VersionWatcher, sharing common features with ContentWatcher https://code.launchpad.net/~fwereade/juju-core/version-watcher/+merge/109310 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+225 lines, -107 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M state/watcher/watcher.go View 5 chunks +177 lines, -107 lines 2 comments Download
M state/watcher/watcher_test.go View 1 chunk +46 lines, -0 lines 0 comments Download

Messages

Total messages: 3
fwereade
Please take a look.
12 years, 5 months ago (2012-06-08 08:40:01 UTC) #1
rog
not sure about this. just needing more context, probably. https://codereview.appspot.com/6305070/diff/1/state/watcher/watcher.go File state/watcher/watcher.go (right): https://codereview.appspot.com/6305070/diff/1/state/watcher/watcher.go#newcode9 state/watcher/watcher.go:9: ...
12 years, 5 months ago (2012-06-11 10:32:03 UTC) #2
fwereade
12 years, 5 months ago (2012-06-11 11:41:00 UTC) #3
On 2012/06/11 10:32:03, rog wrote:
> not sure about this. just needing more context, probably.
> 
> https://codereview.appspot.com/6305070/diff/1/state/watcher/watcher.go
> File state/watcher/watcher.go (right):
> 
>
https://codereview.appspot.com/6305070/diff/1/state/watcher/watcher.go#newcode9
> state/watcher/watcher.go:9: // nodeWatcher holds functionality common to
> VersionWatcher and ContentWatcher.
> it would be nice if this comment said *what* functionality it implements.
> 
>
https://codereview.appspot.com/6305070/diff/1/state/watcher/watcher.go#newcode95
> state/watcher/watcher.go:95: // whenever the note is created, written to, or
> deleted.
> s/note/node/
> 
> I don't see what this gives us that we don't already get from ContentWatcher.
> What am I missing?

Rejecting on the basis that it is more correct for us to consume content changes
and store the actual content for use at hook execution time than it is to merely
queue the existence of the change and, come hook execution time, casually use
whatever settings happen to be around. Redundant changes should be collapsed by
the hook scheduler, as in python, so this shouldn't waste too much space; and
it's certainly more correct.
Sign in to reply to this message.

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