Merge lp://staging/~aramh/juju-core/78-mstate-watchers-service-relations-nwo into lp://staging/~juju/juju-core/trunk

Proposed by Aram Hăvărneanu
Status: Work in progress
Proposed branch: lp://staging/~aramh/juju-core/78-mstate-watchers-service-relations-nwo
Merge into: lp://staging/~juju/juju-core/trunk
Prerequisite: lp://staging/~aramh/juju-core/77-mstate-watchers-machine-units-nwo2
Diff against target: 366 lines (+336/-0)
2 files modified
mstate/service_test.go (+201/-0)
mstate/watcher.go (+135/-0)
To merge this branch: bzr merge lp://staging/~aramh/juju-core/78-mstate-watchers-service-relations-nwo
Reviewer Review Type Date Requested Status
The Go Language Gophers Pending
Review via email: mp+125136@code.staging.launchpad.net

Description of the change

mstate: add service relations watcher

https://codereview.appspot.com/6531046/

To post a comment you must log in.
Revision history for this message
Aram Hăvărneanu (aramh) wrote :

Reviewers: mp+125136_code.launchpad.net,

Message:
Please take a look.

Description:
mstate: add service relations watcher

https://code.launchpad.net/~aramh/juju-core/78-mstate-watchers-service-relations-nwo/+merge/125136

Requires:
https://code.launchpad.net/~aramh/juju-core/77-mstate-watchers-machine-units-nwo2/+merge/124946

(do not edit description out of merge proposal)

Please review this at https://codereview.appspot.com/6531046/

Affected files:
   A [revision details]
   M mstate/service_test.go
   M mstate/watcher.go

Revision history for this message
Gustavo Niemeyer (niemeyer) wrote :

https://codereview.appspot.com/6531046/diff/1004/mstate/watcher.go
File mstate/watcher.go (right):

https://codereview.appspot.com/6531046/diff/1004/mstate/watcher.go#newcode715
mstate/watcher.go:715: func (w *ServiceRelationsWatcher)
mergeChange(changes *RelationsChange, ch watcher.Change) (err error) {
As you suggested, let's filter out so we only act on relevant changes.

https://codereview.appspot.com/6531046/

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