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
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.

https://codereview.appspot.com/8811043/

To post a comment you must log in.
Revision history for this message
Madison Scott-Clary (makyo) wrote :
Download full text (6.5 KiB)

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:
   A [revision details]
   M state/api/params/params.go
   M state/api/params/params_test.go
   M state/megawatcher.go
   M state/megawatcher_internal_test.go
   D state/statecmd/resolved_test.go.THIS

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/megawatcher.go
=== modified file 'state/megawatcher.go'
--- state/megawatcher.go 2013-04-16 14:57:08 +0000
+++ state/megawatcher.go 2013-04-16 16:31:53 +0000
@@ -113,6 +113,7 @@
    Name: svc.Name,
    Exposed: svc.Exposed,
    CharmURL: svc.CharmURL.String(),
+ Life: svc.Life.String(),
   }
   oldInfo := store.Get(info.EntityId())
   needConfig := false

Index: state/megawatcher_internal_test.go
=== modified file 'state/megawatcher_internal_test.go'
--- state/megawatcher_internal_test.go 2013-04-15 22:34:10 +0000
+++ state/megawatcher_internal_test.go 2013-04-16 16:47:59 +0000
@@ -80,6 +80,7 @@
    Name: "wordpress",
    Exposed: true,
    CharmURL: serviceCharmURL(wordpress).String(),
+ Life: Alive.String(),
    Constraints: constraints.MustParse("mem=100M"),
    Config: map[string]interface{}{"blog-title": "boring"},
   })
@@ -96,6 +97,7 @@
   add(&params.ServiceInfo{
    Name: "logging",
    CharmURL: serviceCharmURL(logging).String(),
+ Life: Alive.String(),
    Config: map[string]interface{}{},
   })

@@ -405,6 +407,7 @@
      Name: "wordpress",
      Exposed: true,
      CharmURL: "local:series/series-wordpress-3",
+ Life: Alive.String(),
      Config: map[string]interface{}{},
     },
    },
@@ -430,6 +433,7 @@
     &params.ServiceInfo{
      Name: "wordpress",
      CharmURL: "local:series/series-wordpress-3",
+ Life: Alive.String(),
      Constraints: constraints.MustParse("mem=99M"),
      Config: map[string]interface{}{"blog-title": "boring"},
     },
@@ -439,7 +443,7 @@
    add: []params.EntityInfo{&params.ServiceInfo{
     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:series/series-wordpress-2",
     Config: map[string]interface{}{"foo": "bar"},
    }},
@@ -460,6 +464,7 @@
     &params.ServiceInfo{
      Name: "wordpress",
      CharmURL: "local:series/series-wordpress...

Read more...

Revision history for this message
Madison Scott-Clary (makyo) wrote :

LGTM from #juju-gui on QA

https://codereview.appspot.com/8811043/

Revision history for this message
Tim Penhey (thumper) wrote :
Revision history for this message
Madison Scott-Clary (makyo) wrote :

*** Submitted:

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.

R=dfc, thumper
CC=
https://codereview.appspot.com/8811043

https://codereview.appspot.com/8811043/

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches