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

Issue 6250076: state: Added the method RemoveRelation() to State. (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:
niemeyer, mp+108037
Visibility:
Public.

Description

state: Added the method RemoveRelation() to State. Relation is now an interface defining the single method relationKey() to allow a function signature like today in Python. The implementation is now named relation and can be accessed via type assertion. https://code.launchpad.net/~themue/juju/go-state-remove-relation/+merge/108037 Requires: https://code.launchpad.net/~themue/juju/go-state-add-relation/+merge/106652 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 1

Patch Set 2 : Added the method RemoveRelation() to State. #

Patch Set 3 : Added the method RemoveRelation() to State. #

Patch Set 4 : Added the method RemoveRelation() to State. #

Patch Set 5 : state: Added the method RemoveRelation() to State. #

Total comments: 5

Patch Set 6 : state: Added the method RemoveRelation() to State. #

Patch Set 7 : state: Added the method RemoveRelation() to State. #

Total comments: 1

Patch Set 8 : state: Added the method RemoveRelation() to State. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -4 lines) Patch
A [revision details] View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M state/export_test.go View 1 2 chunks +13 lines, -3 lines 0 comments Download
M state/relation.go View 1 3 1 chunk +5 lines, -0 lines 0 comments Download
M state/state.go View 1 2 3 4 5 6 7 1 chunk +14 lines, -0 lines 0 comments Download
M state/state_test.go View 1 2 3 4 5 6 7 2 chunks +35 lines, -0 lines 0 comments Download
M state/topology.go View 1 2 3 4 5 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 17
TheMue
Please take a look.
11 years, 11 months ago (2012-05-30 18:52:18 UTC) #1
niemeyer
https://codereview.appspot.com/6250076/diff/1/state/relation.go File state/relation.go (right): https://codereview.appspot.com/6250076/diff/1/state/relation.go#newcode52 state/relation.go:52: relationKey() string Why is this being turned into an ...
11 years, 11 months ago (2012-05-30 22:40:33 UTC) #2
TheMue
> I've read the description of the CL, but it still makes no sense to ...
11 years, 11 months ago (2012-05-31 09:26:30 UTC) #3
niemeyer
> Any other solution idea is welcome. Due to the simple logic it can also ...
11 years, 11 months ago (2012-05-31 10:22:16 UTC) #4
niemeyer
On 2012/05/31 10:22:16, niemeyer wrote: > > Any other solution idea is welcome. Due to ...
11 years, 11 months ago (2012-05-31 10:23:15 UTC) #5
TheMue
Please take a look.
11 years, 11 months ago (2012-06-01 10:34:58 UTC) #6
TheMue
Please take a look.
11 years, 11 months ago (2012-06-01 10:40:20 UTC) #7
TheMue
Please take a look.
11 years, 11 months ago (2012-06-01 11:14:35 UTC) #8
niemeyer
<niemeyer> TheMue: I see you're renaming from zkRelation to topoRelation.. are tests broken at the ...
11 years, 11 months ago (2012-06-01 11:32:17 UTC) #9
TheMue
Please take a look.
11 years, 11 months ago (2012-06-01 14:25:53 UTC) #10
niemeyer
https://codereview.appspot.com/6250076/diff/6032/state/relation.go File state/relation.go (right): https://codereview.appspot.com/6250076/diff/6032/state/relation.go#newcode84 state/relation.go:84: func (r *ServiceRelation) Relation() *Relation { This needs a ...
11 years, 10 months ago (2012-06-05 20:35:40 UTC) #11
niemeyer
By the way, as a suggestion for testing ServiceRelation.Relation, just a simple HasRelation check with ...
11 years, 10 months ago (2012-06-05 20:54:27 UTC) #12
TheMue
Please take a look. https://codereview.appspot.com/6250076/diff/6032/state/relation.go File state/relation.go (right): https://codereview.appspot.com/6250076/diff/6032/state/relation.go#newcode84 state/relation.go:84: func (r *ServiceRelation) Relation() *Relation ...
11 years, 10 months ago (2012-06-06 12:12:04 UTC) #13
niemeyer
Unfortunately the CL is dirty again with unrelated changes. Please let me know once it's ...
11 years, 10 months ago (2012-06-06 12:32:56 UTC) #14
TheMue
Please take a look.
11 years, 10 months ago (2012-06-06 12:55:48 UTC) #15
niemeyer
LGTM, thanks. Just a trivial before submitting: https://codereview.appspot.com/6250076/diff/17003/state/state.go File state/state.go (right): https://codereview.appspot.com/6250076/diff/17003/state/state.go#newcode377 state/state.go:377: // TODO: ...
11 years, 10 months ago (2012-06-06 13:32:10 UTC) #16
TheMue
11 years, 10 months ago (2012-06-06 13:44:16 UTC) #17
*** Submitted:

state: Added the method RemoveRelation() to State.

Relation is now an interface defining the single
method relationKey() to allow a function signature
like today in Python. The implementation is now
named relation and can be accessed via type
assertion.

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

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