Duplicate subordinates miscount relations

Bug #1103207 reported by Gary Poster
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-gui
Fix Released
High
Madison Scott-Clary

Bug Description

If you have two subordinate charms of the same type, relations added to the second one are also counted in the first.

To dupe:
Deploy puppet service. By default, it will be named "puppet."
Make a relation to another service. Relation count for puppet goes from 0 to 1.
Deploy another puppet service, named something else (e.g. "puppet2").
Make a relation from the second puppet to another service.

WHAT SHOULD HAPPEN:
puppet2 should increase from relation count 0 to 1. puppet (the first service) should stay at 1.

WHAT HAPPENS
puppet2 increases relation count 0 to 1 (CORRECT). puppet (the first service) increases from 1 to 2 (INCORRECT).

Related branches

Changed in juju-gui:
assignee: nobody → Matthew Scott (makyo)
milestone: none → 0.1.5
status: Triaged → In Progress
Changed in juju-gui:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.