Nodes within a g.service node in env view are duplicated on creation

Bug #1095761 reported by Madison Scott-Clary
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
juju-gui
Fix Released
High
Madison Scott-Clary

Bug Description

When deploying a service, before receiving the delta on success, a service block is created in the environment view and populated with initial data (that is, the SVG image node for the block, the text for the name, and so on). When the service is successfully deployed, the same action is repeated, and the g (grouping) element is populated with duplicate SVG tags, rather than the previous tags being modified or replaced.

This isn't visible with regular services, but on deploying a subordinate service, the block is initially created with a non-subordinate SVG element (as the UI doesn't know that the service is a subordinate until the delta arrives), leading to both a regular service block and a subordinate service block appearing in the same group element, visible as a portion of the regular block visible on the top of the subordinate block (see attached). Visibility aside, this clutters the DOM and has the potential to slow the UI.

Fixed by a refresh, since that will recreate the env view.

Here's a sample of the created SVG: http://pastebin.ubuntu.com/1492754/

Related branches

Revision history for this message
Madison Scott-Clary (makyo) wrote :
Changed in juju-gui:
assignee: nobody → Matthew Scott (makyo)
milestone: none → 0.1.3+build.302
status: New → In Progress
Gary Poster (gary)
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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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