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

Issue 8055044: state: embed charm.Relation in Endpoint.

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 1 month ago by rog
Modified:
11 years, 1 month ago
Reviewers:
dimitern, mp+155801, fwereade
Visibility:
Public.

Description

state: embed charm.Relation in Endpoint. We add the relation name and role to charm.Relation. This makes it reasonable to use Relation in the API interface for endpoints. https://code.launchpad.net/~rogpeppe/juju-core/259-charm-relation-name/+merge/155801 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : state: embed charm.Relation in Endpoint. #

Total comments: 7

Patch Set 3 : state: embed charm.Relation in Endpoint. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+490 lines, -271 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M charm/meta.go View 1 2 6 chunks +48 lines, -21 lines 0 comments Download
M charm/meta_test.go View 1 2 6 chunks +119 lines, -26 lines 0 comments Download
M cmd/juju/deploy_test.go View 1 chunk +3 lines, -3 lines 0 comments Download
M state/endpoint.go View 4 chunks +29 lines, -41 lines 0 comments Download
M state/endpoint_test.go View 3 chunks +82 lines, -42 lines 0 comments Download
M state/relation.go View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M state/relation_internal_test.go View 1 chunk +19 lines, -11 lines 0 comments Download
M state/relation_test.go View 2 chunks +19 lines, -3 lines 0 comments Download
M state/relationunit.go View 3 chunks +3 lines, -3 lines 0 comments Download
M state/service.go View 1 2 2 chunks +11 lines, -12 lines 0 comments Download
M state/service_test.go View 1 2 4 chunks +67 lines, -45 lines 0 comments Download
M state/state.go View 1 2 4 chunks +12 lines, -12 lines 0 comments Download
M state/state_test.go View 3 chunks +69 lines, -45 lines 0 comments Download
M worker/uniter/context.go View 1 chunk +1 line, -1 line 0 comments Download
M worker/uniter/relationer.go View 1 chunk +1 line, -1 line 0 comments Download
M worker/uniter/uniter.go View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4
rog
Please take a look.
11 years, 1 month ago (2013-03-27 17:28:21 UTC) #1
dimitern
Nice and more logical, LGTM. https://codereview.appspot.com/8055044/diff/2001/charm/meta.go File charm/meta.go (right): https://codereview.appspot.com/8055044/diff/2001/charm/meta.go#newcode215 charm/meta.go:215: Name: name, nice! https://codereview.appspot.com/8055044/diff/2001/charm/meta_test.go ...
11 years, 1 month ago (2013-03-27 17:58:02 UTC) #2
fwereade
LGTM modulo remarks below; very nice. Thanks. https://codereview.appspot.com/8055044/diff/2001/charm/meta.go File charm/meta.go (right): https://codereview.appspot.com/8055044/diff/2001/charm/meta.go#newcode26 charm/meta.go:26: // RelationRole ...
11 years, 1 month ago (2013-03-28 09:26:01 UTC) #3
rog
11 years, 1 month ago (2013-03-28 11:56:22 UTC) #4
*** Submitted:

state: embed charm.Relation in Endpoint.

We add the relation name and role to charm.Relation.
This makes it reasonable to use Relation in the API
interface for endpoints.

R=
CC=
https://codereview.appspot.com/8055044

https://codereview.appspot.com/8055044/diff/2001/charm/meta.go
File charm/meta.go (right):

https://codereview.appspot.com/8055044/diff/2001/charm/meta.go#newcode218
charm/meta.go:218: Optional:  relMap["optional"].(bool),
On 2013/03/28 09:26:02, fwereade wrote:
> Not sure what the distinction is between Limit and Optional -- they're equally
> ignored AFAICT, so we should probably include both or neither.

we do include both (see below)
Sign in to reply to this message.

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