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

Issue 6131061: Ensure Invoker.start is called from UnitRelationLifecycle usage.

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 12 months ago by jimbaker
Modified:
11 years, 11 months ago
Reviewers:
hazmat, mp+104195
Visibility:
Public.

Description

Ensure Invoker.start is called from UnitRelationLifecycle usage. UnitRelationLifecycle did not properly call Invoker.start (a one-line fix), which prevented relation hook contexts from being cached for the corresponding hook call. Because caching of the hook contexts is logged, this can be verified to ensure this method is properly called for both UnitRelationLifecycle and UnitLifecycle usages. https://code.launchpad.net/~jimbaker/juju/unit-rel-lifecycle-start-invoker/+merge/104195 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Ensure Invoker.start is called from UnitRelationLifecycle usage. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -6 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M juju/hooks/invoker.py View 1 chunk +6 lines, -1 line 0 comments Download
M juju/hooks/tests/test_invoker.py View 1 3 chunks +3 lines, -3 lines 0 comments Download
M juju/unit/lifecycle.py View 1 chunk +1 line, -0 lines 0 comments Download
M juju/unit/tests/test_lifecycle.py View 4 chunks +59 lines, -2 lines 4 comments Download

Messages

Total messages: 5
jimbaker
Please take a look.
11 years, 12 months ago (2012-05-01 01:06:31 UTC) #1
jimbaker
Please take a look.
11 years, 12 months ago (2012-05-01 01:44:13 UTC) #2
hazmat
lgtm https://codereview.appspot.com/6131061/diff/3001/juju/unit/tests/test_lifecycle.py File juju/unit/tests/test_lifecycle.py (right): https://codereview.appspot.com/6131061/diff/3001/juju/unit/tests/test_lifecycle.py#newcode901 juju/unit/tests/test_lifecycle.py:901: for i in xrange(1, 3): don't use xrange, ...
11 years, 11 months ago (2012-05-03 22:34:14 UTC) #3
jimbaker
Thanks, changed the minors and pushed accordingly https://codereview.appspot.com/6131061/diff/3001/juju/unit/tests/test_lifecycle.py File juju/unit/tests/test_lifecycle.py (right): https://codereview.appspot.com/6131061/diff/3001/juju/unit/tests/test_lifecycle.py#newcode901 juju/unit/tests/test_lifecycle.py:901: for i ...
11 years, 11 months ago (2012-05-04 03:48:08 UTC) #4
hazmat
11 years, 11 months ago (2012-05-04 18:22:17 UTC) #5
looks good, pls go ahead w the merge.


On 2012/05/04 03:48:08, jimbaker wrote:
> Thanks, changed the minors and pushed accordingly
> 
>
https://codereview.appspot.com/6131061/diff/3001/juju/unit/tests/test_lifecyc...
> File juju/unit/tests/test_lifecycle.py (right):
> 
>
https://codereview.appspot.com/6131061/diff/3001/juju/unit/tests/test_lifecyc...
> juju/unit/tests/test_lifecycle.py:901: for i in xrange(1, 3):
> Pure habit here, fixed by using range instead
> 
>
https://codereview.appspot.com/6131061/diff/3001/juju/unit/tests/test_lifecyc...
> juju/unit/tests/test_lifecycle.py:1331: for i in xrange(1, 5):
> Ditto fix
Sign in to reply to this message.

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