Merge lp:~dimitern/juju-core/102-state-endpoint-refactoring into lp:~go-bot/juju-core/trunk
Status: | Merged |
---|---|
Approved by: | Dimiter Naydenov |
Approved revision: | no longer in the source branch. |
Merged at revision: | 1660 |
Proposed branch: | lp:~dimitern/juju-core/102-state-endpoint-refactoring |
Merge into: | lp:~go-bot/juju-core/trunk |
Diff against target: |
278 lines (+119/-122) 4 files modified
charm/meta.go (+41/-0) charm/meta_test.go (+78/-0) state/endpoint.go (+0/-41) state/endpoint_test.go (+0/-81) |
To merge this branch: | bzr merge lp:~dimitern/juju-core/102-state-endpoint-refactoring |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+180141@code.launchpad.net |
Commit message
state;charm: Refactor state/Endpoint
Two methods of state.Endpoint are not related to state,
more to charm metadata. Endpoint embeds a charm.Relation,
so I moved IsImplicit() and ImplementedBy() from Endpoint
to charm.Relation, along with their tests.
This is necessary, so that we can avoid implementing API
calls for them in the uniter API facade, becasue the
uniter needs them.
https:/
R=jameinel, rogpeppe
Description of the change
state;charm: Refactor state/Endpoint
Two methods of state.Endpoint are not related to state,
more to charm metadata. Endpoint embeds a charm.Relation,
so I moved IsImplicit() and ImplementedBy() from Endpoint
to charm.Relation, along with their tests.
This is necessary, so that we can avoid implementing API
calls for them in the uniter API facade, becasue the
uniter needs them.
Reviewers: mp+180141_ code.launchpad. net,
Message:
Please take a look.
Description:
state;charm: Refactor state/Endpoint
Two methods of state.Endpoint are not related to state,
more to charm metadata. Endpoint embeds a charm.Relation,
so I moved IsImplicit() and ImplementedBy() from Endpoint
to charm.Relation, along with their tests.
This is necessary, so that we can avoid implementing API
calls for them in the uniter API facade, becasue the
uniter needs them.
https:/ /code.launchpad .net/~dimitern/ juju-core/ 102-state- endpoint- refactoring/ +merge/ 180141
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/12906044/
Affected files: test.go
A [revision details]
M charm/meta.go
M charm/meta_test.go
M state/endpoint_