[feature] Emit a signal when a device operating system changes
I maintainer di solito rispondono entro 1 giorno
@kimpasha23-beep ci sta già lavorando.
Dal 11/10/2026.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- Mezza giornata
- Idoneità per principianti
- 65/100
Direzione di ricerca
Start with the device_name_changed and management_ip_changed signals in openwisp_controller.config.signals and how AbstractDevice detects those field changes. Add device_os_changed alongside them, track the previous os value the same way, and emit it only after saving an existing device whose os changed. Done means tests show it fires with instance, os and old_os on an OS change and stays silent on create or unchanged saves.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Is your feature request related to a problem? Please describe.
Applications that need to react when a device reports a new operating system version have no dedicated, public integration point.
For example, after a device is upgraded outside OpenWISP, it reconnects and updates its Device.os field through the controller. Downstream applications may need to synchronize derived state based on the newly reported operating system, but listening to the generic post_save signal requires each application to implement its own old-value detection and executes for unrelated device changes.
Describe the solution you'd like
Add a public device_os_changed signal in openwisp_controller.config.signals.
The signal should be emitted only after an existing device has been saved with a changed os value. It should provide:
instance: the updated device.os: the new operating system value.old_os: the previous operating system value.
The signal should follow the existing device-change signal pattern, such as device_name_changed and management_ip_changed, by extending AbstractDevice's change detection. It must not be emitted when a device is created or when its operating-system value is unchanged.
This would allow optional applications, including openwisp-firmware-upgrader, to subscribe without creating a controller-to-integration dependency. The firmware upgrader can then asynchronously synchronize its DeviceFirmware association after a device reports a different operating system.
Describe alternatives you've considered
Listening to the generic post_save signal from downstream applications is possible, but it forces each consumer to detect OS changes independently and causes handlers to run for every device save.
Additional context
AbstractDevice already provides field-change detection for device name, group, and management IP. A dedicated OS-change signal would use the same established extension pattern and be reusable by integrations beyond firmware management.
- Lingua principale
- Python
- Stelle
- 778
- Fork
- 322
- Merge medio
- 2g 19h
- PR unite (30g)
- 7
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di openwisp/openwisp-controller
-
[fix] Recent Commands row uses "created" timestamp for the "Modified" fieldForse già presa @xovishnukosuri l’ha presa 214 giorni fa. Apertabug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
openwisp/openwisp-controller#1263 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
[feature] Add board_name field to Device model for DTB board identificationForse già presa @atif09 l’ha presa 26 giorni fa. Apertaenhancement gsoc
openwisp/openwisp-controller#1491 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
[bug:gsoc26] Mass command wizards started in two browser tabs overwrite each otherForse già presa @dee077 l’ha presa 29 giorni fa. Apertabug
openwisp/openwisp-controller#1489 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
openwisp/openwisp-controller#1484 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[bug] Template.clean() corrections land one write late over the REST APIForse di nuovo libera @krrishnaik l’ha presa 40 giorni fa e non c’è nessuna pull request aperta. Apertabug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
openwisp/openwisp-controller#1478 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di openwisp/openwisp-controller
Issue simili
-
good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
btclib-org/btclib-node#1955 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation v0.9.2
Difficoltà 2/5 Mezza giornata Idoneità per principianti 72/100
khuisman/mcp-gee-sweet#1033 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
ossf/cve-bin-tool#5966 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 2 giorni
-
write_iceberg ignores the table's write.parquet.compression-codec propertyForse già presa @YuangGao l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
Eventual-Inc/Daft#7606 ·
I maintainer di solito rispondono entro 1 giorno