|
state: EnterScope fixes
EnterScope now takes a settings map, which is used to create or overwrite
the unit relation settings, if and only if a scope document does not
already exist. The overwriting improves the behaviour of units which leave
and then enter the same scope, by preventing stale settings from confusing
remote units.
In addition, RelationUnit no longer has an annoyingly hidden dependency on
the unit's private address; this makes it easier to create a subordinate,
and consequently makes the removal of AddUnitSubordinateTo more manageable.
https://code.launchpad.net/~fwereade/juju-core/untangle-enter-scope/+merge/142657
(do not edit description out of merge proposal)
Total comments: 14
Total comments: 5
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+295 lines, -222 lines) |
Patch |
 |
A |
[revision details]
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
juju/conn_test.go
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
state/relation.go
|
View
|
1
2
|
3 chunks |
+119 lines, -88 lines |
0 comments
|
Download
|
 |
M |
state/relation_test.go
|
View
|
1
|
39 chunks |
+93 lines, -67 lines |
0 comments
|
Download
|
 |
M |
state/service_test.go
|
View
|
1
|
2 chunks |
+3 lines, -7 lines |
0 comments
|
Download
|
 |
M |
state/settings.go
|
View
|
1
2
|
2 chunks |
+44 lines, -6 lines |
0 comments
|
Download
|
 |
M |
state/unit_test.go
|
View
|
1
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
worker/deployer/deployer_test.go
|
View
|
|
3 chunks |
+4 lines, -7 lines |
0 comments
|
Download
|
 |
M |
worker/uniter/context_test.go
|
View
|
1
|
6 chunks |
+10 lines, -20 lines |
0 comments
|
Download
|
 |
M |
worker/uniter/filter_test.go
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
worker/uniter/relationer.go
|
View
|
1
|
1 chunk |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
worker/uniter/relationer_test.go
|
View
|
1
|
5 chunks |
+9 lines, -11 lines |
0 comments
|
Download
|
 |
M |
worker/uniter/uniter_test.go
|
View
|
1
|
2 chunks |
+3 lines, -8 lines |
0 comments
|
Download
|
Total messages: 8
|