get_endpoints called too frequently
Bug #1084790 reported by
Madison Scott-Clary
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-gui |
Fix Released
|
High
|
Madison Scott-Clary |
Bug Description
get_endpoints is called on every instance of adding a service. Instead, it should be called in on_database_changed in app.js only if services are added. Additionally, if services are removed, garbage collection should be performed on the endpoints map.
Related branches
lp:~makyo/juju-gui/endpoints-once
- Juju GUI Hackers: Pending requested
-
Diff: 114 lines (+59/-7)2 files modifiedapp/app.js (+29/-5)
test/test_app.js (+30/-2)
Changed in juju-gui: | |
assignee: | nobody → Matthew Scott (makyo) |
milestone: | none → bluemoon |
status: | New → In Progress |
Changed in juju-gui: | |
importance: | Undecided → High |
Changed in juju-gui: | |
status: | In Progress → Fix Released |
To post a comment you must log in.