Send websocket notify when general data updates

Bug #1950106 reported by Huw Wilkins
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
MAAS
Triaged
Low
Unassigned
3.4
Won't Fix
Low
Unassigned
maas-ui
Triaged
Low
Unassigned

Bug Description

When data for the 'general' endpoint changes (https://github.com/maas/maas/blob/master/src/maasserver/websockets/handlers/general.py) the websocket does not send notify messages.

Huw Wilkins (huwshimi)
tags: added: websocket-api
Alberto Donato (ack)
Changed in maas:
status: New → In Progress
status: In Progress → Triaged
milestone: none → next
importance: Undecided → Medium
Revision history for this message
Jerzy Husakowski (jhusakowski) wrote :

The data exposed on the 'general' endpoint may need to be split into separate endpoints, as the idea of the 'general' endpoint was to expose data that does not change.

Changed in maas:
importance: Medium → Low
milestone: next → 3.3.0
Revision history for this message
Jerzy Husakowski (jhusakowski) wrote :

Would it be possible to make an inventory of things that UI needs to be notified on? There are more than 20 items in the 'general' endpoint and they don't all look like something that UI needs to be notified about.

tags: added: ui
Changed in maas-ui:
importance: Undecided → Unknown
Revision history for this message
Huw Wilkins (huwshimi) wrote :

These are the notifications that I think we need (at least that I can find at the moment):

osinfo
- when changing the default os in config the general osinfo needs to be updated with the new default: https://github.com/canonical/maas-ui/issues/148#issuecomment-545908773

default_min_hwe_kernel
- when changing the default min HWE kernel in config the general default_min_hwe_kernel needs to be updated with the new default

hwe_kernels
osinfo
default_min_hwe_kernel
architectures
- after images are synced these values need to be updated: https://bugs.launchpad.net/maas/+bug/1964143

Changed in maas:
milestone: 3.3.0 → 3.4.0
no longer affects: maas/3.3
Changed in maas-ui:
status: New → Triaged
importance: Unknown → Low
milestone: none → 3.4.0
Alberto Donato (ack)
Changed in maas:
milestone: 3.4.0 → 3.4.x
Changed in maas:
milestone: 3.4.x → 3.5.x
Changed in maas-ui:
milestone: 3.4.0 → 3.5.x
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.