ID filter not consistent across all models #3640

Closed
opened 2025-12-29 18:30:19 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (May 6, 2020).

Environment

  • Python version: 3.6.9
  • NetBox version: 2.8.2

Steps to Reproduce

  1. Disable any installed plugins by commenting out the PLUGINS setting in
    configuration.py.
  2. Attempt to filter the /api/circuits/providers/ endpoint by passing provider database IDs; e.g. GET /api/circuits/providers/?id=1&id=2

Expected Behavior

The API should return only the providers corresponding to the provided IDs.

Observed Behavior

The filtering is ignored.

The provider model is used only as an example here: This issues afflicts several models across the application. The legacy id__in filter was removed in #4313, however the id field was never added to certain models to replace its functionality.

Originally created by @jeremystretch on GitHub (May 6, 2020). ### Environment * Python version: 3.6.9 * NetBox version: 2.8.2 ### Steps to Reproduce 1. Disable any installed plugins by commenting out the `PLUGINS` setting in `configuration.py`. 2. Attempt to filter the `/api/circuits/providers/` endpoint by passing provider database IDs; e.g. `GET /api/circuits/providers/?id=1&id=2` ### Expected Behavior The API should return only the providers corresponding to the provided IDs. ### Observed Behavior The filtering is ignored. The provider model is used only as an example here: This issues afflicts several models across the application. The legacy `id__in` filter was removed in #4313, however the `id` field was never added to certain models to replace its functionality.
adam added the type: bugstatus: accepted labels 2025-12-29 18:30:19 +01:00
adam closed this issue 2025-12-29 18:30:19 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3640