[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
6
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.

Tags: ui

Related branches

Changed in maas:
status: New → Triaged
importance: Undecided → High
tags: added: ui
Changed in maas:
milestone: none → 2.0.0
Revision history for this message
Mike Pontillo (mpontillo) wrote :

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.)

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
LaMont Jones (lamont)
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.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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