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

Issue 92630043: cleanup code to remove pending Actions (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 11 months ago by johnweldon4
Modified:
9 years, 10 months ago
Reviewers:
mp+221007, fwereade
Visibility:
Public.

Description

cleanup code to remove pending Actions remove pending Actions from the queue when the units to which they are assigned are removed. https://code.launchpad.net/~johnweldon4/juju-core/unit-action-cleanup/+merge/221007 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : cleanup code to remove pending Actions #

Total comments: 14

Patch Set 3 : cleanup code to remove pending Actions #

Total comments: 6

Patch Set 4 : cleanup code to remove pending Actions #

Unified diffs Side-by-side diffs Delta from patch set Stats (+264 lines, -26 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M state/action.go View 1 2 4 chunks +38 lines, -1 line 0 comments Download
M state/action_test.go View 1 2 3 4 chunks +87 lines, -13 lines 0 comments Download
M state/cleanup.go View 1 2 4 chunks +21 lines, -0 lines 0 comments Download
M state/cleanup_test.go View 1 2 3 3 chunks +53 lines, -3 lines 0 comments Download
M state/service.go View 1 chunk +1 line, -0 lines 0 comments Download
M state/state.go View 1 2 3 1 chunk +16 lines, -0 lines 0 comments Download
M state/state_test.go View 1 2 1 chunk +42 lines, -0 lines 0 comments Download
M state/unit.go View 1 2 2 chunks +4 lines, -9 lines 0 comments Download

Messages

Total messages: 7
johnweldon4
Please take a look.
9 years, 11 months ago (2014-05-26 22:26:03 UTC) #1
fwereade
This is great, just a bit light on the testing. https://codereview.appspot.com/92630043/diff/20001/state/action.go File state/action.go (right): https://codereview.appspot.com/92630043/diff/20001/state/action.go#newcode76 ...
9 years, 11 months ago (2014-05-26 23:44:49 UTC) #2
johnweldon4
Updated to address comments, added a test for State.UnitActions(), etc. https://codereview.appspot.com/92630043/diff/20001/state/action.go File state/action.go (right): https://codereview.appspot.com/92630043/diff/20001/state/action.go#newcode76 ...
9 years, 11 months ago (2014-05-27 06:15:18 UTC) #3
johnweldon4
Please take a look.
9 years, 11 months ago (2014-05-27 06:22:33 UTC) #4
fwereade
Great, really just trivials to do... and I just realised we want a test for ...
9 years, 11 months ago (2014-05-27 06:59:55 UTC) #5
johnweldon4
Please take a look. https://codereview.appspot.com/92630043/diff/40001/state/cleanup_test.go File state/cleanup_test.go (right): https://codereview.appspot.com/92630043/diff/40001/state/cleanup_test.go#newcode320 state/cleanup_test.go:320: _, err = unit.AddAction("action1", nil) ...
9 years, 11 months ago (2014-05-27 17:53:18 UTC) #6
fwereade
9 years, 10 months ago (2014-05-28 16:03:00 UTC) #7
LGTM, thanks
Sign in to reply to this message.

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