Select2 not filtering certain fields #2330

Closed
opened 2025-12-29 17:24:54 +01:00 by adam · 2 comments
Owner

Originally created by @DanSheps on GitHub (Jan 31, 2019).

Environment

  • Python version: 3.6
  • NetBox version: 2.5.4
  • Browser version: Chrome 71.0.3578.98

Steps to Reproduce

  1. Go to /dcim/devices
  2. Start attempting to filter "Device Roles"

Expected Behavior

The list of available roles will be filtered based on what is input into the filter box

Observed Behavior

The list of roles stays consistent, does not filter based on what is typed

Affected Endpoints

  • Device Role
  • Device Type
  • Manufacturer
  • Tenant Group
  • Rack Position
  • VLAN Group
  • RIR (Add Aggregate)
  • VM Cluster Group
  • VM Cluster Type
  • Circuit Type
  • Secret Role
  • Rack Role
  • Front Ports
  • Rear Ports
Originally created by @DanSheps on GitHub (Jan 31, 2019). ### Environment * Python version: 3.6 * NetBox version: 2.5.4 * Browser version: Chrome 71.0.3578.98 ### Steps to Reproduce 1. Go to /dcim/devices 2. Start attempting to filter "Device Roles" ### Expected Behavior The list of available roles will be filtered based on what is input into the filter box ### Observed Behavior The list of roles stays consistent, does not filter based on what is typed ### Affected Endpoints * Device Role * Device Type * Manufacturer * Tenant Group * Rack Position * VLAN Group * RIR (Add Aggregate) * VM Cluster Group * VM Cluster Type * Circuit Type * Secret Role * Rack Role * Front Ports * Rear Ports
adam added the type: bugstatus: accepted labels 2025-12-29 17:24:54 +01:00
adam closed this issue 2025-12-29 17:24:54 +01:00
Author
Owner

@DanSheps commented on GitHub (Jan 31, 2019):

Per @lampwins:

Looks to be a filter problem, not select2. Hitting the API directly has the same result.

@DanSheps commented on GitHub (Jan 31, 2019): Per @lampwins: > Looks to be a filter problem, not select2. Hitting the API directly has the same result.
Author
Owner

@lampwins commented on GitHub (Jan 31, 2019):

Turns out several model filter classes are missing the search method (q param).

@lampwins commented on GitHub (Jan 31, 2019): Turns out several model filter classes are missing the search method (`q` param).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2330