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

Issue 10890047: state/api/upgrader: Implement WatchAPIVersion

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

Description

state/api/upgrader: Implement WatchAPIVersion This lets us create a client side params.NotifyWatcher in response to Upgrader.WatchAPIVersion. To make the testing sane, I exposed a way to trigger Sync in the API Server (running in the dummy environment). These are the same Sync calls that NotifyWatcherC was doing, except it needs to be done on a different State object, which is not easily accessible to testing code. https://code.launchpad.net/~jameinel/juju-core/upgrader-api-client-watcher/+merge/173511 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : state/api/upgrader: Implement WatchAPIVersion #

Patch Set 3 : state/api/upgrader: Implement WatchAPIVersion #

Total comments: 9

Patch Set 4 : state/api/upgrader: Implement WatchAPIVersion #

Total comments: 1

Patch Set 5 : state/api/upgrader: Implement WatchAPIVersion #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -23 lines) Patch
A [revision details] View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M environs/dummy/environs.go View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
M juju/testing/conn.go View 1 2 3 3 chunks +16 lines, -7 lines 0 comments Download
M state/api/upgrader/upgrader.go View 1 2 3 4 2 chunks +24 lines, -0 lines 0 comments Download
M state/api/upgrader/upgrader_test.go View 1 2 3 4 2 chunks +25 lines, -0 lines 0 comments Download
M state/api/watcher/watcher.go View 1 2 3 4 8 chunks +14 lines, -15 lines 0 comments Download
M state/apiserver/upgrader/upgrader.go View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M state/apiserver/upgrader/upgrader_test.go View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 8
jameinel
Please take a look.
10 years, 10 months ago (2013-07-08 13:51:39 UTC) #1
jameinel
Please take a look.
10 years, 10 months ago (2013-07-08 13:53:15 UTC) #2
jameinel
Please take a look.
10 years, 10 months ago (2013-07-09 12:48:27 UTC) #3
fwereade
For correctness, I think we need direct access to the backing state, not just the ...
10 years, 9 months ago (2013-07-10 08:55:56 UTC) #4
jameinel
Please take a look. https://codereview.appspot.com/10890047/diff/5001/state/api/upgrader/upgrader_test.go File state/api/upgrader/upgrader_test.go (right): https://codereview.appspot.com/10890047/diff/5001/state/api/upgrader/upgrader_test.go#newcode164 state/api/upgrader/upgrader_test.go:164: wc := statetesting.NewNotifyWatcherC(c, s.State, w) ...
10 years, 9 months ago (2013-07-10 10:47:05 UTC) #5
fwereade
LGTM, nice.
10 years, 9 months ago (2013-07-10 11:11:01 UTC) #6
dimitern
LGTM https://codereview.appspot.com/10890047/diff/11001/juju/testing/conn.go File juju/testing/conn.go (right): https://codereview.appspot.com/10890047/diff/11001/juju/testing/conn.go#newcode220 juju/testing/conn.go:220: type GetStater interface { GetStateInAPIServer-er :D
10 years, 9 months ago (2013-07-10 13:30:02 UTC) #7
jameinel
10 years, 9 months ago (2013-07-10 17:26:13 UTC) #8
Please take a look.
Sign in to reply to this message.

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