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

Issue 10497043: Add a doc for tracking minimum units changes.

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 10 months ago by frankban
Modified:
10 years, 10 months ago
Reviewers:
mue, mp+171078, fwereade, rog
Visibility:
Public.

Description

Add a doc for tracking minimum units changes. This branch includes a new minimumUnits doc. It allows for keeping track of changes on the services MinimumUnits field, also introduced in this branch. Also added functions for setting minimum units on the service, and for adding units if the value is greater than the number of alive units. The latter (EnsureMinimumUnits) is intended to be used, in the future, by a worker reacting to changes on the minimumUnits document. https://code.launchpad.net/~frankban/juju-core/set-minimum-units/+merge/171078 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 22

Patch Set 2 : Add a doc for tracking minimum units changes. #

Total comments: 2

Patch Set 3 : Add a doc for tracking minimum units changes. #

Patch Set 4 : Add a doc for tracking minimum units changes. #

Total comments: 30

Patch Set 5 : Add a doc for tracking minimum units changes. #

Total comments: 3

Patch Set 6 : Add a doc for tracking minimum units changes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+379 lines, -3 lines) Patch
A [revision details] View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M state/export_test.go View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
A state/minimumunits.go View 1 2 3 4 5 1 chunk +122 lines, -0 lines 0 comments Download
A state/minimumunits_test.go View 1 2 3 4 5 1 chunk +238 lines, -0 lines 0 comments Download
M state/open.go View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M state/service.go View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M state/state.go View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M state/unit.go View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 11
frankban
Please take a look.
10 years, 10 months ago (2013-06-24 13:06:39 UTC) #1
mue
LGTM to the code, but I'm not yet sure why an own document and collection ...
10 years, 10 months ago (2013-06-25 12:59:41 UTC) #2
frankban
Please take a look. https://codereview.appspot.com/10497043/diff/1/state/minimumunits.go File state/minimumunits.go (right): https://codereview.appspot.com/10497043/diff/1/state/minimumunits.go#newcode13 state/minimumunits.go:13: // minimumUnitsDoc allows for keeping ...
10 years, 10 months ago (2013-06-25 14:59:48 UTC) #3
frankban
Please take a look.
10 years, 10 months ago (2013-06-25 16:19:47 UTC) #4
rog
great stuff. looks good with quite a few trivial thoughts and two more substantial questions. ...
10 years, 10 months ago (2013-06-25 16:25:33 UTC) #5
frankban
Please take a look. https://codereview.appspot.com/10497043/diff/1/state/minimumunits.go File state/minimumunits.go (right): https://codereview.appspot.com/10497043/diff/1/state/minimumunits.go#newcode15 state/minimumunits.go:15: // A new document is ...
10 years, 10 months ago (2013-06-26 08:56:00 UTC) #6
fwereade
I'm fine with the new collection and the operations on it, modulo a few tweaks, ...
10 years, 10 months ago (2013-06-26 10:59:26 UTC) #7
frankban
Please take a look. https://codereview.appspot.com/10497043/diff/30001/state/minimumunits.go File state/minimumunits.go (right): https://codereview.appspot.com/10497043/diff/30001/state/minimumunits.go#newcode28 state/minimumunits.go:28: TxnRevno int64 `bson:"txn-revno"` On 2013/06/26 ...
10 years, 10 months ago (2013-06-26 15:44:53 UTC) #8
fwereade
LGTM with suggestions below https://codereview.appspot.com/10497043/diff/6001/state/open.go File state/open.go (right): https://codereview.appspot.com/10497043/diff/6001/state/open.go#newcode222 state/open.go:222: Let's be consistent about min/minimum ...
10 years, 10 months ago (2013-06-26 23:11:10 UTC) #9
frankban
On 2013/06/26 23:11:10, fwereade wrote: > LGTM with suggestions below > https://codereview.appspot.com/10497043/diff/6001/state/open.go#newcode222 > state/open.go:222: > ...
10 years, 10 months ago (2013-06-27 08:18:06 UTC) #10
frankban
10 years, 10 months ago (2013-06-27 08:18:49 UTC) #11
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