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

Issue 54620043: apiserver: Extract common.EnvironWatcher mixin (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 3 months ago by dimitern
Modified:
10 years, 3 months ago
Reviewers:
mp+202343, rog
Visibility:
Public.

Description

apiserver: Extract common.EnvironWatcher mixin These two methods of the ProvisionerAPI and the upcoming FirewallerAPI are common, so they're extracted in a common.EnvironWatcher mixin: * WatchForEnvironConfigChanges() * EnvironConfig() As a side-effect, added a TODO and a tech-dept bug about UniterAPI.GetOwnerTag: no doc comment and no permissions check implemented (#1270795). This is the first of a sequence of CLs which will end with a complete server-side API for the firewaller. https://code.launchpad.net/~dimitern/juju-core/232-apiserver-common-environwatcher/+merge/202343 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 28

Patch Set 2 : apiserver: Extract common.EnvironWatcher mixin #

Patch Set 3 : apiserver: Extract common.EnvironWatcher mixin #

Unified diffs Side-by-side diffs Delta from patch set Stats (+328 lines, -47 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M state/api/uniter/service.go View 1 chunk +2 lines, -0 lines 0 comments Download
A state/apiserver/common/environwatcher.go View 1 2 1 chunk +102 lines, -0 lines 0 comments Download
A state/apiserver/common/environwatcher_test.go View 1 2 1 chunk +193 lines, -0 lines 0 comments Download
M state/apiserver/common/interfaces.go View 1 1 chunk +10 lines, -0 lines 0 comments Download
M state/apiserver/provisioner/provisioner.go View 1 5 chunks +6 lines, -47 lines 0 comments Download
M state/apiserver/uniter/uniter.go View 1 chunk +3 lines, -0 lines 0 comments Download
M state/interface.go View 2 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 6
dimitern
Please take a look.
10 years, 3 months ago (2014-01-20 17:02:43 UTC) #1
rog
Looks great in general with a few suggestion. I'm not that keen on the "not ...
10 years, 3 months ago (2014-01-21 10:44:50 UTC) #2
dimitern
Please take a look. https://codereview.appspot.com/54620043/diff/1/state/api/uniter/service.go File state/api/uniter/service.go (right): https://codereview.appspot.com/54620043/diff/1/state/api/uniter/service.go#newcode131 state/api/uniter/service.go:131: // Add a doc comment ...
10 years, 3 months ago (2014-01-21 11:17:30 UTC) #3
rog
I'm still not keen on the "not available" thing. And I've added a suggestion for ...
10 years, 3 months ago (2014-01-21 11:42:53 UTC) #4
dimitern
Please take a look. https://codereview.appspot.com/54620043/diff/1/state/api/uniter/service.go File state/api/uniter/service.go (right): https://codereview.appspot.com/54620043/diff/1/state/api/uniter/service.go#newcode131 state/api/uniter/service.go:131: // Add a doc comment ...
10 years, 3 months ago (2014-01-21 13:59:04 UTC) #5
rog
10 years, 3 months ago (2014-01-21 14:03:36 UTC) #6
LGTM, thanks.
Sign in to reply to this message.

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