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

Issue 12344043: state/watcher: RelationUnitsChange -Joined (Closed)

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

Description

state/watcher: RelationUnitsChange -Joined Removed the Joined field from RelationsUnitsChange struct, used by the RelationUnitsWatcher, because it's not used anywhere and not properly tested. Added a note about UnitSettings.Settings field being unreliable as well, and probably needs removal as well. https://code.launchpad.net/~dimitern/juju-core/086-uniter-remove-relationunit-joined/+merge/178263 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 6

Patch Set 2 : state/watcher: RelationUnitsChange -Joined #

Total comments: 2

Patch Set 3 : state/watcher: RelationUnitsChange -Joined #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -15 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M state/unit.go View 1 1 chunk +4 lines, -2 lines 1 comment Download
M state/watcher.go View 1 2 4 chunks +8 lines, -10 lines 1 comment Download
M worker/uniter/relationer_test.go View 3 chunks +0 lines, -3 lines 0 comments Download

Messages

Total messages: 8
dimitern
Please take a look.
10 years, 9 months ago (2013-08-02 11:18:00 UTC) #1
fwereade
LGTM modulo inelegant doc. GTG. https://codereview.appspot.com/12344043/diff/1/state/unit.go File state/unit.go (right): https://codereview.appspot.com/12344043/diff/1/state/unit.go#newcode64 state/unit.go:64: // refreshed by the ...
10 years, 9 months ago (2013-08-02 11:25:53 UTC) #2
rog
LGTM with a doc update (and +1 to fwereade's suggestion of making the RelationUnitsChange docs ...
10 years, 9 months ago (2013-08-02 11:27:36 UTC) #3
dimitern
Please take a look. https://codereview.appspot.com/12344043/diff/1/state/unit.go File state/unit.go (right): https://codereview.appspot.com/12344043/diff/1/state/unit.go#newcode63 state/unit.go:63: // populated and up-to-date at ...
10 years, 9 months ago (2013-08-02 12:27:55 UTC) #4
rog
https://codereview.appspot.com/12344043/diff/7002/state/watcher.go File state/watcher.go (right): https://codereview.appspot.com/12344043/diff/7002/state/watcher.go#newcode515 state/watcher.go:515: // When a remove unit first enters scope, or ...
10 years, 9 months ago (2013-08-02 12:36:07 UTC) #5
dimitern
Please take a look. https://codereview.appspot.com/12344043/diff/7002/state/watcher.go File state/watcher.go (right): https://codereview.appspot.com/12344043/diff/7002/state/watcher.go#newcode515 state/watcher.go:515: // When a remove unit ...
10 years, 9 months ago (2013-08-02 12:40:07 UTC) #6
fwereade
LGTM, couple of suggestions. https://codereview.appspot.com/12344043/diff/10003/state/unit.go File state/unit.go (right): https://codereview.appspot.com/12344043/diff/10003/state/unit.go#newcode63 state/unit.go:63: // dependent upon. We need ...
10 years, 9 months ago (2013-08-02 15:42:22 UTC) #7
dimitern
10 years, 9 months ago (2013-08-02 16:15:13 UTC) #8
Message was sent while issue was closed.
On 2013/08/02 15:42:22, fwereade wrote:
> LGTM, couple of suggestions.
> 
> https://codereview.appspot.com/12344043/diff/10003/state/unit.go
> File state/unit.go (right):
> 
> https://codereview.appspot.com/12344043/diff/10003/state/unit.go#newcode63
> state/unit.go:63: // dependent upon. We need to remove it in the future.
> s/ent/ed/
> 
> https://codereview.appspot.com/12344043/diff/10003/state/watcher.go
> File state/watcher.go (right):
> 
> https://codereview.appspot.com/12344043/diff/10003/state/watcher.go#newcode517
> state/watcher.go:517: // the unit settings for every such unit, indexed by the
> unit id.
> +1 to a note that the Settings are not guaranteed to be present, but will be
> accurate if they are; and that the Version(?) field is always valid, and that
a
> change in Version always indicates a change in associated settings.
> 
> (The other one is still good, but I think a note here is even higher value, as
> rog suggested.)

Sorry, will fix there in a follow up, since this already landed.
Sign in to reply to this message.

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