Keyboard Shortcuts

File
u :up to issue
m :publish + mail comments
M :edit review message
j / k :jump to file after / before current file
J / K :jump to next file with a comment after / before current file
Side-by-side diff
i :toggle intra-line diffs
e :expand all comments
c :collapse all comments
s :toggle showing all comments
n / p :next / previous diff chunk or comment
N / P :next / previous comment
<Up> / <Down> :next / previous line
<Enter> :respond to / edit current comment
d :mark current comment as done
Issue
u :up to list of issues
m :publish + mail comments
j / k :jump to patch after / before current patch
o / <Enter> :open current patch in side-by-side view
i :open current patch in unified diff view
Issue List
j / k :jump to issue after / before current issue
o / <Enter> :open current issue
# : close issue
Comment/message editing
<Ctrl> + s or <Ctrl> + Enter :save comment
<Esc> :cancel edit
Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(366)
Issues Repositories Search
Open Issues | Closed Issues | All Issues | Sign in with your Google Account to create issues and add comments

Issue 5970068: juju/control should be aware of subordinates

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 9 months ago by bcsaller
Modified:
13 years, 9 months ago
Reviewers:
hazmat, mp+100489
Visibility:
Public.
juju/control should be aware of subordinates Includes support for add-unit, deploy, status, remove-unit https://code.launchpad.net/~bcsaller/juju/subordinate-control-status/+merge/100489 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : juju/control should be aware of subordinates #

Total comments: 7
Created: 13 years, 9 months ago
Download [raw] [tar.bz2]
Unified diffs Side-by-side diffs Delta from patch set Stats (+523 lines, -188 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M juju/control/add_unit.py View 2 chunks +5 lines, -0 lines 0 comments Download
M juju/control/deploy.py View 2 chunks +8 lines, -4 lines 0 comments Download
M juju/control/remove_unit.py View 2 chunks +5 lines, -0 lines 0 comments Download
M juju/control/status.py View 1 7 chunks +337 lines, -152 lines 6 comments Download
M juju/control/tests/test_add_unit.py View 2 chunks +14 lines, -0 lines 0 comments Download
M juju/control/tests/test_deploy.py View 1 chunk +27 lines, -0 lines 0 comments Download
M juju/control/tests/test_remove_unit.py View 1 chunk +12 lines, -0 lines 0 comments Download
M juju/control/tests/test_status.py View 9 chunks +93 lines, -29 lines 1 comment Download
M juju/state/tests/test_charm.py View 2 chunks +19 lines, -3 lines 0 comments Download
M juju/unit/tests/test_lifecycle.py View 1 chunk +1 line, -0 lines 0 comments Download
Total messages: 4
|
bcsaller
Please take a look.
13 years, 9 months ago (2012年04月02日 18:06:11 UTC) #1
Please take a look.
Sign in to reply to this message.
bcsaller
Please take a look.
13 years, 9 months ago (2012年04月02日 22:32:11 UTC) #2
Please take a look.
Sign in to reply to this message.
hazmat
This looks good. The refactoring of status isn't complete though.. it needs some more docs, ...
13 years, 9 months ago (2012年04月03日 16:38:22 UTC) #3
This looks good. The refactoring of status isn't complete though.. it needs some
more docs, this area of the codebase is frequently touched, and it needs more
introduction to what the responsibility of the various methods are, esp. given
their use of shared instance state variables in a functional style.
https://codereview.appspot.com/5970068/diff/2002/juju/control/status.py
File juju/control/status.py (right):
https://codereview.appspot.com/5970068/diff/2002/juju/control/status.py#newco...
juju/control/status.py:136: s = StatusCommand(client, provider, log)
it shouldn't exist if its only purpose is for existing tests.. i'd just update
the tests to the new api.. that's part of the refactoring, else its just dead
code.
https://codereview.appspot.com/5970068/diff/2002/juju/control/status.py#newco...
juju/control/status.py:155: self.service_manager = ServiceStateManager(client)
these where documented in a self referential way post the diff, but saying
'service_name' to 'state' isn't very clear, if its referring to the actual state
object (unlikely), or what structure the dictionary termed state has.
https://codereview.appspot.com/5970068/diff/2002/juju/control/status.py#newco...
juju/control/status.py:252: def _process_units(self, service, relations,
rel_svc_map):
this should have some docs, what are the params
https://codereview.appspot.com/5970068/diff/2002/juju/control/status.py#newco...
juju/control/status.py:271: u = self.unit_data[unit.unit_name] = dict()
this method could use some documentation, what are the params
https://codereview.appspot.com/5970068/diff/2002/juju/control/status.py#newco...
juju/control/status.py:307: relation_data =
self.service_data[service.service_name]["relations"]
please document the return value.
https://codereview.appspot.com/5970068/diff/2002/juju/control/status.py#newco...
juju/control/status.py:339: relation_data =
self.service_data[service.service_name]["relations"]
please document what the method is doing..
ie. inspects all the relations of a service and...?
Sign in to reply to this message.
hazmat
https://codereview.appspot.com/5970068/diff/2002/juju/control/tests/test_status.py File juju/control/tests/test_status.py (right): https://codereview.appspot.com/5970068/diff/2002/juju/control/tests/test_status.py#newcode788 juju/control/tests/test_status.py:788: state = yield self.build_topology() this method is a crutch, ...
13 years, 9 months ago (2012年04月03日 16:42:38 UTC) #4
https://codereview.appspot.com/5970068/diff/2002/juju/control/tests/test_stat...
File juju/control/tests/test_status.py (right):
https://codereview.appspot.com/5970068/diff/2002/juju/control/tests/test_stat...
juju/control/tests/test_status.py:788: state = yield self.build_topology()
this method is a crutch, its creating way more stuff than what is actually
tested for. its better to simplify and model an api for creation of whats
needed, instead of relying on a megamethod to build world every test.
i'd like to see a test here of removing a primary unit with a subordinate
attached, as that broke status on my previous usage of this feature.
Sign in to reply to this message.
|
Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b

AltStyle によって変換されたページ (->オリジナル) /