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

Issue 8761045: state: service config settings in AllWatcher

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

Description

state: service config settings in AllWatcher This does not provide default settings, so the client needs to be intelligent about interpreting the information, but that is possibly a reasonable thing (saves network bandwidth - the client has access to the charm metadata information). https://code.launchpad.net/~rogpeppe/juju-core/286-allwatcher-service-config/+merge/159037 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : state: service config settings in AllWatcher #

Total comments: 10

Patch Set 3 : state: service config settings in AllWatcher #

Total comments: 1

Patch Set 4 : state: service config settings in AllWatcher #

Unified diffs Side-by-side diffs Delta from patch set Stats (+254 lines, -16 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M state/api/params/params.go View 1 chunk +1 line, -0 lines 0 comments Download
M state/api/params/params_test.go View 1 chunk +5 lines, -1 line 0 comments Download
M state/megawatcher.go View 1 2 6 chunks +89 lines, -1 line 0 comments Download
M state/megawatcher_internal_test.go View 6 chunks +137 lines, -5 lines 0 comments Download
M state/settings.go View 1 2 3 chunks +18 lines, -7 lines 0 comments Download
M state/settings_test.go View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 9
rog
Please take a look.
11 years ago (2013-04-15 22:46:13 UTC) #1
thumper
https://codereview.appspot.com/8761045/diff/2001/state/megawatcher.go File state/megawatcher.go (right): https://codereview.appspot.com/8761045/diff/2001/state/megawatcher.go#newcode306 state/megawatcher.go:306: info0 := store.Get(parentId) Sorry, but info0 is a horrible ...
11 years ago (2013-04-16 00:01:42 UTC) #2
rog
https://codereview.appspot.com/8761045/diff/2001/state/megawatcher.go File state/megawatcher.go (right): https://codereview.appspot.com/8761045/diff/2001/state/megawatcher.go#newcode306 state/megawatcher.go:306: info0 := store.Get(parentId) On 2013/04/16 00:01:42, thumper wrote: > ...
11 years ago (2013-04-16 08:10:44 UTC) #3
fwereade
LGTM with due consideration given to the following: https://codereview.appspot.com/8761045/diff/2001/state/megawatcher.go File state/megawatcher.go (right): https://codereview.appspot.com/8761045/diff/2001/state/megawatcher.go#newcode147 state/megawatcher.go:147: info.Config ...
11 years ago (2013-04-16 08:31:07 UTC) #4
dimitern
LGTM with one comment. https://codereview.appspot.com/8761045/diff/2001/state/megawatcher.go File state/megawatcher.go (right): https://codereview.appspot.com/8761045/diff/2001/state/megawatcher.go#newcode336 state/megawatcher.go:336: panic("cannot find mongo id from ...
11 years ago (2013-04-16 12:33:42 UTC) #5
rog
https://codereview.appspot.com/8761045/diff/2001/state/megawatcher.go File state/megawatcher.go (right): https://codereview.appspot.com/8761045/diff/2001/state/megawatcher.go#newcode336 state/megawatcher.go:336: panic("cannot find mongo id from settings document") On 2013/04/16 ...
11 years ago (2013-04-16 12:35:29 UTC) #6
rog
Please take a look.
11 years ago (2013-04-16 14:58:13 UTC) #7
fwereade
LGTM, much nicer https://codereview.appspot.com/8761045/diff/11001/state/settings.go File state/settings.go (right): https://codereview.appspot.com/8761045/diff/11001/state/settings.go#newcode208 state/settings.go:208: // key. It returns the settings ...
11 years ago (2013-04-16 15:09:28 UTC) #8
rog
11 years ago (2013-04-16 15:11:13 UTC) #9
*** Submitted:

state: service config settings in AllWatcher

This does not provide default settings, so the
client needs to be intelligent about interpreting
the information, but that is possibly a reasonable
thing (saves network bandwidth - the client
has access to the charm metadata information).

R=thumper, fwereade, dimitern
CC=
https://codereview.appspot.com/8761045
Sign in to reply to this message.

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