Skip to content
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

[change] WiFi session admin: switched to autocomplete filters #468

Merged
merged 3 commits into from
Dec 6, 2022

Conversation

@nemesifier nemesifier added the enhancement New feature or request label Dec 5, 2022
@nemesifier nemesifier self-assigned this Dec 5, 2022
Removed filtering using device name in WiFiAdmin
Updated openwisp-controller dependency
class DeviceOrganizationFilter(MultitenantRelatedOrgFilter):
class DeviceOrganizationFilter(MultitenantOrgFilter):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MultitenantRelatedOrgFilter should be used for filtering with models other than Organization. E.g. filtering WifiSessions according to device

Comment on lines -781 to -785
# Filter by device name
response = self.client.get(url, {'device': org2_device.name})
_assert_org2_wifi_session_in_response(
response, org1_interface_data, org2_interface_data
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The autocomplete filter will always perform a lookup with UUID of the object. This test was required when we were using InputFilter.

@nemesifier nemesifier merged commit ec248d1 into master Dec 6, 2022
@nemesifier nemesifier deleted the autocomplete-fields branch December 6, 2022 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants