Merge lp:~themue/pyjuju/go into lp:pyjuju/go
Proposed by
Frank Mueller
Status: | Rejected |
---|---|
Rejected by: | Gustavo Niemeyer |
Proposed branch: | lp:~themue/pyjuju/go |
Merge into: | lp:pyjuju/go |
Diff against target: |
125 lines (+57/-9) 3 files modified
state/relation.go (+21/-1) state/state.go (+11/-7) state/state_test.go (+25/-1) |
To merge this branch: | bzr merge lp:~themue/pyjuju/go |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+103315@code.launchpad.net |
Description of the change
Added ResolvedWatcher for Units.
It reads the resolved mode out of the node content if
it's created or changed.
To post a comment you must log in.
Unmerged revisions
- 202. By Frank Mueller
-
state: Merged prerequisite.
- 201. By Frank Mueller
-
state: Preparing for prerequisite.
Very nice. Just doc suggestions, except for the missing ok check,
similar to what was done in the other branches.
https:/ /codereview. appspot. com/6120045/ diff/1/ state/unit. go
File state/unit.go (right):
https:/ /codereview. appspot. com/6120045/ diff/1/ state/unit. go#newcode470
state/unit.go:470: // and checks if it's valid.
// parseResolvedMode returns the resolved mode serialized
// in yaml if it is valid, or an error otherwise.
https:/ /codereview. appspot. com/6120045/ diff/1/ state/unit. go#newcode486
state/unit.go:486: // resolved mode are used.
// validResolvedMode returns an error if the provided
// mode isn't valid. ResolvedNone is only considered a
// valid mode if acceptNone is true.
https:/ /codereview. appspot. com/6120045/ diff/1/ state/unit. go#newcode563
state/unit.go:563: // ResolvedWatcher observes changes to a resolved
flag node.
// ResolvedWatcher observes changes to a unit's resolved
// mode. See SetResolved for details.
https:/ /codereview. appspot. com/6120045/ diff/1/ state/unit. go#newcode573
state/unit.go:573: // watcher for the given path.
// newResolvedWatcher returns a new ResolvedWatcher watching path.
https:/ /codereview. appspot. com/6120045/ diff/1/ state/unit. go#newcode613 Changes( ):
state/unit.go:613: case change := <-w.watcher.
This needs to check for ok in a similar way to what was done in the
other watchers.
https:/ /codereview. appspot. com/6120045/