Remove all id__in filters #3438

Closed
opened 2025-12-29 18:29:07 +01:00 by adam · 1 comment
Owner

Originally created by @jeremystretch on GitHub (Mar 4, 2020).

Originally assigned to: @jeremystretch on GitHub.

Proposed Changes

Many models within NetBox have a filter named id__in which enables filtering by comma-separated object IDs, e.g. ?id__in=1,2,3. This was introduced in #987 to accommodate form widget filtering logic that is no longer used in NetBox. This issue proposes to remove all instance of id__in filters as well as the NumericInFilter class (which has no other uses).

Justification

This method of filtering is no longer needed, and the same result can be achieved using the more standard approach of passing the id parameter multiple times: ?id=1&id=2&id=3

Originally created by @jeremystretch on GitHub (Mar 4, 2020). Originally assigned to: @jeremystretch on GitHub. ### Proposed Changes Many models within NetBox have a filter named `id__in` which enables filtering by comma-separated object IDs, e.g. `?id__in=1,2,3`. This was introduced in #987 to accommodate form widget filtering logic that is no longer used in NetBox. This issue proposes to remove all instance of `id__in` filters as well as the NumericInFilter class (which has no other uses). ### Justification This method of filtering is no longer needed, and the same result can be achieved using the more standard approach of passing the `id` parameter multiple times: `?id=1&id=2&id=3`
adam added the status: acceptedtype: deprecation labels 2025-12-29 18:29:07 +01:00
adam closed this issue 2025-12-29 18:29:07 +01:00
Author
Owner

@loa commented on GitHub (May 6, 2020):

Hey @jeremystretch !

I wonder, this seem to have removed the only way of batch fetching multiple ipam resources?

@loa commented on GitHub (May 6, 2020): Hey @jeremystretch ! I wonder, this seem to have removed the only way of batch fetching multiple ipam resources?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3438