Merge lp://staging/~makyo/juju-core/service-life into lp://staging/~juju/juju-core/trunk
Proposed by
Madison Scott-Clary
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 1165 | ||||
Proposed branch: | lp://staging/~makyo/juju-core/service-life | ||||
Merge into: | lp://staging/~juju/juju-core/trunk | ||||
Diff against target: |
160 lines (+10/-53) 5 files modified
state/api/params/params.go (+1/-7) state/api/params/params_test.go (+2/-1) state/megawatcher.go (+1/-0) state/megawatcher_internal_test.go (+6/-1) state/statecmd/resolved_test.go.THIS (+0/-44) |
||||
To merge this branch: | bzr merge lp://staging/~makyo/juju-core/service-life | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+159255@code.staging.launchpad.net |
Description of the change
Add Life to Service API information
This is a branch from Francesco Banconi, submitted on his behalf. This branch adds Life information to Service API calls for the GUI to consume and use for making decisions regarding destroying services. This branch was QA'd by members of #juju-gui earlier today, as well.
To post a comment you must log in.
Reviewers: mp+159255_ code.launchpad. net,
Message:
Please take a look.
Description:
Add Life to Service API information
This is a branch from Francesco Banconi, submitted on his behalf. This
branch adds Life information to Service API calls for the GUI to consume
and use for making decisions regarding destroying services. This branch
was QA'd by members of #juju-gui earlier today, as well.
https:/ /code.launchpad .net/~makyo/ juju-core/ service- life/+merge/ 159255
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/8811043/
Affected files: params/ params. go params/ params_ test.go er.go er_internal_ test.go resolved_ test.go. THIS
A [revision details]
M state/api/
M state/api/
M state/megawatch
M state/megawatch
D state/statecmd/
Index: [revision details]
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision: <email address hidden>
+New revision: <email address hidden>
Index: state/megawatch er.go megawatcher. go' er.go 2013-04-16 14:57:08 +0000 er.go 2013-04-16 16:31:53 +0000 String( ), info.EntityId( ))
=== modified file 'state/
--- state/megawatch
+++ state/megawatch
@@ -113,6 +113,7 @@
Name: svc.Name,
Exposed: svc.Exposed,
CharmURL: svc.CharmURL.
+ Life: svc.Life.String(),
}
oldInfo := store.Get(
needConfig := false
Index: state/megawatch er_internal_ test.go megawatcher_ internal_ test.go' er_internal_ test.go 2013-04-15 22:34:10 +0000 er_internal_ test.go 2013-04-16 16:47:59 +0000 (wordpress) .String( ), MustParse( "mem=100M" ), interface{ }{"blog- title": "boring"}, ¶ms. ServiceInfo{ (logging) .String( ), interface{ }{},
=== modified file 'state/
--- state/megawatch
+++ state/megawatch
@@ -80,6 +80,7 @@
Name: "wordpress",
Exposed: true,
CharmURL: serviceCharmURL
+ Life: Alive.String(),
Constraints: constraints.
Config: map[string]
})
@@ -96,6 +97,7 @@
add(
Name: "logging",
CharmURL: serviceCharmURL
+ Life: Alive.String(),
Config: map[string]
})
@@ -405,6 +407,7 @@ series/ series- wordpress- 3", interface{ }{}, ServiceInfo{ series/ series- wordpress- 3", MustParse( "mem=99M" ), interface{ }{"blog- title": "boring"}, EntityInfo{ ¶ms. ServiceInfo{ series/ series- wordpress- 2", interface{ }{"foo" : "bar"}, ServiceInfo{ series/ series- wordpress. ..
Name: "wordpress",
Exposed: true,
CharmURL: "local:
+ Life: Alive.String(),
Config: map[string]
},
},
@@ -430,6 +433,7 @@
¶ms.
Name: "wordpress",
CharmURL: "local:
+ Life: Alive.String(),
Constraints: constraints.
Config: map[string]
},
@@ -439,7 +443,7 @@
add: []params.
Name: "wordpress",
// Note: CharmURL has a different revision number from
- // the wordpress revision in the testing repo.
+ // the wordpress revision in the testing repo.
CharmURL: "local:
Config: map[string]
}},
@@ -460,6 +464,7 @@
¶ms.
Name: "wordpress",
CharmURL: "local: