DescriptionPrevent duplicate nodes in services.
drawService was being called for all nodes on update, which was appending new nodes to the DOM (for the most part invisibly, but still not good). Instead, new services are filled with the empty requisites for a service block, and then the internals are updated on update to match the DB. A further step (not taken here for time's sake) would be to only update services affected by the update call. Additionally, some comments were out of date, and these were cleaned up.
https://code.launchpad.net/~makyo/juju-gui/duplicates-1095761/+merge/142202
(do not edit description out of merge proposal)
Patch Set 1 #
Total comments: 7
Patch Set 2 : Prevent duplicate nodes in services. #Patch Set 3 : Prevent duplicate nodes in services. #
MessagesTotal messages: 6
|