[UI 2.0a1] changing a subnet's space does not cause a refresh in networks/spaces tab in the UI
Bug #1555715 reported by
LaMont Jones
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
LaMont Jones |
Bug Description
If I update a subnet to change what space it's in, while the UI is sitting in networks on the spaces tab, no update occurs. Same is true on the fabrics tab of networks.
Hitting f5 is needed to see the update.
Related branches
lp:~lamont/maas/bug1555715
- Mike Pontillo (community): Approve
-
Diff: 18 lines (+4/-4)1 file modifiedsrc/maasserver/static/js/angular/controllers/networks_list.js (+4/-4)
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → High |
tags: | added: ui |
Changed in maas: | |
milestone: | none → 2.0.0 |
summary: |
- [2.0a1] changing a subnet's space does not cause a refresh in + [UI 2.0a1] changing a subnet's space does not cause a refresh in networks/spaces tab in the UI |
Changed in maas: | |
assignee: | nobody → LaMont Jones (lamont) |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
One possibility is that the websocket is not sending updates when the space changes. So we'll have to rule that out first.
This could be happening because we are using $watchCollection to watch the lists of objects. By doing so, we cover additions to and removals from each list. However, we won't cover changes to each object's property.
See here for more details:
http:// teropa. info/blog/ 2014/01/ 26/the- three-watch- depths- of-angularjs. html
If that's the case, it looks like we could could convert this to a $watch(..., ..., true) expression in order to fix this. (but that would be more expensive to watch.)