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

Issue 7644043: Implement a SetAnnotations API call.

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years ago by frankban
Modified:
12 years ago
Reviewers:
dimitern, mp+152448, dave, fwereade, rog
Visibility:
Public.

Description

Implement a SetAnnotations API call. SetAnnotations now sets multiple annotations on an entity. This is required by the GUI, in order to have one rpc call for an atomic operation involving several annotations. https://code.launchpad.net/~frankban/juju-core/bug-1152652-set-annotations/+merge/152448 Requires: https://code.launchpad.net/~frankban/juju-core/ann-doc/+merge/152280 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Implement a SetAnnotations API call. #

Total comments: 1

Patch Set 3 : Implement a SetAnnotations API call. #

Total comments: 2

Patch Set 4 : Implement a SetAnnotations API call. #

Total comments: 1

Patch Set 5 : Implement a SetAnnotations API call. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -90 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M state/annotator.go View 1 2 3 1 chunk +57 lines, -38 lines 0 comments Download
M state/annotator_test.go View 1 2 2 chunks +27 lines, -13 lines 0 comments Download
M state/api/apiclient.go View 1 2 3 1 chunk +5 lines, -5 lines 0 comments Download
M state/api/params/params.go View 1 2 3 1 chunk +6 lines, -7 lines 0 comments Download
M state/apiserver/api_test.go View 1 2 3 5 chunks +18 lines, -20 lines 0 comments Download
M state/apiserver/apiserver.go View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M state/machine_test.go View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M state/service_test.go View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M state/state.go View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M state/unit_test.go View 1 2 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 15
frankban
Please take a look.
12 years ago (2013-03-08 16:32:04 UTC) #1
matthew.scott
This merge includes the previous API branch in the diff against trunk. The methods that ...
12 years ago (2013-03-08 16:34:12 UTC) #2
frankban
Please take a look.
12 years ago (2013-03-08 18:15:57 UTC) #3
dimitern
LGTM
12 years ago (2013-03-08 18:58:44 UTC) #4
dave_cheney.net
On 2013/03/08 18:58:44, dimitern wrote: > LGTM NOT LGTM. This diff is dirty. Please pull ...
12 years ago (2013-03-08 20:09:18 UTC) #5
fwereade
On 2013/03/08 20:09:18, dfc wrote: > On 2013/03/08 18:58:44, dimitern wrote: > > LGTM > ...
12 years ago (2013-03-09 16:44:32 UTC) #6
fwereade
just a comment, will follow up properly when the diff's clean https://codereview.appspot.com/7644043/diff/4002/state/apiserver/apiserver.go File state/apiserver/apiserver.go (right): ...
12 years ago (2013-03-09 16:54:36 UTC) #7
frankban
We will re-propose a clean branch after landing the prerequisite one. As a note: William ...
12 years ago (2013-03-13 13:21:38 UTC) #8
fwereade
On 2013/03/13 13:21:38, frankban wrote: > We will re-propose a clean branch after landing the ...
12 years ago (2013-03-15 14:54:23 UTC) #9
frankban
Please take a look.
12 years ago (2013-03-20 16:53:17 UTC) #10
frankban
Here is the clean diff for this branch. Switched to setAnnotations also in the mongo ...
12 years ago (2013-03-20 16:56:30 UTC) #11
fwereade
This LGTM for the stated purpose. Hopefully some of the content of https://codereview.appspot.com/7631046/ will assist ...
12 years ago (2013-03-20 17:58:13 UTC) #12
frankban
Please take a look. https://codereview.appspot.com/7644043/diff/20001/state/annotator.go File state/annotator.go (right): https://codereview.appspot.com/7644043/diff/20001/state/annotator.go#newcode89 state/annotator.go:89: if err := a.st.runner.Run(ops, "", ...
12 years ago (2013-03-21 09:37:13 UTC) #13
rog
LGTM, very nice (on the understanding that the transaction retry logic is implemented in a ...
12 years ago (2013-03-21 10:44:11 UTC) #14
frankban
12 years ago (2013-03-21 10:48:58 UTC) #15
*** Submitted:

Implement a SetAnnotations API call.

SetAnnotations now sets multiple annotations
on an entity. This is required by the GUI, in
order to have one rpc call for an atomic operation
involving several annotations.

R=matthew.scott, dimitern, dfc, fwereade, rog
CC=
https://codereview.appspot.com/7644043
Sign in to reply to this message.

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