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

Issue 6268049: state: Changed relation service mapping in topology. (Closed)

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

Description

state: Changed relation service mapping in topology. The first approach mapped roles to service key and relation name opposite to todays Python implementation. This reduces the flexibility for future purposes (e.g. multiple peers). So the mapping has now been changed back from service keys to relation role and name. https://code.launchpad.net/~themue/juju/go-state-topology-service-mapping/+merge/108570 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : state: Changed relation service mapping in topology. #

Total comments: 4

Patch Set 3 : state: Changed relation service mapping in topology. #

Patch Set 4 : state: Changed relation service mapping in topology. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -89 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M state/internal_test.go View 1 2 3 18 chunks +59 lines, -59 lines 0 comments Download
M state/state.go View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M state/topology.go View 1 2 3 7 chunks +38 lines, -27 lines 0 comments Download

Messages

Total messages: 6
TheMue
Please take a look.
11 years, 11 months ago (2012-06-04 14:11:33 UTC) #1
TheMue
Please take a look.
11 years, 11 months ago (2012-06-04 14:59:49 UTC) #2
niemeyer
Very nice. Only a couple of details: https://codereview.appspot.com/6268049/diff/3001/state/topology.go File state/topology.go (right): https://codereview.appspot.com/6268049/diff/3001/state/topology.go#newcode73 state/topology.go:73: RelationRole RelationRole ...
11 years, 11 months ago (2012-06-06 12:08:31 UTC) #3
TheMue
Please take a look. https://codereview.appspot.com/6268049/diff/3001/state/topology.go File state/topology.go (right): https://codereview.appspot.com/6268049/diff/3001/state/topology.go#newcode73 state/topology.go:73: RelationRole RelationRole On 2012/06/06 12:08:31, ...
11 years, 11 months ago (2012-06-06 14:01:21 UTC) #4
niemeyer
Thanks, LGTM.
11 years, 11 months ago (2012-06-06 15:19:27 UTC) #5
TheMue
11 years, 11 months ago (2012-06-06 15:32:24 UTC) #6
*** Submitted:

state: Changed relation service mapping in topology.

The first approach mapped roles to service key and relation
name opposite to todays Python implementation. This reduces
the flexibility for future purposes (e.g. multiple peers).
So the mapping has now been changed back from service keys
to relation role and name.

R=
CC=
https://codereview.appspot.com/6268049
Sign in to reply to this message.

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