django-loci
django-loci copied to clipboard
[fix] Address field real-time update #169
Added address update handling in the websocket message and updated listenForLocationUpdates logic accordingly.
Fixes #169
Checklist
- [x] I have read the OpenWISP Contributing Guidelines.
- [x] I have manually tested the changes proposed in this pull request.
- [ ] I have written new test cases for new code and/or updated existing tests for changes to existing code.
Reference to Existing Issue
Closes #169.
Description of Changes
- Updated the real-time update logic to include address field updates via WebSocket.
- Modified the
listenForLocationUpdatesfunction to handle and broadcast address changes.
Issues
-
Inheriting from
ChannelLiveServerTestCaseis causing test failures in Django 5.2, which is a new release, and a fix has yet to be released for it. -
Adding
ChannelLiveServerTestCaseprevents running tests in parallel with the --parallel flag, as it relies on live WebSocket connections that cannot run concurrently.