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

Issue 11800044: state/api/worker: use Tools in params

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

Description

state/api/worker: use Tools in params This simplifies the SetAgentTools call generally. https://code.launchpad.net/~rogpeppe/juju-core/348-upgrader-api-use-tools-type/+merge/176883 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : state/api/worker: use Tools in params #

Patch Set 3 : state/api/worker: use Tools in params #

Total comments: 6

Patch Set 4 : state/api/worker: use Tools in params #

Patch Set 5 : state/api/worker: use Tools in params #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -192 lines) Patch
A [revision details] View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M state/api/params/internal.go View 1 2 3 4 2 chunks +14 lines, -26 lines 0 comments Download
M state/api/upgrader/upgrader.go View 1 2 3 4 3 chunks +19 lines, -28 lines 0 comments Download
M state/api/upgrader/upgrader_test.go View 1 3 chunks +11 lines, -37 lines 0 comments Download
M state/apiserver/upgrader/upgrader.go View 1 2 3 3 chunks +34 lines, -63 lines 0 comments Download
M state/apiserver/upgrader/upgrader_test.go View 1 5 chunks +23 lines, -38 lines 0 comments Download
M state/state.go View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 9
rog
Please take a look.
10 years, 9 months ago (2013-07-25 08:02:50 UTC) #1
dimitern
LGTM with a couple of suggestions below https://codereview.appspot.com/11800044/diff/5001/state/api/params/internal.go File state/api/params/internal.go (right): https://codereview.appspot.com/11800044/diff/5001/state/api/params/internal.go#newcode93 state/api/params/internal.go:93: // SetAgent ...
10 years, 9 months ago (2013-07-25 09:14:33 UTC) #2
fwereade
This looks excellent, just one question. https://codereview.appspot.com/11800044/diff/5001/state/apiserver/upgrader/upgrader.go File state/apiserver/upgrader/upgrader.go (right): https://codereview.appspot.com/11800044/diff/5001/state/apiserver/upgrader/upgrader.go#newcode129 state/apiserver/upgrader/upgrader.go:129: type setAgentTooler interface ...
10 years, 9 months ago (2013-07-25 09:42:29 UTC) #3
fwereade
LGTM with the interface move.
10 years, 9 months ago (2013-07-25 09:46:17 UTC) #4
rog
Please take a look.
10 years, 9 months ago (2013-07-25 11:15:10 UTC) #5
rog
https://codereview.appspot.com/11800044/diff/5001/state/apiserver/upgrader/upgrader.go File state/apiserver/upgrader/upgrader.go (right): https://codereview.appspot.com/11800044/diff/5001/state/apiserver/upgrader/upgrader.go#newcode129 state/apiserver/upgrader/upgrader.go:129: type setAgentTooler interface { On 2013/07/25 09:42:29, fwereade wrote: ...
10 years, 9 months ago (2013-07-25 11:15:22 UTC) #6
rog
Please take a look. https://codereview.appspot.com/11800044/diff/5001/state/api/params/internal.go File state/api/params/internal.go (right): https://codereview.appspot.com/11800044/diff/5001/state/api/params/internal.go#newcode93 state/api/params/internal.go:93: // SetAgent tools specifies tools ...
10 years, 9 months ago (2013-07-25 11:18:34 UTC) #7
jameinel
When submitting this sort of thing for review, it would be probably good to highlight ...
10 years, 9 months ago (2013-07-27 21:59:03 UTC) #8
rog
10 years, 9 months ago (2013-07-29 08:28:08 UTC) #9
On 27 July 2013 22:59,  <john.meinel@canonical.com> wrote:
> When submitting this sort of thing for review, it would be probably good
> to highlight that this is an API break. (The bytes on the wire for
> AgentTools is different, I do believe.)

If anything that was currently hooked in was sending a tools
description on the wire,
I would not have changed it. As it is, I think the only thing that
does is the upgrader
which isn't yet committed.

> I'm a little hesitant on having state/api/params depend on anything,
> given we've managed to avoid dependencies so far.

state/api/params already depends on a few external things:
instance.Port, charm.Meta, constraints.Value. I agree we should
avoid adding unnecessary dependencies, but this one seems ok to me.
It would be nice to have some automated way of determining which
types are used in the API so that we can have alarm bells go off when
they're changed.

  cheers,
    rog.
Sign in to reply to this message.

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