Racktype Global Search #10320

Closed
opened 2025-12-29 21:29:55 +01:00 by adam · 0 comments
Owner

Originally created by @Hardi100 on GitHub (Oct 3, 2024).

Originally assigned to: @arthanson on GitHub.

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'.

Originally created by @Hardi100 on GitHub (Oct 3, 2024). Originally assigned to: @arthanson on GitHub. ### 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](https://github.com/user-attachments/assets/d636c084-e092-42f2-80aa-bdaecaf1d235) 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](https://github.com/user-attachments/assets/a01b16af-2c38-4c49-be74-d13670ef568f) 3. Click enter to search and this screen will appear ![screencapture-demo-netbox-dev-search-2024-10-03-15_46_03](https://github.com/user-attachments/assets/04fbe29f-d7bc-4d2c-8788-efe73ef6c6e6) ### 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'.
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 21:29:55 +01:00
adam closed this issue 2025-12-29 21:29:55 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10320