DescriptionDrop ServiceRelation; add Relation
As discussed on IRC, ServiceRelation is "difficult" and liable to lead to
confusion; and the code has been hinting that a Relation really is just a
list of endpoints at heart. You'd think this would be obvious to anyone, in
hindsight :).
The proposed ordering of endpoints within a relation[0] has been dropped, in
favour of a pair of Relation methods that expose the same information but
more explicitly (Endpoint/RelatedEndpoint).
[0] Early discussions suggested that Service.Relations should return a slice
of slices of endpoints, with the latter ordered such that the first endpoint
corresponded to the service from which the relations were acquired.
https://code.launchpad.net/~fwereade/juju-core/relation-type/+merge/110870
(do not edit description out of merge proposal)
Patch Set 1 #Patch Set 2 : Drop ServiceRelation; add Relation #Patch Set 3 : Drop ServiceRelation; add Relation #
Total comments: 18
Patch Set 4 : Drop ServiceRelation; add Relation #
MessagesTotal messages: 7
|