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

Issue 6351123: consistency of usage of state.Relations

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

Description

consistency of usage of state.Relations ie: (*State) AddRelation(...state.RelationEndpoint) (*Relation, error) (*State) Relation(...state.RelationEndpoint) (*Relation, error) (*State) RemoveRelation(*Relation) error ...and, also, RemoveService now: * removes relations * checks errors https://code.launchpad.net/~fwereade/juju-core/state-relation-consistency/+merge/116240 Requires: https://code.launchpad.net/~fwereade/juju-core/relation-unit-methods/+merge/115924 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 6

Patch Set 2 : consistency of usage of state.Relations #

Total comments: 2

Patch Set 3 : consistency of usage of state.Relations #

Patch Set 4 : consistency of usage of state.Relations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -65 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/deploy.go View 1 1 chunk +1 line, -1 line 0 comments Download
M state/relation_test.go View 1 2 8 chunks +44 lines, -41 lines 0 comments Download
M state/service.go View 1 1 chunk +3 lines, -0 lines 0 comments Download
M state/service_test.go View 1 2 chunks +4 lines, -4 lines 0 comments Download
M state/state.go View 1 2 4 chunks +54 lines, -16 lines 0 comments Download
M state/state_test.go View 1 1 chunk +1 line, -1 line 0 comments Download
M state/topology.go View 1 2 chunks +7 lines, -1 line 0 comments Download
M state/topology_test.go View 1 3 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 6
fwereade
Please take a look.
11 years, 9 months ago (2012-07-23 10:38:55 UTC) #1
niemeyer
Nice stuff. Just needs some trivials sorted: https://codereview.appspot.com/6351123/diff/1/state/service_test.go File state/service_test.go (right): https://codereview.appspot.com/6351123/diff/1/state/service_test.go#newcode430 state/service_test.go:430: rel1, err ...
11 years, 9 months ago (2012-07-23 10:58:45 UTC) #2
fwereade
Please take a look. https://codereview.appspot.com/6351123/diff/1/state/service_test.go File state/service_test.go (right): https://codereview.appspot.com/6351123/diff/1/state/service_test.go#newcode430 state/service_test.go:430: rel1, err := s.State.AddRelation(mysqlep, wp1ep) ...
11 years, 9 months ago (2012-07-23 14:18:03 UTC) #3
niemeyer
https://codereview.appspot.com/6351123/diff/6001/state/state.go File state/state.go (right): https://codereview.appspot.com/6351123/diff/6001/state/state.go#newcode416 state/state.go:416: return stateChanged It'd be nicer to return something like ...
11 years, 9 months ago (2012-07-23 17:16:28 UTC) #4
fwereade
Please take a look. https://codereview.appspot.com/6351123/diff/6001/state/state.go File state/state.go (right): https://codereview.appspot.com/6351123/diff/6001/state/state.go#newcode416 state/state.go:416: return stateChanged On 2012/07/23 17:16:28, ...
11 years, 9 months ago (2012-07-23 18:36:08 UTC) #5
fwereade
11 years, 9 months ago (2012-07-23 18:38:59 UTC) #6
*** Submitted:

consistency of usage of state.Relations

ie:

(*State) AddRelation(...state.RelationEndpoint) (*Relation, error)
(*State) Relation(...state.RelationEndpoint) (*Relation, error)
(*State) RemoveRelation(*Relation) error

...and, also, RemoveService now:

* removes relations
* checks errors

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

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