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

Issue 7073056: charm: juju-* relation names sometimes allowed

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 3 months ago by fwereade
Modified:
11 years, 3 months ago
Reviewers:
rog, mp+142699, TheMue
Visibility:
Public.

Description

charm: juju-* relation names sometimes allowed Specifically: container-scoped require relations of subordinate charms may use juju-* names for relations; they're disallowed for everything else. https://code.launchpad.net/~fwereade/juju-core/charm-relax-require-namespace/+merge/142699 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 5

Patch Set 2 : charm: juju-* relation names sometimes allowed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -45 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M charm/meta.go View 1 2 chunks +32 lines, -28 lines 0 comments Download
M charm/meta_test.go View 1 chunk +30 lines, -17 lines 0 comments Download

Messages

Total messages: 4
fwereade
Please take a look.
11 years, 3 months ago (2013-01-10 14:22:24 UTC) #1
TheMue
LGTM, only one hint. https://codereview.appspot.com/7073056/diff/1/charm/meta.go File charm/meta.go (right): https://codereview.appspot.com/7073056/diff/1/charm/meta.go#newcode85 charm/meta.go:85: collect := func(src map[string]Relation, isRequire ...
11 years, 3 months ago (2013-01-10 14:34:29 UTC) #2
rog
seems plausible, although i can't say i fully understand the ins and outs of this ...
11 years, 3 months ago (2013-01-10 16:24:43 UTC) #3
fwereade
11 years, 3 months ago (2013-01-10 17:09:28 UTC) #4
*** Submitted:

charm: juju-* relation names sometimes allowed

Specifically: container-scoped require relations of subordinate charms may
use juju-* names for relations; they're disallowed for everything else.

R=TheMue, rog
CC=
https://codereview.appspot.com/7073056

https://codereview.appspot.com/7073056/diff/1/charm/meta.go
File charm/meta.go (right):

https://codereview.appspot.com/7073056/diff/1/charm/meta.go#newcode76
charm/meta.go:76: meta.Subordinate = m["subordinate"].(bool)
On 2013/01/10 16:24:43, rog wrote:
> s/m["subordinate"]/subordinate/

Done.

https://codereview.appspot.com/7073056/diff/1/charm/meta.go#newcode85
charm/meta.go:85: collect := func(src map[string]Relation, isRequire bool) error
{
On 2013/01/10 16:24:43, rog wrote:
> On 2013/01/10 14:34:29, TheMue wrote:
> > Name should be something with check, because you mentioned above that it
> checks,
> > not collects.
> 
> +1

Done.
Sign in to reply to this message.

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