Duplicate subordinates miscount relations
Bug #1103207 reported by
Gary Poster
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
lp:~makyo/juju-gui/sub-rels-1103207
- Juju GUI Hackers: Pending requested
-
Diff: 66 lines (+44/-1)2 files modifiedapp/views/topology/relation.js (+1/-1)
test/test_environment_view.js (+43/-0)
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.