-
-
Notifications
You must be signed in to change notification settings - Fork 76
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Title
Implement Location-based Mass Firmware Upgrades
Context / Approach
Currently, mass firmware upgrades in OpenWISP can only target all devices or devices with specific firmware. We need to extend this functionality to allow targeting devices based on their physical location, similar to the group-based filtering feature.
My approach will be to:
- Add an optional
locationForeignKey field to theBatchUpgradeOperationmodel - Implement validation logic to ensure the location belongs to the same organization as the build
- Modify the device filtering logic in
_find_related_device_firmwaresand_find_firmwareless_devicesmethods to filter by location when specified - Implement combined filtering logic when both group and location are specified (AND condition)
- Add comprehensive tests for all new filtering scenarios
This approach maintains consistency with OpenWISP's organization-based permission model while providing more granular control over firmware upgrades.
Reference: The implementation will follow a similar pattern to the group-based filtering, with location lookups using the GIS functionality in OpenWISP.
Dependencies
- Depends on the implementation of group-based mass firmware upgrades
- Requires OpenWISP's location management system to be properly set up
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request