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

Issue 7598043: Annotation documents and Environment Entity

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

Description

Annotation documents and Environment Entity Annotations were moved to separate documents in order to prevent the act of setting an annotation from affecting watchers on the entities. Annotations are stored, one document per entity, in a separate collection which are removed when the entities are removed. In addition, an environment-level Entity was created in order to allow storing annotations on the environment, and potentially for expansion in the future. https://code.launchpad.net/~frankban/juju-core/ann-doc/+merge/152280 Requires: https://code.launchpad.net/~frankban/juju-core/bug-1147138-annotations-api/+merge/152037 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 2

Patch Set 2 : Annotation documents and Environment Entity #

Patch Set 3 : Annotation documents and Environment Entity #

Patch Set 4 : Annotation documents and Environment Entity #

Total comments: 15

Patch Set 5 : Annotation documents and Environment Entity #

Total comments: 5

Patch Set 6 : Annotation documents and Environment Entity #

Patch Set 7 : Annotation documents and Environment Entity #

Total comments: 16

Patch Set 8 : Annotation documents and Environment Entity #

Total comments: 14

Patch Set 9 : Annotation documents and Environment Entity #

Total comments: 3

Patch Set 10 : Annotation documents and Environment Entity #

Unified diffs Side-by-side diffs Delta from patch set Stats (+434 lines, -189 lines) Patch
A [revision details] View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M state/annotator.go View 1 2 3 4 5 6 7 8 1 chunk +79 lines, -26 lines 0 comments Download
M state/annotator_test.go View 1 2 3 4 5 3 chunks +9 lines, -15 lines 0 comments Download
M state/api/apiclient.go View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M state/apiserver/api_test.go View 1 2 3 4 5 6 7 8 9 7 chunks +28 lines, -15 lines 0 comments Download
M state/apiserver/apiserver.go View 1 2 3 4 5 6 7 8 9 10 chunks +28 lines, -23 lines 0 comments Download
M state/conn_test.go View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -6 lines 0 comments Download
A state/environ.go View 1 2 3 4 5 6 7 8 1 chunk +38 lines, -0 lines 0 comments Download
A state/environ_test.go View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
M state/machine.go View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -13 lines 0 comments Download
M state/machine_test.go View 1 2 3 4 5 6 7 8 2 chunks +14 lines, -2 lines 0 comments Download
M state/open.go View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M state/service.go View 1 2 3 4 5 6 7 8 9 5 chunks +9 lines, -27 lines 0 comments Download
M state/service_test.go View 1 2 3 4 5 6 7 8 9 1 chunk +11 lines, -1 line 0 comments Download
M state/state.go View 1 2 3 4 5 6 7 8 9 3 chunks +51 lines, -10 lines 0 comments Download
M state/state_test.go View 1 2 3 4 5 6 7 2 chunks +95 lines, -23 lines 0 comments Download
M state/unit.go View 1 2 3 4 5 6 7 8 9 3 chunks +6 lines, -13 lines 0 comments Download
M state/unit_test.go View 1 2 3 4 5 6 7 8 2 chunks +14 lines, -2 lines 0 comments Download
M state/user.go View 1 2 3 4 5 1 chunk +0 lines, -12 lines 0 comments Download
M state/user_test.go View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 30
frankban
Please take a look.
12 years, 2 months ago (2013-03-07 21:18:09 UTC) #1
matthew.scott
Note that this diff contains all of the API changes as well, not just the ...
12 years, 2 months ago (2013-03-07 21:21:30 UTC) #2
dimitern
LGTM, but I have one question. https://codereview.appspot.com/7598043/diff/1/state/annotator.go File state/annotator.go (right): https://codereview.appspot.com/7598043/diff/1/state/annotator.go#newcode90 state/annotator.go:90: func AnnotationRemoveOps(st *State, ...
12 years, 2 months ago (2013-03-07 21:44:52 UTC) #3
matthew.scott
Thanks for the review. https://codereview.appspot.com/7598043/diff/1/state/annotator.go File state/annotator.go (right): https://codereview.appspot.com/7598043/diff/1/state/annotator.go#newcode90 state/annotator.go:90: func AnnotationRemoveOps(st *State, id string) ...
12 years, 2 months ago (2013-03-07 21:49:45 UTC) #4
frankban
Please take a look.
12 years, 2 months ago (2013-03-07 21:51:14 UTC) #5
frankban
Please take a look.
12 years, 2 months ago (2013-03-07 22:15:57 UTC) #6
frankban
Please take a look.
12 years, 2 months ago (2013-03-08 22:04:08 UTC) #7
fwereade
Sorry, but NOT LGTM until someone can explain what on earth has happened to the ...
12 years, 2 months ago (2013-03-09 15:13:36 UTC) #8
fwereade
On 2013/03/09 15:13:36, fwereade wrote: > At this point, it's completely incoherent. At an *absolute* ...
12 years, 2 months ago (2013-03-09 15:19:31 UTC) #9
frankban
On 2013/03/09 15:13:36, fwereade wrote: > Sorry, but NOT LGTM until someone can explain what ...
12 years, 2 months ago (2013-03-11 16:02:26 UTC) #10
frankban
Please take a look.
12 years, 2 months ago (2013-03-11 16:04:22 UTC) #11
fwereade
On 2013/03/11 16:02:26, frankban wrote: > We extended the concept of an entity as suggested. ...
12 years, 2 months ago (2013-03-13 10:38:51 UTC) #12
fwereade
Couple more notes https://codereview.appspot.com/7598043/diff/31001/state/annotator.go File state/annotator.go (right): https://codereview.appspot.com/7598043/diff/31001/state/annotator.go#newcode90 state/annotator.go:90: // Returning an empty string if ...
12 years, 2 months ago (2013-03-13 10:41:42 UTC) #13
rog
On 2013/03/13 10:38:51, fwereade wrote: > On 2013/03/11 16:02:26, frankban wrote: > > We extended ...
12 years, 2 months ago (2013-03-13 11:02:58 UTC) #14
fwereade
On 2013/03/13 11:02:58, rog wrote: > I thought we'd worked out that EntityName was OK ...
12 years, 2 months ago (2013-03-13 11:26:11 UTC) #15
frankban
On 2013/03/13 11:26:11, fwereade wrote: > On 2013/03/13 11:02:58, rog wrote: > > I thought ...
12 years, 2 months ago (2013-03-13 12:20:37 UTC) #16
rog
On 13 March 2013 11:26, <fwereade@gmail.com> wrote: > On 2013/03/13 11:02:58, rog wrote: >> >> ...
12 years, 2 months ago (2013-03-13 12:43:05 UTC) #17
rog
On 2013/03/09 15:13:36, fwereade wrote: > Sorry, but NOT LGTM until someone can explain what ...
12 years, 2 months ago (2013-03-13 12:45:18 UTC) #18
fwereade
On 2013/03/13 12:45:18, rog wrote: > Let's chat about this. Chat was had a couple ...
12 years, 2 months ago (2013-03-15 14:55:39 UTC) #19
frankban
Please take a look.
12 years, 2 months ago (2013-03-18 17:31:11 UTC) #20
frankban
The branch was changed as suggested in this MP discussion. Filed bugs https://bugs.launchpad.net/juju-core/+bug/1156714 (fix race ...
12 years, 2 months ago (2013-03-18 17:38:44 UTC) #21
frankban
Please take a look.
12 years, 2 months ago (2013-03-18 17:40:52 UTC) #22
dimitern
Much better, thanks! LGTM modulo some trivials below. https://codereview.appspot.com/7598043/diff/39004/state/annotator.go File state/annotator.go (right): https://codereview.appspot.com/7598043/diff/39004/state/annotator.go#newcode100 state/annotator.go:100: // ...
12 years, 2 months ago (2013-03-19 09:06:12 UTC) #23
frankban
Please take a look. https://codereview.appspot.com/7598043/diff/39004/state/annotator.go File state/annotator.go (right): https://codereview.appspot.com/7598043/diff/39004/state/annotator.go#newcode100 state/annotator.go:100: // annotationRemoveOps returns an operation ...
12 years, 2 months ago (2013-03-19 10:17:57 UTC) #24
rog
This is looking great, with a few trivials, and one thing that needs fixing. LGTM ...
12 years, 2 months ago (2013-03-19 18:08:38 UTC) #25
frankban
Please take a look. https://codereview.appspot.com/7598043/diff/80001/state/annotator.go File state/annotator.go (right): https://codereview.appspot.com/7598043/diff/80001/state/annotator.go#newcode20 state/annotator.go:20: // annotator stores information required ...
12 years, 2 months ago (2013-03-20 11:17:31 UTC) #26
fwereade
LGTM, thank you for bearing with me on this. https://codereview.appspot.com/7598043/diff/88001/state/annotator.go File state/annotator.go (right): https://codereview.appspot.com/7598043/diff/88001/state/annotator.go#newcode71 state/annotator.go:71: ...
12 years, 2 months ago (2013-03-20 12:58:49 UTC) #27
frankban
On 2013/03/20 12:58:49, fwereade wrote: > LGTM, thank you for bearing with me on this. ...
12 years, 2 months ago (2013-03-20 13:35:13 UTC) #28
rog
LGTM i'm glad i noticed the below - it needs fixing, but not in this ...
12 years, 2 months ago (2013-03-20 15:54:16 UTC) #29
frankban
12 years, 2 months ago (2013-03-20 16:17:03 UTC) #30
*** Submitted:

Annotation documents and Environment Entity

Annotations were moved to separate documents in order to prevent the act of
setting an annotation from affecting watchers on the entities.  Annotations are
stored, one document per entity, in a separate collection which are removed when
the entities are removed.  In addition, an environment-level Entity was created
in order to allow storing annotations on the environment, and potentially for
expansion in the future.

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

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