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

Issue 13238046: api(server)/uniter: RelationById API call (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 8 months ago by dimitern
Modified:
10 years, 8 months ago
Reviewers:
mp+184532, rog
Visibility:
Public.

Description

api(server)/uniter: RelationById API call This is needed by the uniter in a couple of places where relations are retrieved from state by id, rather than by key. Having this will save some unnecessary refactoring of the uniter code to use tags always. https://code.launchpad.net/~dimitern/juju-core/127-api-uniter-relationbyid/+merge/184532 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 8

Patch Set 2 : api(server)/uniter: RelationById API call #

Patch Set 3 : api(server)/uniter: RelationById API call #

Patch Set 4 : api(server)/uniter: RelationById API call #

Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -11 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M state/api/params/internal.go View 1 chunk +5 lines, -0 lines 0 comments Download
M state/api/uniter/relation_test.go View 1 chunk +16 lines, -0 lines 0 comments Download
M state/api/uniter/uniter.go View 1 2 chunks +32 lines, -0 lines 0 comments Download
M state/apiserver/uniter/uniter.go View 1 2 3 3 chunks +53 lines, -5 lines 0 comments Download
M state/apiserver/uniter/uniter_test.go View 6 chunks +38 lines, -6 lines 0 comments Download

Messages

Total messages: 7
dimitern
Please take a look.
10 years, 8 months ago (2013-09-09 10:38:59 UTC) #1
rog
Looks good with one minor query below. https://codereview.appspot.com/13238046/diff/1/state/api/uniter/uniter.go File state/api/uniter/uniter.go (right): https://codereview.appspot.com/13238046/diff/1/state/api/uniter/uniter.go#newcode140 state/api/uniter/uniter.go:140: err := ...
10 years, 8 months ago (2013-09-09 11:47:04 UTC) #2
dimitern
Please take a look. https://codereview.appspot.com/13238046/diff/1/state/api/uniter/uniter.go File state/api/uniter/uniter.go (right): https://codereview.appspot.com/13238046/diff/1/state/api/uniter/uniter.go#newcode140 state/api/uniter/uniter.go:140: err := st.caller.Call("Uniter", "", "RelationById", ...
10 years, 8 months ago (2013-09-09 12:17:04 UTC) #3
rog
Thanks for the clarification. I think this could be a little clearer. Perhaps a better ...
10 years, 8 months ago (2013-09-09 12:28:05 UTC) #4
dimitern
Please take a look. https://codereview.appspot.com/13238046/diff/1/state/apiserver/uniter/uniter.go File state/apiserver/uniter/uniter.go (right): https://codereview.appspot.com/13238046/diff/1/state/apiserver/uniter/uniter.go#newcode672 state/apiserver/uniter/uniter.go:672: // Because we're not doing ...
10 years, 8 months ago (2013-09-09 12:43:18 UTC) #5
rog
LGTM with the "most likely" qualifier removed, as discussed.
10 years, 8 months ago (2013-09-09 12:56:11 UTC) #6
dimitern
10 years, 8 months ago (2013-09-09 12:59:04 UTC) #7
Please take a look.
Sign in to reply to this message.

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