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

Issue 5909056: Implement child relation hook context with lookup by relation id

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

Description

https://code.launchpad.net/~jimbaker/juju/relation-hook-context/+merge/99149 Requires: https://code.launchpad.net/~jimbaker/juju/relation-id/+merge/99148 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 9

Patch Set 2 : - #

Total comments: 9

Patch Set 3 : - #

Patch Set 4 : Implement child relation hook context with lookup by relation id #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+629 lines, -96 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M juju/hooks/invoker.py View 1 2 6 chunks +67 lines, -8 lines 1 comment Download
M juju/hooks/scheduler.py View 1 1 chunk +1 line, -1 line 0 comments Download
M juju/hooks/tests/test_invoker.py View 1 2 3 35 chunks +217 lines, -44 lines 0 comments Download
M juju/state/errors.py View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
M juju/state/hook.py View 1 2 9 chunks +117 lines, -34 lines 0 comments Download
M juju/state/relation.py View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M juju/state/tests/test_errors.py View 1 2 2 chunks +9 lines, -1 line 0 comments Download
M juju/state/tests/test_hook.py View 1 2 5 chunks +174 lines, -5 lines 0 comments Download
M juju/state/tests/test_relation.py View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download
M juju/state/tests/test_topology.py View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M juju/state/topology.py View 1 2 1 chunk +1 line, -1 line 0 comments Download
M juju/unit/lifecycle.py View 1 1 chunk +1 line, -0 lines 0 comments Download
M juju/unit/tests/test_lifecycle.py View 1 2 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 9
jimbaker
Please take a look.
12 years, 1 month ago (2012-03-26 01:49:32 UTC) #1
hazmat
mostly the concern here is how this is trying to achieve a consistent state. https://codereview.appspot.com/5909056/diff/1/juju/hooks/invoker.py ...
12 years, 1 month ago (2012-03-27 22:27:51 UTC) #2
jimbaker
Please take a look.
12 years, 1 month ago (2012-03-30 05:30:27 UTC) #3
jimbaker
Please take a look at the latest proposal https://codereview.appspot.com/5909056/diff/1/juju/hooks/invoker.py File juju/hooks/invoker.py (right): https://codereview.appspot.com/5909056/diff/1/juju/hooks/invoker.py#newcode129 juju/hooks/invoker.py:129: self._relation_contexts_flush_order ...
12 years, 1 month ago (2012-03-30 06:10:57 UTC) #4
hazmat
lgtm. please add a bug for the inconsistent memberships across relations within a hook. also ...
12 years ago (2012-04-02 15:16:37 UTC) #5
jimbaker
Please take a look. https://codereview.appspot.com/5909056/diff/6001/juju/state/tests/test_hook.py File juju/state/tests/test_hook.py (right): https://codereview.appspot.com/5909056/diff/6001/juju/state/tests/test_hook.py#newcode452 juju/state/tests/test_hook.py:452: ValueError) Changed to InvalidRelationIdentity.
12 years ago (2012-04-04 00:58:14 UTC) #6
jimbaker
This also addresses the following concerns: Relation members will now be empty if the relation ...
12 years ago (2012-04-04 01:04:56 UTC) #7
jimbaker
Please take a look.
12 years ago (2012-04-04 01:17:10 UTC) #8
hazmat
12 years ago (2012-04-04 01:32:03 UTC) #9
looks good, nice work. one minor discussed on irc.

https://codereview.appspot.com/5909056/diff/8212/juju/hooks/invoker.py
File juju/hooks/invoker.py (right):

https://codereview.appspot.com/5909056/diff/8212/juju/hooks/invoker.py#newcod...
juju/hooks/invoker.py:308: if context is self._context:
it feels like we should always have rel id reported on change instead of
omitting it
Sign in to reply to this message.

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