Keyboard Shortcuts

File
u :up to issue
m :publish + mail comments
M :edit review message
j / k :jump to file after / before current file
J / K :jump to next file with a comment after / before current file
Side-by-side diff
i :toggle intra-line diffs
e :expand all comments
c :collapse all comments
s :toggle showing all comments
n / p :next / previous diff chunk or comment
N / P :next / previous comment
<Up> / <Down> :next / previous line
<Enter> :respond to / edit current comment
d :mark current comment as done
Issue
u :up to list of issues
m :publish + mail comments
j / k :jump to patch after / before current patch
o / <Enter> :open current patch in side-by-side view
i :open current patch in unified diff view
Issue List
j / k :jump to issue after / before current issue
o / <Enter> :open current issue
# : close issue
Comment/message editing
<Ctrl> + s or <Ctrl> + Enter :save comment
<Esc> :cancel edit
Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(19)
Issues Repositories Search
Open Issues | Closed Issues | All Issues | Sign in with your Google Account to create issues and add comments

Issue 14619045: state: make Addresses use Machine.Addresses

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 2 months ago by rog
Modified:
12 years, 2 months ago
Reviewers:
mp+191686, natefinch
Visibility:
Public.
state: make Addresses use Machine.Addresses ... and APIAddresses likewise. This requires changing some tests so that there is actually a machine that pretends to be the state server. https://code.launchpad.net/~rogpeppe/juju-core/451-state-addresses/+merge/191686 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : state: make Addresses use Machine.Addresses #

Total comments: 8

Patch Set 3 : state: make Addresses use Machine.Addresses #

Patch Set 4 : state: make Addresses use Machine.Addresses #

Created: 12 years, 2 months ago
Download [raw] [tar.bz2]
Unified diffs Side-by-side diffs Delta from patch set Stats (+262 lines, -116 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/jujud/machine_test.go View 2 chunks +10 lines, -2 lines 0 comments Download
M juju/testing/utils.go View 2 chunks +18 lines, -0 lines 0 comments Download
M provider/local/environ.go View 1 2 3 2 chunks +18 lines, -2 lines 0 comments Download
M state/address.go View 2 chunks +75 lines, -0 lines 0 comments Download
M state/api/deployer/deployer_test.go View 2 chunks +7 lines, -2 lines 0 comments Download
M state/api/provisioner/provisioner_test.go View 3 chunks +14 lines, -3 lines 0 comments Download
M state/apiserver/common/addresses.go View 1 2 4 chunks +17 lines, -39 lines 0 comments Download
M state/apiserver/common/addresses_test.go View 1 2 2 chunks +22 lines, -9 lines 0 comments Download
M state/apiserver/deployer/deployer_test.go View 3 chunks +14 lines, -2 lines 0 comments Download
M state/apiserver/provisioner/provisioner_test.go View 1 2 2 chunks +7 lines, -3 lines 0 comments Download
M state/open.go View 2 chunks +0 lines, -29 lines 0 comments Download
M state/state_test.go View 3 chunks +48 lines, -23 lines 0 comments Download
M worker/provisioner/lxc-broker_test.go View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M worker/provisioner/provisioner_test.go View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
Total messages: 4
|
rog
Please take a look.
12 years, 2 months ago (2013年10月17日 17:58:40 UTC) #1
Please take a look.
Sign in to reply to this message.
natefinch
LGTM with a couple very minor nitpicks. https://codereview.appspot.com/14619045/diff/4001/state/apiserver/common/addresses.go File state/apiserver/common/addresses.go (right): https://codereview.appspot.com/14619045/diff/4001/state/apiserver/common/addresses.go#newcode12 state/apiserver/common/addresses.go:12: // It ...
12 years, 2 months ago (2013年10月18日 13:07:33 UTC) #2
LGTM with a couple very minor nitpicks.
https://codereview.appspot.com/14619045/diff/4001/state/apiserver/common/addr...
File state/apiserver/common/addresses.go (right):
https://codereview.appspot.com/14619045/diff/4001/state/apiserver/common/addr...
state/apiserver/common/addresses.go:12: // It is implemented by state.State.
Not a fan of having the comment on the interface tell you what implements the
interface. It's way too far from the implementation, and therefor easy for it to
get out of date. Also, it just seems contrary the idea of implicit
implementations.
https://codereview.appspot.com/14619045/diff/4001/state/apiserver/common/addr...
state/apiserver/common/addresses.go:23: st AddressAndCertGetter
st is a terrible name for an AddressAndCertGetter. I get that the only thing
that implements it is state, but that's information external to the type, and
makes the code in this file more difficult to read.
https://codereview.appspot.com/14619045/diff/4001/state/apiserver/common/addr...
state/apiserver/common/addresses.go:28: func NewAddresser(st
AddressAndCertGetter) *Addresser {
as above
https://codereview.appspot.com/14619045/diff/4001/state/apiserver/provisioner...
File state/apiserver/provisioner/provisioner_test.go (right):
https://codereview.appspot.com/14619045/diff/4001/state/apiserver/provisioner...
state/apiserver/provisioner/provisioner_test.go:50: for i := 1; i < 3; i++ {
can you just make this 0 to 2 instead of 1 to 3? confuses the heck out of me
as-is.
Sign in to reply to this message.
rog
Please take a look. https://codereview.appspot.com/14619045/diff/4001/state/apiserver/common/addresses.go File state/apiserver/common/addresses.go (right): https://codereview.appspot.com/14619045/diff/4001/state/apiserver/common/addresses.go#newcode12 state/apiserver/common/addresses.go:12: // It is implemented by ...
12 years, 2 months ago (2013年10月18日 14:09:05 UTC) #3
Please take a look.
https://codereview.appspot.com/14619045/diff/4001/state/apiserver/common/addr...
File state/apiserver/common/addresses.go (right):
https://codereview.appspot.com/14619045/diff/4001/state/apiserver/common/addr...
state/apiserver/common/addresses.go:12: // It is implemented by state.State.
On 2013年10月18日 13:07:33, nate.finch wrote:
> Not a fan of having the comment on the interface tell you what implements the
> interface. It's way too far from the implementation, and therefor easy for it
to
> get out of date. Also, it just seems contrary the idea of implicit
> implementations.
Done.
https://codereview.appspot.com/14619045/diff/4001/state/apiserver/common/addr...
state/apiserver/common/addresses.go:23: st AddressAndCertGetter
On 2013年10月18日 13:07:33, nate.finch wrote:
> st is a terrible name for an AddressAndCertGetter. I get that the only thing
> that implements it is state, but that's information external to the type, and
> makes the code in this file more difficult to read.
Done.
https://codereview.appspot.com/14619045/diff/4001/state/apiserver/common/addr...
state/apiserver/common/addresses.go:28: func NewAddresser(st
AddressAndCertGetter) *Addresser {
On 2013年10月18日 13:07:33, nate.finch wrote:
> as above
Done.
https://codereview.appspot.com/14619045/diff/4001/state/apiserver/provisioner...
File state/apiserver/provisioner/provisioner_test.go (right):
https://codereview.appspot.com/14619045/diff/4001/state/apiserver/provisioner...
state/apiserver/provisioner/provisioner_test.go:50: for i := 1; i < 3; i++ {
On 2013年10月18日 13:07:33, nate.finch wrote:
> can you just make this 0 to 2 instead of 1 to 3? confuses the heck out of me
> as-is.
Done.
Sign in to reply to this message.
rog
Please take a look.
12 years, 2 months ago (2013年10月31日 12:13:32 UTC) #4
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

AltStyle によって変換されたページ (->オリジナル) /