-
-
Notifications
You must be signed in to change notification settings - Fork 233
[feature] New ws endpoint for all all Location broadcast #1161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Implemented API to return indoor coordinates of devices for a given location. Closes #828 --------- Co-authored-by: Gagan Deep <[email protected]>
Implemented a new websocket endpoint 'location/all/' with updated user permission from base clases from django-loci. Fixes #1157
| netjsonconfig @ https://github.com/openwisp/netjsonconfig/archive/refs/heads/1.3.tar.gz | ||
| django-x509 @ https://github.com/openwisp/django-x509/archive/refs/heads/1.4.tar.gz | ||
| django-loci @ https://github.com/openwisp/django-loci/archive/refs/heads/1.3.tar.gz | ||
| django-loci @ https://github.com/openwisp/django-loci/tarball/feature/191-new-ws-endpoint-for-all-location |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: Remove before merging
| if ( | ||
| result | ||
| and not user.is_superuser | ||
| and not user.is_manager(location.organization) | ||
| ): | ||
| return False | ||
| return result |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| if ( | |
| result | |
| and not user.is_superuser | |
| and not user.is_manager(location.organization) | |
| ): | |
| return False | |
| return result | |
| return result and (user.is_superuser or user.is_manager(location.organization)) |
| path( | ||
| "api/v1/controller/location/<uuid:pk>/indoor-coordinates/", | ||
| geo_views.indoor_coordinates_list, | ||
| name="indoor_coordinates_list", | ||
| ), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this part of the current PR?
Checklist
Reference to Existing Issue
Closes #1157.
Description of Changes
location/allfrom base django-loci clases with updated user permissions.Screen Recording
Screencast.from.2025-11-13.02-20-06.webm