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

Issue 94540044: Added Actions to charm.

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 11 months ago by Bodie
Modified:
9 years, 11 months ago
Reviewers:
gz, mp+219926, dave, fwereade
Visibility:
Public.

Description

Added Actions to charm. Actions is a type encapsulating a charm's Action definitions and metadata. Actions reads a YAML string conforming to the following spec: actionspecs:   <action name>:     description: <string>     params:       ...   <another action name>:     description: <string>     params:       ... The named Action must contain a "description" field and a "params" field. The "params" field must be conformant to JSON-Schema Draft 4 as defined at http://json-schema.org/draft-04/schema# (see http://json-schema.org/latest/json-schema-core.html). It should be a list of parameters to the Action, such as "outfile", "compression-ratio", etc for a snapshot Action; JSON-Schema properties such as $schema may also be defined. For example: ...     params:       outfile: string       compression-ratio: double       ... After being built, the "params" field is checked for conformity to JSON-Schema. See http://json-schema.org/ for details. If it does not conform to JSON-Schema, the YAML string will be rejected with an error. https://code.launchpad.net/~binary132/juju-core/charm-actions/+merge/219926 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 9

Patch Set 2 : Added Actions to charm. #

Total comments: 17

Patch Set 3 : Added Actions to charm. #

Patch Set 4 : Added Actions to charm. #

Total comments: 16

Patch Set 5 : Added Actions to charm. #

Total comments: 1

Patch Set 6 : Added Actions to charm. #

Total comments: 2

Patch Set 7 : Added Actions to charm. #

Patch Set 8 : Added Actions to charm. #

Patch Set 9 : Added Actions to charm. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+360 lines, -0 lines) Patch
A [revision details] View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
A charm/actions.go View 1 2 3 4 5 6 7 8 1 chunk +60 lines, -0 lines 0 comments Download
A charm/actions_test.go View 1 2 3 4 5 6 7 1 chunk +295 lines, -0 lines 0 comments Download
M dependencies.tsv View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 18
Bodie
Please take a look.
9 years, 11 months ago (2014-05-17 02:57:12 UTC) #1
fwereade
This looks pretty much like what I was after. Just a bunch of trivials, really. ...
9 years, 11 months ago (2014-05-17 15:07:04 UTC) #2
Bodie
Please take a look.
9 years, 11 months ago (2014-05-21 21:09:39 UTC) #3
fwereade
A bunch more comments, but hopefully they're pretty trivial to address. Let me know. https://codereview.appspot.com/94540044/diff/20001/charm/actions.go ...
9 years, 11 months ago (2014-05-21 21:33:51 UTC) #4
dave_cheney.net
https://codereview.appspot.com/94540044/diff/20001/charm/actions.go File charm/actions.go (right): https://codereview.appspot.com/94540044/diff/20001/charm/actions.go#newcode41 charm/actions.go:41: // If there's data but the Actions is still ...
9 years, 11 months ago (2014-05-21 21:42:36 UTC) #5
Bodie
Please take a look.
9 years, 11 months ago (2014-05-22 05:10:50 UTC) #6
fwereade
Just nitpicks in the actual code; a few more things with the tests. Several just ...
9 years, 11 months ago (2014-05-22 08:52:08 UTC) #7
Bodie
Please take a look. https://codereview.appspot.com/94540044/diff/60001/dependencies.tsv File dependencies.tsv (right): https://codereview.appspot.com/94540044/diff/60001/dependencies.tsv#newcode14 dependencies.tsv:14: github.com/xeipuuv/gojsonschema git 8b52be5671082fa71acba81b0e0fd53d0f1821e7 On 2014/05/22 ...
9 years, 11 months ago (2014-05-22 16:54:37 UTC) #8
fwereade
LGTM, modulo gojsonschema uncertainty. Let's talk about that today. https://codereview.appspot.com/94540044/diff/80001/charm/actions_test.go File charm/actions_test.go (right): https://codereview.appspot.com/94540044/diff/80001/charm/actions_test.go#newcode259 charm/actions_test.go:259: ...
9 years, 11 months ago (2014-05-26 13:09:39 UTC) #9
Bodie
On 2014/05/26 13:09:39, fwereade wrote: > LGTM, modulo gojsonschema uncertainty. Let's talk about that today. ...
9 years, 11 months ago (2014-05-26 16:43:04 UTC) #10
Bodie
Please take a look.
9 years, 11 months ago (2014-05-28 19:46:52 UTC) #11
Bodie
On 2014/05/28 19:46:52, Bodie wrote: > Please take a look. Bumping this re. William's request ...
9 years, 11 months ago (2014-05-28 19:56:33 UTC) #12
gz
A couple of things to fix, also you'll need to pull trunk to resolve dependencies.tsv ...
9 years, 11 months ago (2014-05-29 15:16:32 UTC) #13
gz
Small notes, tidying up the tests is optional. https://codereview.appspot.com/94540044/diff/100001/charm/actions.go File charm/actions.go (right): https://codereview.appspot.com/94540044/diff/100001/charm/actions.go#newcode46 charm/actions.go:46: return ...
9 years, 11 months ago (2014-05-29 15:17:05 UTC) #14
Bodie
Please take a look.
9 years, 11 months ago (2014-05-30 05:21:46 UTC) #15
gz
LGTM
9 years, 11 months ago (2014-05-30 14:23:46 UTC) #16
Bodie
Please take a look.
9 years, 11 months ago (2014-05-30 15:21:59 UTC) #17
Bodie
9 years, 11 months ago (2014-05-30 15:37:28 UTC) #18
On 2014/05/30 15:21:59, Bodie wrote:
> Please take a look.

Very minor addition of more informative comments.
Sign in to reply to this message.

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