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

Issue 13691043: Implement the client part for the logger worker.

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 7 months ago by thumper
Modified:
10 years, 7 months ago
Reviewers:
mp+185404, wallyworld, rog
Visibility:
Public.

Description

Implement the client part for the logger worker. A bit of cut and paste here, which is why we have a type called State (all the api client endpoints are called State), and instead of bucking the trend, I followed blindly along. Also the // TODO: not directly tested lines are also in all the other client endpoints. Consistency for the win. Some test code is also refactored out. https://code.launchpad.net/~thumper/juju-core/logger-api-client/+merge/185404 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+457 lines, -9 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
A state/api/logger/logger.go View 1 chunk +67 lines, -0 lines 2 comments Download
A state/api/logger/logger_test.go View 1 chunk +81 lines, -0 lines 3 comments Download
A state/api/logger/package_test.go View 1 chunk +14 lines, -0 lines 0 comments Download
M state/api/state.go View 2 chunks +6 lines, -0 lines 0 comments Download
A state/apiserver/logger/logger.go View 1 chunk +91 lines, -0 lines 1 comment Download
A state/apiserver/logger/logger_test.go View 1 chunk +148 lines, -0 lines 0 comments Download
A state/apiserver/logger/package_test.go View 1 chunk +14 lines, -0 lines 0 comments Download
M state/apiserver/root.go View 2 chunks +11 lines, -0 lines 0 comments Download
M state/testing/agent.go View 1 chunk +1 line, -9 lines 0 comments Download
A state/testing/config.go View 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 4
thumper
Please take a look.
10 years, 7 months ago (2013-09-13 02:33:12 UTC) #1
wallyworld
LGTM with the testing issues fixed https://codereview.appspot.com/13691043/diff/1/state/api/logger/logger.go File state/api/logger/logger.go (right): https://codereview.appspot.com/13691043/diff/1/state/api/logger/logger.go#newcode25 state/api/logger/logger.go:25: func (st *State) ...
10 years, 7 months ago (2013-09-13 02:50:33 UTC) #2
thumper
On 2013/09/13 02:50:33, wallyworld wrote: > LGTM with the testing issues fixed > > https://codereview.appspot.com/13691043/diff/1/state/api/logger/logger.go ...
10 years, 7 months ago (2013-09-13 03:34:56 UTC) #3
rog
10 years, 7 months ago (2013-09-13 06:56:58 UTC) #4
LGTM with one suggestion below.

https://codereview.appspot.com/13691043/diff/1/state/apiserver/logger/logger.go
File state/apiserver/logger/logger.go (right):

https://codereview.appspot.com/13691043/diff/1/state/apiserver/logger/logger....
state/apiserver/logger/logger.go:19: // endpoint because our rpc mechanism
panics.  However, I still feel that this
Interesting; that's a bug in the rpc package.
Fix proposed at https://codereview.appspot.com/13300050

But I'm not sure I agree with the principle - how is an
interface better documentation than the LoggerAPI type
itself? I'd move the first sentence of this comment onto that type
and delete the interface.
Sign in to reply to this message.

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