Merge lp://staging/~doanac/ubuntu-ci-services-itself/json-jsonp-status into lp://staging/ubuntu-ci-services-itself

Proposed by Andy Doan
Status: Merged
Approved by: Chris Johnston
Approved revision: 301
Merged at revision: 299
Proposed branch: lp://staging/~doanac/ubuntu-ci-services-itself/json-jsonp-status
Merge into: lp://staging/ubuntu-ci-services-itself
Diff against target: 175 lines (+63/-0)
9 files modified
charms/precise/restish/config.yaml (+4/-0)
charms/precise/restish/hooks/hooks.py (+13/-0)
charms/precise/restish/metadata.yaml (+3/-0)
charms/precise/webui/hooks/hooks.py (+35/-0)
charms/precise/webui/metadata.yaml (+2/-0)
juju-deployer/branch-source-builder.yaml.tmpl (+1/-0)
juju-deployer/image-builder.yaml.tmpl (+1/-0)
juju-deployer/relations.yaml (+3/-0)
juju-deployer/test-runner.yaml.tmpl (+1/-0)
To merge this branch: bzr merge lp://staging/~doanac/ubuntu-ci-services-itself/json-jsonp-status
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Andy Doan (community) Approve
Evan (community) Approve
Review via email: mp+208915@code.staging.launchpad.net

Commit message

integrate monitoring api into webui

Provide a simple mechansim for the webui to get monitor the status of other services.
(restish only for this change)

Description of the change

provides the charming logic required to fix:

 https://bugs.launchpad.net/bugs/1285360

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:300
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/265/
Executed test runs:

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/265/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Evan (ev) wrote :

Looks good. +1

review: Approve
Revision history for this message
Evan (ev) wrote :

110 +@hooks.hook('json_status-relation-changed')
111 +def json_status_relation_changed():
112 + json_status_relation_joined()

Minor nit, but couldn't you just decorate json_status_relation_joined() with hooks.hook('json_status-relation-changed')?

Revision history for this message
Andy Doan (doanac) wrote :

On 03/03/2014 03:10 AM, Evan Dandrea wrote:
> 110 +@hooks.hook('json_status-relation-changed')
> 111 +def json_status_relation_changed():
> 112 + json_status_relation_joined()
>
> Minor nit, but couldn't you just decorate json_status_relation_joined() with hooks.hook('json_status-relation-changed')?

I wasn't positive if was safe with the hooks.hook decorator to have it
twice for a function. I'm re-doplying this morning, so it should be easy
to find out :)

301. By Andy Doan

use one hook function for joined/changed

as noted by evan

Revision history for this message
Andy Doan (doanac) wrote :

revno 301 fixes ev's comment. he's already acked the patch.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:301
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/267/
Executed test runs:

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/267/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

PASSED: Continuous integration, rev:301
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/271/
Executed test runs:

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/271/rebuild

review: Approve (continuous-integration)

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