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

Issue 5946047: Documentation fixes

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

Description

Documentation fixes * Spec has been renamed and updated to match current agreed behaviour * Implementation notes from the pas-start-machine-constraints branch have been removed due to complete irrelevance. * Command documentation has been tidied up and fixed. https://code.launchpad.net/~fwereade/juju/constraints-doc-updates/+merge/99912 Requires: https://code.launchpad.net/~fwereade/juju/warn-ignored-constraints/+merge/99861 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 3

Patch Set 2 : Documentation fixes #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+1993 lines, -488 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M docs/source/drafts/constraints.rst View 1 3 chunks +108 lines, -138 lines 10 comments Download
D docs/source/internals/constraints-notes.rst View 1 chunk +0 lines, -78 lines 0 comments Download
juju/charm/tests/repository/series/funkyblog/config.yaml View 1 1 chunk +0 lines, -3 lines 0 comments Download
D juju/charm/tests/repository/series/funkyblog/config.yaml View 1 1 chunk +3 lines, -0 lines 0 comments Download
juju/charm/tests/repository/series/funkyblog/metadata.yaml View 1 1 chunk +17 lines, -0 lines 0 comments Download
juju/charm/tests/repository/series/funkyblog/metadata.yaml View 1 1 chunk +0 lines, -17 lines 0 comments Download
juju/charm/tests/repository/series/funkyblog/revision View 1 1 chunk +1 line, -0 lines 0 comments Download
juju/charm/tests/repository/series/funkyblog/revision View 1 1 chunk +0 lines, -1 line 0 comments Download
juju/control/add_unit.py View 1 2 chunks +2 lines, -2 lines 0 comments Download
juju/control/constraints_get.py View 1 3 chunks +5 lines, -3 lines 0 comments Download
M juju/control/constraints_set.py View 1 3 chunks +9 lines, -7 lines 0 comments Download
juju/control/deploy.py View 1 3 chunks +4 lines, -8 lines 0 comments Download
juju/control/terminate_machine.py View 1 2 chunks +2 lines, -0 lines 0 comments Download
juju/control/tests/test_add_unit.py View 1 2 chunks +7 lines, -0 lines 0 comments Download
juju/control/tests/test_constraints_set.py View 1 1 chunk +1 line, -0 lines 0 comments Download
juju/control/tests/test_terminate_machine.py View 1 2 chunks +9 lines, -0 lines 0 comments Download
juju/control/utils.py View 1 2 chunks +21 lines, -0 lines 0 comments Download
juju/hooks/commands.py View 1 2 chunks +2 lines, -2 lines 0 comments Download
juju/hooks/tests/test_invoker.py View 1 3 chunks +99 lines, -1 line 0 comments Download
juju/lib/pick.py View 1 1 chunk +49 lines, -0 lines 0 comments Download
juju/lib/testing.py View 1 2 chunks +71 lines, -0 lines 0 comments Download
juju/lib/tests/test_pick.py View 1 1 chunk +59 lines, -0 lines 0 comments Download
juju/state/charm.py View 1 1 chunk +4 lines, -0 lines 0 comments Download
juju/state/endpoint.py View 1 2 chunks +8 lines, -2 lines 0 comments Download
juju/state/errors.py View 1 2 chunks +57 lines, -0 lines 0 comments Download
juju/state/hook.py View 1 4 chunks +39 lines, -8 lines 0 comments Download
juju/state/relation.py View 1 18 chunks +200 lines, -77 lines 0 comments Download
juju/state/service.py View 1 10 chunks +89 lines, -10 lines 0 comments Download
juju/state/tests/common.py View 1 1 chunk +1 line, -1 line 0 comments Download
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 3 chunks +22 lines, -2 lines 0 comments Download
juju/state/tests/test_hook.py View 1 2 chunks +89 lines, -1 line 0 comments Download
juju/state/tests/test_relation.py View 1 18 chunks +280 lines, -11 lines 0 comments Download
juju/state/tests/test_service.py View 1 16 chunks +150 lines, -18 lines 0 comments Download
juju/state/tests/test_topology.py View 1 8 chunks +255 lines, -7 lines 0 comments Download
juju/state/topology.py View 1 21 chunks +262 lines, -83 lines 0 comments Download
juju/unit/lifecycle.py View 1 4 chunks +11 lines, -7 lines 0 comments Download
juju/unit/tests/test_workflow.py View 1 2 chunks +19 lines, -1 line 0 comments Download
juju/unit/workflow.py View 1 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 6
fwereade
Please take a look.
12 years, 1 month ago (2012-03-29 11:31:31 UTC) #1
hazmat
needs some additional context on who this documentation is intended for devs or users. https://codereview.appspot.com/5946047/diff/1/docs/source/drafts/constraints.rst ...
12 years, 1 month ago (2012-03-29 20:04:43 UTC) #2
fwereade
I've rewritten it to be more user-focused (which included dropping the possible-enhancements section). https://codereview.appspot.com/5946047/diff/1/docs/source/drafts/constraints.rst File ...
12 years, 1 month ago (2012-03-30 11:25:08 UTC) #3
fwereade
Lbox has its knickers in a twist about some checksum mismatch; proposing again direct into ...
12 years, 1 month ago (2012-03-30 11:48:59 UTC) #4
fwereade
On 2012/03/30 11:48:59, fwereade wrote: > Lbox has its knickers in a twist about some ...
12 years, 1 month ago (2012-03-30 12:20:01 UTC) #5
hazmat
12 years, 1 month ago (2012-03-30 16:29:56 UTC) #6
there's some diff oddities against trunk, but this LGTM with some minors from
below.

https://codereview.appspot.com/5946047/diff/4001/docs/source/drafts/constrain...
File docs/source/drafts/constraints.rst (left):

https://codereview.appspot.com/5946047/diff/4001/docs/source/drafts/constrain...
docs/source/drafts/constraints.rst:10: story, we consider two possible cases:
s/we/there are two use cases to consider

https://codereview.appspot.com/5946047/diff/4001/docs/source/drafts/constrain...
docs/source/drafts/constraints.rst:24: We introduce "machine constraints", which
are used to encode an administrator's
s/We/Juju allows for these via

https://codereview.appspot.com/5946047/diff/4001/docs/source/drafts/constrain...
docs/source/drafts/constraints.rst:31: Constraints will be controlled with a new
command, `juju set-constraints`,
s/will/can

https://codereview.appspot.com/5946047/diff/4001/docs/source/drafts/constrain...
File docs/source/drafts/constraints.rst (right):

https://codereview.appspot.com/5946047/diff/4001/docs/source/drafts/constrain...
docs/source/drafts/constraints.rst:40: We also extend the syntax for `juju
deploy`, and `juju bootstrap`, such that
s/We also extend the syntax/Constraint support is enabled in ...

s/such that/via a --constraints parameter

https://codereview.appspot.com/5946047/diff/4001/docs/source/drafts/constrain...
docs/source/drafts/constraints.rst:46: Please note that there are no changes to
the `juju add-unit` command; juju is
s/there are no changes to the/there is no constraints support in the

https://codereview.appspot.com/5946047/diff/4001/docs/source/drafts/constrain...
docs/source/drafts/constraints.rst:56: register `ubuntu-series` and
`provider-type` constraints, to assist with image
Drop everything after the first sentence in this para, its an impl detail to
users.

https://codereview.appspot.com/5946047/diff/4001/docs/source/drafts/constrain...
docs/source/drafts/constraints.rst:79: "ec2-" prefix; we expect to expose
`arch`, `cpu`, `mem` and `instance-type`
please replace all personal pronouns with some appropriate form referencing
'juju' the product.

https://codereview.appspot.com/5946047/diff/4001/docs/source/drafts/constrain...
docs/source/drafts/constraints.rst:85: settings remain as a workaround for this
situation, until we develop a means of
/s until we develop a means of/future releases of juju will incorporate private
cloud ec2 apis to define use these constraints.

https://codereview.appspot.com/5946047/diff/4001/docs/source/drafts/constrain...
docs/source/drafts/constraints.rst:88: checking for existence of an `ec2-uri`
provider setting, which implies use of
i'm wondering if we should add some detection to this to detect amazon.com based
uris, as its perfectly valid to toss an ec2 region uri into this.

https://codereview.appspot.com/5946047/diff/4001/docs/source/drafts/constrain...
docs/source/drafts/constraints.rst:122: cli to inform users of their invalidity;
at the agent level they are simply
correcting my own phrasing here..

s/at the agent level/within the environment
Sign in to reply to this message.

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