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

Issue 5732048: Support for container relations

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by bcsaller
Modified:
12 years, 1 month ago
Reviewers:
mp+95717, hazmat
Visibility:
Public.

Description

Support for container relations Support in state for container relations. This version reuses as much of the existing watch code as possible. https://code.launchpad.net/~bcsaller/juju/subordinate-relation-type/+merge/95717 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 42

Patch Set 2 : Support for container relations #

Patch Set 3 : Support for container relations #

Patch Set 4 : Support for container relations #

Total comments: 17

Patch Set 5 : Support for container relations #

Patch Set 6 : Support for container relations #

Patch Set 7 : Support for container relations #

Total comments: 13

Patch Set 8 : Support for container relations #

Patch Set 9 : Support for container relations #

Patch Set 10 : Support for container relations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1847 lines, -251 lines) Patch
A [revision details] View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
juju/charm/tests/repository/series/funkyblog/config.yaml View 1 2 3 4 5 6 1 chunk +0 lines, -3 lines 0 comments Download
D juju/charm/tests/repository/series/funkyblog/config.yaml View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
D juju/charm/tests/repository/series/funkyblog/metadata.yaml View 1 2 3 4 5 6 7 1 chunk +17 lines, -0 lines 0 comments Download
D juju/charm/tests/repository/series/funkyblog/metadata.yaml View 1 2 3 4 5 6 8 9 1 chunk +0 lines, -17 lines 0 comments Download
D juju/charm/tests/repository/series/funkyblog/revision View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
D juju/charm/tests/repository/series/funkyblog/revision View 1 2 3 4 5 6 8 9 1 chunk +0 lines, -1 line 0 comments Download
M juju/hooks/commands.py View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M juju/hooks/tests/test_invoker.py View 1 2 3 4 5 6 7 3 chunks +99 lines, -1 line 0 comments Download
A juju/lib/pick.py View 1 1 chunk +49 lines, -0 lines 0 comments Download
M juju/lib/testing.py View 1 2 3 4 5 6 7 2 chunks +72 lines, -0 lines 0 comments Download
A juju/lib/tests/test_pick.py View 1 1 chunk +59 lines, -0 lines 0 comments Download
M juju/state/charm.py View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M juju/state/endpoint.py View 1 2 chunks +8 lines, -2 lines 0 comments Download
juju/state/errors.py View 1 2 3 4 5 6 7 2 chunks +57 lines, -0 lines 0 comments Download
M juju/state/hook.py View 1 2 3 4 5 6 7 4 chunks +39 lines, -8 lines 0 comments Download
M juju/state/relation.py View 1 2 3 4 5 6 7 18 chunks +200 lines, -77 lines 0 comments Download
juju/state/service.py View 1 2 3 4 5 6 7 11 chunks +91 lines, -10 lines 0 comments Download
M juju/state/tests/common.py View 1 2 1 chunk +1 line, -1 line 0 comments Download
M juju/state/tests/test_charm.py View 1 3 chunks +28 lines, -0 lines 0 comments Download
juju/state/tests/test_errors.py View 1 2 3 4 5 6 7 3 chunks +22 lines, -2 lines 0 comments Download
M juju/state/tests/test_hook.py View 1 2 3 4 5 6 7 2 chunks +89 lines, -1 line 0 comments Download
M juju/state/tests/test_relation.py View 1 2 3 4 5 6 7 18 chunks +284 lines, -11 lines 0 comments Download
juju/state/tests/test_service.py View 1 2 3 4 5 6 7 17 chunks +151 lines, -19 lines 0 comments Download
M juju/state/tests/test_topology.py View 1 2 3 4 5 6 7 7 chunks +269 lines, -5 lines 0 comments Download
M juju/state/topology.py View 1 2 3 4 5 21 chunks +262 lines, -83 lines 0 comments Download
juju/unit/lifecycle.py View 1 2 3 4 5 6 7 8 9 4 chunks +11 lines, -7 lines 0 comments Download
juju/unit/tests/test_workflow.py View 1 2 3 4 5 6 7 2 chunks +19 lines, -1 line 0 comments Download
juju/unit/workflow.py View 1 2 3 4 5 6 7 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 15
bcsaller
Please take a look.
12 years, 1 month ago (2012-03-03 02:36:14 UTC) #1
hazmat
lot of moving bits here, looks good for the most part. https://codereview.appspot.com/5732048/diff/1/juju/lib/pick.py File juju/lib/pick.py (right): ...
12 years, 1 month ago (2012-03-16 02:05:37 UTC) #2
bcsaller
Thanks for the review https://codereview.appspot.com/5732048/diff/1/juju/lib/pick.py File juju/lib/pick.py (right): https://codereview.appspot.com/5732048/diff/1/juju/lib/pick.py#newcode5 juju/lib/pick.py:5: """Return all element having key/value ...
12 years, 1 month ago (2012-03-18 07:32:58 UTC) #3
bcsaller
Please take a look.
12 years, 1 month ago (2012-03-18 07:36:09 UTC) #4
bcsaller
Please take a look.
12 years, 1 month ago (2012-03-18 23:44:09 UTC) #5
bcsaller
Please take a look.
12 years, 1 month ago (2012-03-21 23:35:05 UTC) #6
hazmat
So it still feels like there's significant testing missing here, lots of relation usage that ...
12 years, 1 month ago (2012-03-22 13:23:12 UTC) #7
bcsaller
Please take a look.
12 years, 1 month ago (2012-03-27 08:34:33 UTC) #8
bcsaller
https://codereview.appspot.com/5732048/diff/13001/juju/state/relation.py File juju/state/relation.py (left): https://codereview.appspot.com/5732048/diff/13001/juju/state/relation.py#oldcode649 juju/state/relation.py:649: On 2012/03/22 13:23:13, hazmat wrote: > This has no ...
12 years, 1 month ago (2012-03-27 09:34:00 UTC) #9
bcsaller
Please take a look.
12 years, 1 month ago (2012-03-27 09:34:47 UTC) #10
hazmat
This branch seems to include a diffs for branches already merged to trunk. Please merge ...
12 years, 1 month ago (2012-03-27 12:38:33 UTC) #11
bcsaller
Please take a look.
12 years, 1 month ago (2012-03-27 16:11:37 UTC) #12
hazmat
On 2012/03/27 16:11:37, bcsaller wrote: > Please take a look. There looks like some sort ...
12 years, 1 month ago (2012-03-27 22:51:30 UTC) #13
hazmat
LGTM, the problems with the trunk merge need to be resolved though, there is at ...
12 years, 1 month ago (2012-03-28 14:17:02 UTC) #14
bcsaller
12 years, 1 month ago (2012-03-29 08:02:47 UTC) #15
Made changes and attempted to clean up merge issues. As we talked about I am
pushing this again.

https://codereview.appspot.com/5732048/diff/26001/juju/lib/testing.py
File juju/lib/testing.py (right):

https://codereview.appspot.com/5732048/diff/26001/juju/lib/testing.py#newcode161
juju/lib/testing.py:161: def get_debug_client(self):
On 2012/03/28 14:17:03, hazmat wrote:
> should get yanked.

Done, also changed the decoder not to check for {}

https://codereview.appspot.com/5732048/diff/26001/juju/state/errors.py
File juju/state/errors.py (right):

https://codereview.appspot.com/5732048/diff/26001/juju/state/errors.py#newcod...
juju/state/errors.py:137: return ("Unable to assign %s to machine." %
self.unit_name)
On 2012/03/28 14:17:03, hazmat wrote:
> s/assign/assign subordinate

Done.

https://codereview.appspot.com/5732048/diff/26001/juju/state/relation.py
File juju/state/relation.py (right):

https://codereview.appspot.com/5732048/diff/26001/juju/state/relation.py#newc...
juju/state/relation.py:129: "role": endpoint.relation_role})
On 2012/03/28 14:17:03, hazmat wrote:
> the node data should be the same regardless of rel ctx

I could find nothing that used node_data, I've removed it, its in the topology
and I believe usage has switched to there. All tests pass w/o it.

https://codereview.appspot.com/5732048/diff/26001/juju/state/tests/test_topol...
File juju/state/tests/test_topology.py (right):

https://codereview.appspot.com/5732048/diff/26001/juju/state/tests/test_topol...
juju/state/tests/test_topology.py:224: 
On 2012/03/28 14:17:03, hazmat wrote:
> not assuming the implementation, there should be a test for removing a unit
with
> a subordinate rel.

Added tests around remove_principal_service, remove_subordinate_service,
remove_principal_service_unit, remove_subordinate_service_unit

https://codereview.appspot.com/5732048/diff/26001/juju/unit/tests/test_workfl...
File juju/unit/tests/test_workflow.py (right):

https://codereview.appspot.com/5732048/diff/26001/juju/unit/tests/test_workfl...
juju/unit/tests/test_workflow.py:675: relation_state = yield
self.workflow.get_relation_info()
On 2012/03/28 14:17:03, hazmat wrote:
> the yields are unesc now.

Done.

https://codereview.appspot.com/5732048/diff/26001/juju/unit/workflow.py
File juju/unit/workflow.py (right):

https://codereview.appspot.com/5732048/diff/26001/juju/unit/workflow.py#newco...
juju/unit/workflow.py:507: """Return relation states for persistence."""
On 2012/03/28 14:17:03, hazmat wrote:
> s/states/info

Done.
Sign in to reply to this message.

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