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

Issue 5502043: Initial adding of the state model to the Go port of juju (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 4 months ago by TheMue
Modified:
12 years, 3 months ago
Reviewers:
niemeyer, mp+86373
Visibility:
Public.

Description

As a first step in adding the Go port the state can be opened and first operations ond Service and Unit can be done. Also needed first topology functionality is part of this branch. https://code.launchpad.net/~themue/juju/go-initial-state-adding/+merge/86373 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Changes to the initial adding of state to the Go port. #

Total comments: 7

Patch Set 3 : Simplified the state code. #

Total comments: 71

Patch Set 4 : Adopted last review. #

Patch Set 5 : Changed the state_test to an own package and added methods for Units #

Total comments: 234

Patch Set 6 : Initial adding of the state model to the Go port of juju #

Total comments: 20

Patch Set 7 : Initial adding of the state model to the Go port of juju #

Patch Set 8 : Initial adding of the state model to the Go port of juju #

Unified diffs Side-by-side diffs Delta from patch set Stats (+891 lines, -0 lines) Patch
A state/Makefile View 1 2 3 4 5 6 1 chunk +27 lines, -0 lines 0 comments Download
A state/service.go View 1 2 3 4 5 6 1 chunk +189 lines, -0 lines 0 comments Download
A state/state.go View 1 2 3 4 5 6 1 chunk +51 lines, -0 lines 0 comments Download
A state/state_test.go View 1 2 3 4 5 6 1 chunk +244 lines, -0 lines 0 comments Download
A state/topology.go View 1 2 3 4 5 6 1 chunk +240 lines, -0 lines 0 comments Download
A state/unit.go View 1 2 3 4 5 6 1 chunk +80 lines, -0 lines 0 comments Download
A state/util.go View 1 2 3 4 5 6 1 chunk +60 lines, -0 lines 0 comments Download

Messages

Total messages: 24
TheMue
Please take a look.
12 years, 4 months ago (2011-12-20 11:47:31 UTC) #1
TheMue
Please take a look.
12 years, 4 months ago (2011-12-22 16:42:18 UTC) #2
niemeyer
https://codereview.appspot.com/5502043/diff/2001/state/service.go File state/service.go (right): https://codereview.appspot.com/5502043/diff/2001/state/service.go#newcode31 state/service.go:31: unit, ok := s.Units[id] We discussed this in the ...
12 years, 4 months ago (2011-12-22 17:00:38 UTC) #3
TheMue
Please take a look.
12 years, 4 months ago (2011-12-23 13:52:56 UTC) #4
niemeyer
This is looking a lot nicer, thanks Frank. There are a substantial amount of review ...
12 years, 4 months ago (2011-12-23 15:08:30 UTC) #5
rog
looks good generally. a couple of hopefully-not-too-bikesheddy remarks on some commentary. https://codereview.appspot.com/5502043/diff/10/state/state.go File state/state.go (right): ...
12 years, 4 months ago (2011-12-23 17:59:44 UTC) #6
gustavo_niemeyer.net
>> // State enables reading, observing, and changing the state >> // of a whole ...
12 years, 4 months ago (2011-12-23 18:06:10 UTC) #7
rog
On 23 December 2011 18:05, Gustavo Niemeyer <gustavo@niemeyer.net> wrote: >>> // State enables reading, observing, ...
12 years, 4 months ago (2011-12-23 19:39:19 UTC) #8
gustavo_niemeyer.net
>>>> // State enables reading, observing, and changing the state >>>> // of a whole ...
12 years, 4 months ago (2011-12-23 20:12:32 UTC) #9
rog
On 23 December 2011 20:12, Gustavo Niemeyer <gustavo@niemeyer.net> wrote: >>>>> // State enables reading, observing, ...
12 years, 3 months ago (2012-01-03 14:48:17 UTC) #10
TheMue
https://codereview.appspot.com/5502043/diff/10/state/service.go File state/service.go (right): https://codereview.appspot.com/5502043/diff/10/state/service.go#newcode19 state/service.go:19: func newService(t *topology, id, name string) *Service { On ...
12 years, 3 months ago (2012-01-04 16:27:20 UTC) #11
TheMue
Please take a look.
12 years, 3 months ago (2012-01-04 16:28:31 UTC) #12
niemeyer
Thanks for the changes, Frank. Looking forward to meet next week. Meanwhile, just a minor ...
12 years, 3 months ago (2012-01-04 17:46:59 UTC) #13
niemeyer
Thanks for the changes, Frank. Looking forward to meet next week. Meanwhile, just a minor ...
12 years, 3 months ago (2012-01-04 17:46:59 UTC) #14
TheMue
Hi Gustavo, I'll change it and I'm looking forward to our meeting too. CU mue ...
12 years, 3 months ago (2012-01-04 20:11:09 UTC) #15
TheMue
Please take a look.
12 years, 3 months ago (2012-01-09 15:59:53 UTC) #16
niemeyer
https://codereview.appspot.com/5502043/diff/12001/state/service.go File state/service.go (right): https://codereview.appspot.com/5502043/diff/12001/state/service.go#newcode21 state/service.go:21: // Id returns the service id. Please rename the ...
12 years, 3 months ago (2012-01-10 13:02:17 UTC) #17
TheMue
Please take a look.
12 years, 3 months ago (2012-01-11 09:13:22 UTC) #18
TheMue
Please take a look. https://codereview.appspot.com/5502043/diff/12001/state/service.go File state/service.go (right): https://codereview.appspot.com/5502043/diff/12001/state/service.go#newcode21 state/service.go:21: // Id returns the service ...
12 years, 3 months ago (2012-01-11 09:15:22 UTC) #19
niemeyer
One more small pass. https://codereview.appspot.com/5502043/diff/14002/state/service.go File state/service.go (right): https://codereview.appspot.com/5502043/diff/14002/state/service.go#newcode36 state/service.go:36: return "", fmt.Errorf("charm has illegal ...
12 years, 3 months ago (2012-01-11 11:42:49 UTC) #20
TheMue
Please take a look.
12 years, 3 months ago (2012-01-11 14:33:21 UTC) #21
TheMue
PTAL https://codereview.appspot.com/5502043/diff/14002/state/service.go File state/service.go (right): https://codereview.appspot.com/5502043/diff/14002/state/service.go#newcode36 state/service.go:36: return "", fmt.Errorf("charm has illegal type") On 2012/01/11 ...
12 years, 3 months ago (2012-01-11 14:37:20 UTC) #22
niemeyer
LGTM! Thanks for the great work.
12 years, 3 months ago (2012-01-12 07:17:40 UTC) #23
TheMue
12 years, 3 months ago (2012-01-12 08:05:26 UTC) #24
*** Submitted:

Initial adding of the state model to the Go port of juju

As a first step in adding the Go port the state can be opened and first
operations ond Service and Unit can be done. Also needed first topology
functionality is part of this branch.

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

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