Skip to content

ID filter not consistent across all models #4584

@jeremystretch

Description

@jeremystretch

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions