Merge lp:~dimitern/juju-core/103-relation-entity-tags into lp:~go-bot/juju-core/trunk
Status: | Merged |
---|---|
Approved by: | Dimiter Naydenov |
Approved revision: | no longer in the source branch. |
Merged at revision: | 1661 |
Proposed branch: | lp:~dimitern/juju-core/103-relation-entity-tags |
Merge into: | lp:~go-bot/juju-core/trunk |
Prerequisite: | lp:~dimitern/juju-core/102-state-endpoint-refactoring |
Diff against target: |
277 lines (+124/-23) 7 files modified
names/relation.go (+24/-0) names/relation_test.go (+36/-0) names/tag.go (+18/-15) names/tag_test.go (+9/-3) state/relation.go (+7/-0) state/state.go (+9/-0) state/state_test.go (+21/-5) |
To merge this branch: | bzr merge lp:~dimitern/juju-core/103-relation-entity-tags |
Related bugs: | |
Related blueprints: |
Apidocs
(Undefined)
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+180157@code.launchpad.net |
Commit message
state: Make Relation an Entity
This adds relation tags to the names package. The
format is "relation-<id>", where <id> is the relation's
numeric id.
It also adds a Tag() method on the relation, and a few
other necessary modifications to make state.Relation
objects behave like other entities. This is needed for
the uniter API facade, so relations can be used as
params and results.
https:/
R=gz, rogpeppe
Description of the change
state: Make Relation an Entity
This adds relation tags to the names package. The
format is "relation-<id>", where <id> is the relation's
numeric id.
It also adds a Tag() method on the relation, and a few
other necessary modifications to make state.Relation
objects behave like other entities. This is needed for
the uniter API facade, so relations can be used as
params and results.
Reviewers: mp+180157_ code.launchpad. net,
Message:
Please take a look.
Description:
state: Make Relation an Entity
This adds relation tags to the names package. The
format is "relation-<id>", where <id> is the relation's
numeric id.
It also adds a Tag() method on the relation, and a few
other necessary modifications to make state.Relation
objects behave like other entities. This is needed for
the uniter API facade, so relations can be used as
params and results.
https:/ /code.launchpad .net/~dimitern/ juju-core/ 103-relation- entity- tags/+merge/ 180157
Requires: /code.launchpad .net/~dimitern/ juju-core/ 102-state- endpoint- refactoring/ +merge/ 180141
https:/
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/12748044/
Affected files: test.go
A [revision details]
A names/relation.go
A names/relation_
M names/tag.go
M names/tag_test.go
M state/relation.go
M state/state.go
M state/state_test.go