From 70df94f3a17a69e999099a6906a75ea1c105b836 Mon Sep 17 00:00:00 2001 From: Adityashandilya555 Date: Sun, 26 Oct 2025 12:13:50 +0530 Subject: [PATCH 1/2] [feature] Add firmware upgrader websocket routes #484 Adds websocket routes for the OpenWISP firmware upgrader module when USE_OPENWISP_FIRMWARE environment variable is enabled. This enables real-time upgrade progress tracking for: - Individual upgrade operations - Batch upgrade operations - Device-specific upgrade progress --- images/common/openwisp/asgi.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/images/common/openwisp/asgi.py b/images/common/openwisp/asgi.py index ec81442c..1c224a9c 100644 --- a/images/common/openwisp/asgi.py +++ b/images/common/openwisp/asgi.py @@ -28,6 +28,13 @@ routes.extend(network_topology_routes) +if env_bool(os.environ.get("USE_OPENWISP_FIRMWARE")): + from openwisp_firmware_upgrader.routing import ( # noqa: E402 + websocket_urlpatterns as firmware_upgrader_routes, + ) + + routes.extend(firmware_upgrader_routes) + application = ProtocolTypeRouter( { "http": django_asgi_app, From 7068d4152e5ebe5a97de1f0e0df5d306b133646e Mon Sep 17 00:00:00 2001 From: Adityashandilya555 Date: Tue, 9 Dec 2025 16:30:20 +0530 Subject: [PATCH 2/2] [deps] Pin sphinx<8.0.0 for docstrfmt compatibility --- requirements-test.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements-test.txt b/requirements-test.txt index 8a6b6c72..57875b35 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,2 +1,3 @@ docker>=7.1.0,<7.2.0 openwisp-utils[qa,selenium]~=1.2.0 +sphinx<8.0.0