Skip to content

Racktype Global Search #17671

Closed
Closed
@Hardi100

Description

@Hardi100

Deployment Type

NetBox Cloud

NetBox Version

v4.1.3

Python Version

3.10

Steps to Reproduce

This issue is created from #17586. Nothing is happening in issue #17586, that's why I'm creating a new one with more details.
I am using https://demo.netbox.dev/ to reproduce the bug. The bug is located here: https://github.com/netbox-community/netbox/blob/develop/netbox/dcim/search.py#L253 'type' has to be replaced with 'model'.

  1. Create a Rack Type. Set the model to "testRack".
    screencapture-demo-netbox-dev-dcim-rack-types-add-2024-10-03-15_44_43
  2. After the Rack Type is created, click on the global search bar, filter for "test"
    screencapture-demo-netbox-dev-dcim-rack-types-2-2024-10-03-15_45_55
  3. Click enter to search and this screen will appear
    screencapture-demo-netbox-dev-search-2024-10-03-15_46_03

Expected Behavior

The global Search should filter for objects, with "test" in them. There should be no error.

Observed Behavior

An error page appeared because of this line: https://github.com/netbox-community/netbox/blob/develop/netbox/dcim/search.py#L253 'type' has to be replaced with 'model'.

Metadata

Metadata

Assignees

Labels

severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: 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