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

Issue 7526043: Annotations API functionality

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by frankban
Modified:
11 years, 2 months ago
Reviewers:
dimitern, mp+152037, rog
Visibility:
Public.

Description

Annotations API functionality Annotations are now exposed through the API via 'GetAnnotations' and 'SetAnnotation'. These allow a user to set an annotation on an Entity (service, 'unit', 'machine', with environment coming in a future branch), and retrieve all annotations on an entity. Tests were added around the added functionality. Note that now the service is an Entity, as suggested by Roger. https://code.launchpad.net/~frankban/juju-core/bug-1147138-annotations-api/+merge/152037 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Annotations API functionality #

Total comments: 4

Patch Set 3 : Annotations API functionality #

Total comments: 22

Patch Set 4 : Annotations API functionality #

Unified diffs Side-by-side diffs Delta from patch set Stats (+256 lines, -29 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M state/api/apiclient.go View 1 2 3 1 chunk +23 lines, -0 lines 0 comments Download
M state/api/params/params.go View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
M state/apiserver/api_test.go View 1 2 3 5 chunks +123 lines, -4 lines 0 comments Download
M state/apiserver/apiserver.go View 1 2 3 6 chunks +24 lines, -6 lines 0 comments Download
M state/machine_test.go View 1 chunk +1 line, -1 line 0 comments Download
M state/service.go View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download
M state/service_test.go View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M state/state.go View 1 2 3 2 chunks +12 lines, -5 lines 0 comments Download
M state/state_test.go View 1 2 3 4 chunks +17 lines, -11 lines 0 comments Download
M state/unit_test.go View 1 chunk +1 line, -1 line 0 comments Download
M state/user.go View 1 chunk +12 lines, -0 lines 0 comments Download
M state/user_test.go View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7
frankban
Please take a look.
11 years, 2 months ago (2013-03-06 19:12:36 UTC) #1
frankban
Please take a look.
11 years, 2 months ago (2013-03-06 19:43:39 UTC) #2
dimitern
Overall LGTM, just a couple of comments. https://codereview.appspot.com/7526043/diff/2001/state/api/apiclient.go File state/api/apiclient.go (right): https://codereview.appspot.com/7526043/diff/2001/state/api/apiclient.go#newcode127 state/api/apiclient.go:127: args := ...
11 years, 2 months ago (2013-03-07 14:28:00 UTC) #3
frankban
Please take a look. https://codereview.appspot.com/7526043/diff/2001/state/api/apiclient.go File state/api/apiclient.go (right): https://codereview.appspot.com/7526043/diff/2001/state/api/apiclient.go#newcode127 state/api/apiclient.go:127: args := params.GetAnnotations{Id: id} On ...
11 years, 2 months ago (2013-03-07 15:32:20 UTC) #4
rog
LGTM with the below trivial points addressed. really good stuff, thanks! https://codereview.appspot.com/7526043/diff/8001/state/api/apiclient.go File state/api/apiclient.go (right): ...
11 years, 2 months ago (2013-03-08 20:52:37 UTC) #5
frankban
*** Submitted: Annotations API functionality Annotations are now exposed through the API via 'GetAnnotations' and ...
11 years, 2 months ago (2013-03-08 21:37:35 UTC) #6
frankban
11 years, 2 months ago (2013-03-08 22:05:13 UTC) #7
Hi Dimiter and Roger,
thanks for the reviews.
Sign in to reply to this message.

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